BUG Community

Welcome! Log In

Forums Recent Posts

Subscribe to Recent Posts 12,499 posts found

Sep 26, 2007 9:37am
koolatron 52 posts

Topic: BUG SDK / javadoc?


Thanks a ton! I went through the trouble of checking out the SVN trunk last night just to get a peek at the sources while I was playing around with MenuExtender, but having javadoc (even incomplete javadoc) all in one spot sure makes things easier.

Any idea whether the next sdk build will break existing projects?

Sep 26, 2007 6:10am
Medium kgilmer 215 posts

Topic: BUG SDK / javadoc?

Dave, this app demonstrates how to listen to button events:


You can just drag the app from BUGnet into your project explorer.

Sep 26, 2007 5:19am
Medium kgilmer 215 posts

Topic: Applications / FlickrUppr hanging for me on Mac OSX

Hello finsprings, welcome to the BUG beta! To my knowledge we haven’t tested the FlickrUppr example app on OSX. We’ll take a look and let you know.

Sep 26, 2007 5:13am
Medium kgilmer 215 posts

Topic: BUG SDK / javadoc?

Dave, I've uploaded javadoc for the Virtual BUG here:


I'll be working actively on making this better, but this should provide at least some initial help to you. :D

Sep 26, 2007 3:56am
Medium kgilmer 215 posts

Topic: BUG SDK / javadoc?

Hello Dave! Good questions :) Sadly Javadocs were not baked into our initial SDK beta release. That has since been rectified but won't be available until our next build. Depending on timing I may publish javadocs to our beta site. In regards to your specific questions:

1. You sure can register a callback. The service definition for this is com.buglabs.device.IButtonEventProvider (which lives in the com.buglabs.common OSGi bundle). In the case of the Virtual BUG, com.buglabs.bug.emulator implements the service. I will provide an example application on BUGnet tomorrow on how to capture hot key events.

2. Yep! In general each hardware module has a corresponding OSGi bundle that:
    A) Defines abstract service definitions for that module.
    B) Provides base implementations

So for your specific case the service definition you want is com.buglabs.bug.module.motion.pub.IMotionSubject provided by the com.buglabs.bug.emulator.module.motion bundle. Our convention is that each OSGi bundle is a project in SVN. Most of the interesting service definitions for BUG live in one of the following bundles:
    1. com.buglabs.common (common and base unit services)
    2. com.buglabs.bug.emulator.module.camera (camera module services)
    3. com.buglabs.bug.emulator.module.gps (...)
    4. com.buglabs.bug.emulator.module.lcd
    5. com.buglabs.bug.emulator.module.motion

Another convention (from the OSGi folks) is to put service definitions (interfaces) in a public package, and implementations in private packages. So generally you'll see the service definitions in com.buglabs.bug.module.[module name].pub packages.

Again, an application will be provided on BUGnet that exercises this service.

In general your best bet is going to be looking for example apps, which we are actively producing and adding to BUGnet. I'll post back to this thread with upcoming documentation details.

Sep 26, 2007 1:37am
Duster 6 posts

Topic: Suggestion Box / Facebook Group

I have facebook but don’t really care about using it. I would use it for bug though.

Sep 26, 2007 1:16am
matt.gauger 15 posts

Topic: Meet & Greet / Greetings!

Hey guys, I’m Matt. I’m a college student as well, and have experience across the board with too many programming languages and operating systems to list.

Looking forward to writing some code for this platform! :)

Sep 25, 2007 10:40pm
Medium finsprings 268 posts

Topic: Meet & Greet / Greetings!

Hi, I’m Dave. I’m a software engineer, working on mobile Windows CE devices for a living in Pittsburgh. I use Mac OSX by choice and some Linux on the desktop at home, but I’m keen to get into Linux more on the embedded side, so Bug should be perfect! The only downside will be finding the time to play with it between work and the kids :-)

Sep 25, 2007 10:26pm
Medium finsprings 268 posts

Topic: Applications / FlickrUppr hanging for me on Mac OSX

I tried running FlickrUppr on Mac OSX 10.4.10 using JDK 1.5.0 and it hangs when I load the LCD module at the get frame line:
this.frame = disp.getFrame();

I tried it on XP in a VM with JDK 1.6.0_02 and it popped up its Flickr auth GUI just fine.

Anyone else seen this?

I’m also not keen on authorizing FlickrUppr on my Flickr account since it is asking for full access. Maybe I’ll set up a non-pro test account just for it. It would be nice if it just access for posting rights.

Sep 25, 2007 9:41pm
koolatron 52 posts

Topic: Suggestion Box / Facebook Group

I have a facebook account, but I’m loathe to log in for fear of what may be waiting for me. I’d do it for BUG, though :)

Powered by Community Engine