PiRSquared17 / j4me

Automatically exported from code.google.com/p/j4me
0 stars 0 forks source link

LocationProvider.getInstance() always returns null #33

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hey all,

The J4ME package for GPS handling sounds great, but i can't get it to work.
The getInstance method always instantly returns null, no matter what kind
of criterion object i give it. It doesn't search for bluetooth devices, and
it doesn't throw an exception. wtf is going on?

I hope you can help me out here....

Geert Schuring.
The Netherlands.

Original issue reported on code.google.com by geertsch...@gmail.com on 11 Apr 2008 at 12:15

GoogleCodeExporter commented 9 years ago
Your phone does have either JSR-179 and/or JSR-82, right?  See the GPS example 
that
comes with J4ME for how to use it (or the JavaDoc for LocationProvider).

First step is to manually do Bluetooth discovery
(LocationProvider.discoverRemoteDevices).  Then after the GPS device is picked 
you
set it in the Criteria.

Original comment by deanbro...@gmail.com on 11 Apr 2008 at 4:52