BUG Community

Welcome! Log In

How To

BUG + MySQL + openJDK-cacao

Developing database applications for the Bug Platform can be challenging, mostly because phoneME doesn't support JDBC. A viable solution to this problem might be installing a different JVM, one which supports JDBC, like cacao or openJDK. However, like almost any solution in the computer world, nothing comes for free; by switching phoneME for cacao or openJDK you'll sacrifice speed in order to gain more functionalities (see kschultz JVM Comparison post). Recently, I wrote an app...
read more

OSGi service binding without throwing in the kitchen sink.

 In the BUG 2.0 software release we've added an API to allow for easy service binding with minimal code.  The API is in com.buglabs.application.ServiceTrackerHelper and the primary actor is the ManagedRunnable.  To illustrate the usage of the API consider this example:We will create two bundles, one as an API bundle and another as the implementation bundle.  For brevity, the API bundle will also create some services so that we can bind them in our implementation bundle.  I...
read more

Ruby and RubyGems (and Rails!) on the Bug

Ruby is a language I've been meaning to learn for some time now and I figured I'd do that by using it for one of my projects here at Bug. The first thing I went to do was install RubyGems, the package manager for Ruby (much like pip and easy_install for Python), but I couldn't get it to work. It turned out that our default install of Ruby is missing some modules from the Ruby...
read more

building JNI bundles

I've previously posted about building against bundles in SVN to get the latest BUG software.  This is a followup with special attention paid to the jni bundles.  I assume a certain knowledge of the SDK, our build system, and eclipse.  You'll need eclipse (3.3.2), subclipse, CDT, and CTE plugins installed.  eclipse 3.3.2: http://archive.eclipse.org/eclipse/downloads/drops/R-3.3.2-200802211800/index.phpsubclipse: http://subclipse.tigris.org/update_1.4.xCDT update site: http://download.eclipse.org/tools/cdt/releases/europaCTE update site: http://concierge.sourceforge.net/cte/updateAs of RC1.4.1 of the BUG software stack, control of the hardware is done by using...
read more

BUG Software R1.4.3 Released!

  BUG Software Release 1.4.3 is now publicly available.  The RC1.4.3.7 was approved as a production release.  Binary images are available at http://www.buglabs.net/download.  Sources are available atsvn://svn.buglabs.net/bug/tags/releases/R1.4.3.  Javadoc is available at http://bugcommunity.com/development/javadoc/r1.4.3/bug/.  And release notes are available at http://bugcommunity.com/wiki/index.php/R1.4.3_Release_notes. Some open source projects we've used in this release: - JNotify (http://jnotify.sourceforge.net) - JmDNS (http://jmdns.sourceforge.net/) - FM-Classic (http://fm-classic.sourceforge.net/) - avetanabt (http://www.avetana-gmbh.de/avetana-gmbh/produkte/jsr82.eng.xml) Thanks to everyone internal and external that helped make this release happen! 
read more

AutoBUG preview

We are ramping up for the Mobile World Conference here at Bug Lab. We wanted to have a little video to take with us to show what one BUG application could do - we picked the AutoBUG and had Erik Lang put our ideas into a visual format. For the complete movie, and the real potential of AutoBUG, you will have to wait.  But to wet your whistle, here is the outakes trailer.
read more

Bug Walkthrough For/From a Beginner

Hey Guys,Just how simple is Bug? Can ANYONE figure it out? Sure!Here is my experience using the Bug. I have no computer science, java, or programming experience. Ever.1.Downloading the BugLab software was extremely simple. I just followed the onscreen instructions in the Wiki tutorial at http://www.buglabs.net/start, did a quick reboot, and had all the necessary software installed. 2.After locating the USB port on my computer and following the networking instructions, it was pretty simple to...
read more

Tracking Modules in Your BUG App

One thing you may want to do is track module insertion and removal in your BUG Application.  There are probably a couple of approaches to this.  The following solution is easy, but not obvious.  It's the same method implemented in the code running on the BUG that updates the base LCD when you insert and remove modules.The basic idea is that you create a ServiceTracker that tracks only IModuleControl services.  First, create the ServiceTracker.  Here's...
read more