Thanks I will give that a try.

On Dec 17, 1:44 pm, "[email protected]"
<[email protected]> wrote:
> Unfortunately, JSR-179 is not part of Android. I mentioned it filled
> with nostalgic for the old days of Java ME when JSR-179 was the the
> best alternative to build LBS apps.
>
> Having looked at the android.location pack, the best way to find the
> current location seems to me like that:
>
> 1. Call LocationManager.requestLocationUpdates()
>
> 2. Then in your LocationListener implementation, you would get the new
> Location object in the onLocationChanged() method everytime your pre-
> specified criteria are met.
>
> 3. So if you are only interested in your current location, you would
> call LocationManager.removeUpdates() from onLocationChanged(), and do
> whatever you want with the Location object.
>
> On Dec 17, 5:10 am,lior<[email protected]> wrote:
>
> > Thanks Mobile Kid,
> > So you are using JSR 179 on Andriod? if yes, any sample code you can
> > share?
>
> > If I use requestLocationUpdates  does it "wake" the gps if it is
> > turned off?
>
> > Thanks,
> >Lior
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to