|
|
Hi,
I am building my first demo applications for our bug device, i built a simple application which show a screen with the gps coordinates. It runs well on the simulator but when i send it to the physical bug it doesn’t show the screen it should, instead it remains in the main bug screen. In the bug, if I long click in myapp icon and it shows the option: “stop” as if it were running. do you know why i can not see my screen in the bug’s LCD?
tks |
|
|
That determines when your application’s code will run. It may be that on the BUG Simulator, the services you require are available, but on the Physical BUG they are not.
This helps manage the runtime of the bundle, but not your application. Your bundle has started, but your app’s run method (or other method, depending on how you wrote your app) has not been called. |
|
|
Thanks, these are the services i am tracking: private static final String [] services={
in the Bug I have attached the GPS and the LCD modules. |
|
|
Ok great, and to determine if those services are available, with the modules attached, if you have shell access via ssh or serial, you can do:
you should see:
type:
And you’ll see a list similar to:
|
|
|
ok, i am able to type services in telnet but before, I had to remove the gps module, otherwise i get a cascade of GPS messages which do not allow me to enter the word “services”. is there a chance to avoid seeing those gps messages? |
|
|
jhernandez: These messages are printed when the GPS module cannot get coordinates. It should handle this situation in a less verbose way, but it doesn’t. You should stop seeing these messages if you attatch the GPS antenna and place it somewhere where the device can get a better signal (for example, near a window if you can find one). I’m trying to find a better solution, but that’s the best I can give you for right now. |
|
|
I got the following from the telnet, i checked and it seems that all the services i am tracking are in the list (I highlighted those services). please let me know if you see something out of order: p { margin-bottom: 0.21cm; } 1 2 3 org.osgi.service.log.LogService
Buffer Size = 32, Error Stream = 4 5 6
com.buglabs.device.IButtonEventProvider Button = 7 8 10 11 12 13 14 15 16
com.buglabs.bug.module.gps.pub.IPositionProvider 18 19 20
com.buglabs.bug.module.lcd.pub.IML8953Accelerometer 21 22
com.buglabs.bug.module.lcd.pub.ILCDModuleControl 23
com.buglabs.bug.module.lcd.pub.IModuleDisplay height = , 24 9 17 25 26 27 28 35 29 30 31 32 41 42 43 44 33 34 36 webadmin.IBatteryInfoProvider 37 38 39 40 |
|
|
jhernadez, Can you post your code to Bug Net (http://www.buglabs.net/applications) and make me a collaborator so I can see if I can spot any issues? My username on Bug Net is Andrew Turley. andy |
|
|
jhernandez, Thank you for sharing your code. I think the problem is that you do not have IML8953Accelerometer.class.getName() in the services list in Activator.java. As a consequence, accelerometer is null, which cause an NPE in the GUI code, and the UI is never drawn. I am at home without a working GPS module, so I am not able to verify this on actually hardware, but please try adding the IML8953Accelerometer to the list of services and see if that helps. andy |
|
|
Thanks for your comments, actually I had IML8953Accelerometer in the list of services before but I decided to remove it in order to see if it was causing the issue. I put it back and the problem is still there. let me know if you find something else. |
|
|
jhernandez, I was able to find a working GPS unit. It looks like IPositionProvider.getLatitudeLongitude() returns null if it can’t get a GPS position. Using the null LatLon object later in the code results in an NPE, and since that code is in a GUI call it prevents the GUI from being drawn. Here’s a forum post that talks about looking at the raw position feed and parsing the data yourself. In the meantime, you should at least check to make sure that the LatLon object is not null before using it. andy |
|
|
I added a validation to see if LatLon is null, it fixed the problem. Thank you. |
|
|
Isn’t it funny how we www.coachfactorystoreec.com/ Coach Factory Store always want what we can’t have? The girl with the round and pert backside wishes that her rear were 5 times smaller. Meanwhile, the girl with the non existent posterior wishes to achieve a larger butt. Well, if the grass is greener on the other side, just water yours! If you’ve got a small behind, you can create the illusion of a larger one with butt enhancing jeans. Here’s how to do it. Look for light weight denim – This material is very stiff and heavy. If you try to stuff a flat butt into denim jeans, it will only create a flatter looking behind. A little stretch goes a long way – Your butt enhancing jeans should additionally contain some stretch. A mixture of 98 percent cotton and 2 percent lycra is best. This combination of lycra and cotton, especially when it’s in a nice tight-weave fabric that’s fitted through the hip and thigh area will help lift your buttocks. Too much lycra and your jeans may start to ripple like a pair of leggings. If there’s not enough cotton content, there won’t be enough structure to hold you up. It’s all in the pockets – The most effective trick for creating the illusion of a bigger butt is to choose jeans with flap pockets. The added bulk of the flap will enhance and add dimension to your tiny tush. True Religion is notoriously famous for their flap pocket designs. You can also try Hudson, Rock & Republic, Frankie B and Paige for addition flap pocket styles. Pocket placement – If you’re not a fan of flap pockets, or if you’ve already bought too many of them, you can also try denim with regular pockets. Be sure to aim for a pair with smaller pockets that sit higher and this will help make your rear look lifted. Cut is also important – Look for jeans with a slight tapering at www.coachfactoryonliness.com/ Coach Factory Online the knee, such as a straight leg or skinny style. This cut will make your bum look a bit larger in comparison to the rest of your body. Great styles to try are True Religion Billy, Julie or Stella, Siwy Harmah or Rose, and Hudson Emily or Paige. How low can you go – Actually, you don’t want to go too low when it comes to the jean rise. The goal is to project more, not less. A pair of low rise denim will only reduce the size of your rear. Instead, opt for a pair with a medium rise. Color me right – Since dark colors minimize, dark denim and indigo will create a slimming effect. You do not want this kind of effect on your barely there behind! Try to find light colored or medium blue denim. Grey is very flattering and will also work. Like a great bra, butt enhancing jeans can also lift and www.coachfactoryoutletusa.com/ Coach Factory Outlet separate what little you have. So it wasn’t in your genes to have a nice, round bottom. Big deal. Be happy with what you’ve got and just improvise! |
|
|
Aren’t Alone: 8 Most Disappointing Recent IPOsBy SUSANNA KIMAug. 22, — With buy real |
|
|
he said. “That’s what we are about.” Advanced Breast Cancer the Rise in Younger WomenMetastatic Breast Cancer Rate Creeping Up Up Cheap Ralph Lauren ShirtsUp Since 1970sBy CRYSTAL PHEND, MedPage Today Senior Staff WriterFeb. 2013— The number of young women being diagnosed with metastatic metastatic replica designer handbagsmetastatic breast cancer has been slowly but steadily rising over past 3 decades, a national study found.The incidence of advanced advanced cheap polo Ralph Lauren advanced breast disease among women ages 25 to 39 crept by 2.1 percent per year between 1976 and 2009, according according hermes birkin purseaccording to Dr. Rebecca Johnson of Seattle Children’s Hospital and University of Washington in Seattle, and colleagues.The upward trend was was replica hermes birkin |