BUG Community

Welcome! Log In

Forums BUG SDK GUI elements,File storage, and Other questions.

Subscribe to GUI elements,File storage, and Other questions.  8 posts, 5 voices

Log in to reply to this topic
Oct 3, 2007 11:28am
Img_missing_medium digital1 32 posts

1. Are there any default layouts that you are using for Swing that are specially designed?
2. Is there any particular design standards (buttons,sizes,colors,etc.etc.) that are being tapped at this point, or is it free for all form layout?
3. Are there any specs on the LCD touchscreen(viewing angles,color contrasts,etc.) to know what colors are good for our bug apps so that things show up cool.
4. What kind of docs do you guys have using the GPS module? Any code samples you have?

Thanks again guys.


Oct 3, 2007 11:49am
Img_missing_medium digital1 32 posts

5. Any support for on-screen keyboards.

Oct 3, 2007 12:29pm
Medium Bug Labs team kgilmer 215 posts

1. Not being a Swing developer I run a high risk of not making sense on this. The BUG runs phoneME Advanced Personal Basis that includes AWT but not Swing. So I’d imagine no Swing layouts are available.
2. Our GUI environment is still a work in progress at the OS layer, and currently there are no look and feel standards or conventions that we use. This is a good area for future work.
3. Good question! I know the basics on the LCD module but not this sort of information. Let me try to see if we can get that information…
4. As I’m sure you’ve already discovered our doc is a work in progress. I’ll let Angel respond to this one.
5. The LCD module has a touch screen. We’ll most likely utilize an existing user-space application for this functionality.

Oct 3, 2007 1:13pm
Medium Bug Labs team finsprings 268 posts

3. Good question! I know the basics on the LCD module but not this sort of information. Let me try to see if we can get that information...

I asked about this in the Hardware section, so if you reply can you put it over there too?
Oct 3, 2007 1:47pm
Img_missing_medium aroman 21 posts

Hi digital1,

This post has some information:

The GPS module outputs NMEA 0813 v2.2 data.

Since the Virtual BUG is not the actual device, we provided a way for the virtual bug to read a GPS log file specified in the Virtual BUG Launch configuration in the SDK. If you need help with this let me know.

We will evolve the IPositionProvider service as times goes on, but for now, you can retrieve lat/lon from it. If there is other information that you want from NMEA 0813 v2.2 that IPositionProvider does not provide, let us know.

Here are some simple apps that use the GPS service.


Download them into the SDK. They are fairly small and hopefully the are easy to understand.

For example, take a look at GoogleTiles.

The GoogleTilesServiceTracker::doStart() method creates a GoogleTilesApp class passing in the IPositionProvider service in the constructor.

If you look at GooogleTilesApp::buttonEvent(ButtonEvent event) method, you can see:

LatLon latLong = position.getLattidueLongitude(); //GoogleTilesApp.java Line 85

LatLon is a simple class which stores longitude and latitude as double parameters.

Let me know if you have questions.


Oct 3, 2007 2:42pm
Img_missing_medium digital1 32 posts

Thanks Angel,

I will be reading that information later to help me get started. I will be adding GPS to an application I started a few months ago in college. I will let you know as time goes on if I need help. Is it ok to PM you if I need help with specific questions? Or should I just keep them on the forums? or both? Thanks again! OH my dad’s name is Angel too! Crazy!

Oct 11, 2007 9:56am
Img_missing_medium koolatron 52 posts


If I could make a quick suggestion for the GPS module’s API, it’d be to expose the timestamp information of the most recent GPS tick. I’ve already written code to determine heading from recent GPS updates, but without timestamps it’s impossible to compute speed or acceleration information.

I’m fairly certain that this is part of the NMEA standard?

Oct 11, 2007 12:33pm
Img_missing_medium aroman 21 posts


Absolutely. Could you add this as an Enhancement under bugzilla: http://bugcommunity.com/bugzilla .


Log in to reply to this topic
Forums BUG SDK GUI elements,File storage, and Other questions.

Powered by Community Engine