Alternate Java Bridge Library

428 views
Skip to first unread message

Imp Inc

unread,
Jul 12, 2011, 4:12:28 PM7/12/11
to alternate-java-bridg...@googlegroups.com
The Alternate Java Bridge Library has been put together for those using App Inventor's JavaBridge to write their applications in Java. The JavaBridge doesn't include a library which it uses for certain components. This is the kawa library. Unfortunately, this is quite a large library (2.8MB, compared to about 500MB for JavaBridge). If you have a good computer with lots of RAM, this might not affect you as much. But for me, I have 3GB of RAM, and as soon as I add the Kawa library, my system slows to a crawl. This makes it impossible to work on anything (I'm talking about so slow, it takes the cursor 5-10 seconds to reflect that you clicked somewhere).

So, I created this library which rewrites components which use the Kawa library, to not use the library. Instead I use normal java, or android SDK stuff to do the same thing. This will result in a MUCH smaller library to add, improving performance while working in Eclipse.

The download is right here .

You can view the source here .

- Ryan Bis
www.xiledsystems.com

Imp Inc

unread,
Jul 15, 2011, 12:23:28 PM7/15/11
to alternate-java-bridg...@googlegroups.com
Ok, I've uploaded the newest version of the library. You can now write a service, and use the TinyDBsvc, Clocksvc, or Notifiersvc components.

I'm sure there are bound to be some issues that come up, as I didn't test every possible scenario. Check out the sample zip file that I've uploaded along with the library to see how to write the service.

Download Location

- Ryan Bis
www.xiledsystems.com

Imp Inc

unread,
Jul 15, 2011, 12:42:01 PM7/15/11
to alternate-java-bridg...@googlegroups.com
Oh, I should also say that instead of TinyListDB, you should use TinyDB2 now. TinyListDB is still there for now, but will go away soon. TinyDB2 no longer uses SharedPreferences, and can retrieve a list with the GetList method.

Ryan

Imp Inc

unread,
Jul 15, 2011, 3:32:33 PM7/15/11
to alternate-java-bridg...@googlegroups.com
Haha I just realized I made a mistake in the original post here...the JavaBridge is about 500KB, not 500MB.

Ryan

Big Daddy App

unread,
Jul 16, 2011, 7:44:37 AM7/16/11
to alternate-java-bridg...@googlegroups.com
You will have to give me time to read up on this. I've seen the post but with everything else Im doing I sorta moved it to the back burner for now. I'll be up to date by next Sunday(week)

James

unread,
Jan 10, 2012, 8:40:52 AM1/10/12
to alternate-java-bridg...@googlegroups.com
nnot complete the install because of a conflicting dependency.
  Software being installed: AltBridge Plug-in 1.9.83 (com.xiledsystems.altbridge.feature.feature.group 1.9.83)
  Software currently installed: Android Development Tools 15.0.1.v201111031820-219398 (com.android.ide.eclipse.adt.feature.group 15.0.1.v201111031820-219398)
  Only one of the following can be installed at once: 
    Android Development Toolkit 15.0.1.v201111031820-219398 (com.android.ide.eclipse.adt 15.0.1.v201111031820-219398)
    com.android.ide.eclipse.adt 16.0.1.v201112150204-238534
  Cannot satisfy dependency:
    From: Android Development Tools 15.0.1.v201111031820-219398 (com.android.ide.eclipse.adt.feature.group 15.0.1.v201111031820-219398)
    To: com.android.ide.eclipse.adt [15.0.1.v201111031820-219398]
  Cannot satisfy dependency:
    From: Altbridge 1.9.83 (com.xiledsystems.altbridge 1.9.83)
    To: bundle com.android.ide.eclipse.adt 16.0.0
  Cannot satisfy dependency:
    From: AltBridge Plug-in 1.9.83 (com.xiledsystems.altbridge.feature.feature.group 1.9.83)
    To: com.xiledsystems.altbridge [1.9.83]

Hi Ryan,  Does this mean i need to remove the adt first ?

Imp Inc

unread,
Jan 10, 2012, 12:16:59 PM1/10/12
to alternate-java-bridg...@googlegroups.com
No, seems you have to update adt. Looks like you have ADT 15.0.1. You need 16.0.1. Go to the help drop down menu, and select Check For Updates. Install anything that comes up, then you should be able to install the AltBridge.

- Ryan

Imp Inc

unread,
Feb 14, 2012, 4:33:37 PM2/14/12
to alternate-java-bridg...@googlegroups.com
I should also say here to check the Wiki site as well. I update it every once in a while, so check back to see it once in a while.

http://code.google.com/p/alternate-java-bridge-library/w/list

Ryan

James

unread,
May 4, 2012, 10:49:01 PM5/4/12
to alternate-java-bridg...@googlegroups.com
http://www.youtube.com/watch?v=MnEG7_Et4UA  have you seen this ryan, not sure what version he uses, nice tut though

Imp Inc

unread,
May 5, 2012, 2:24:49 AM5/5/12
to alternate-java-bridg...@googlegroups.com
I didnt listen to it, but the funny thing is, most of the video goes through the basic setup of an app inventor java bridge project. With the altbridge, creating a new project is trivial (you dont have to copy the jar file, add it to the build path, and the initial Form is created for you, with the appropriate layout (rather than taking the pregenerated one, then modifying it like he does in the video).

I should probably put a video together at some point. Heh, to do the same thing with the altbridge, it would probably be a 5 minute video, rather than 25 :P.
Reply all
Reply to author
Forward
0 new messages