Tuesday, July 27, 2010

Re: [android-developers] LocationManager/Listener, use gps data

On Sun, Jul 25, 2010 at 4:31 PM, ArtworkAD <artjomzabelin@googlemail.com> wrote:
My problem is that I can not imagine how to bring this location data
to the core of my application.

Create an instance of the class in the "core" of your application, whatever that means. 
 
the process of getting the location of the user should run asynchronous to the main application.

Yeah, that's the way it is by default. You don't need to control this. By calling requestUpdates you're telling the system to go do the work in the background then come back and let you know when something changes.
 
however my first idea would be to add a attribute to the GeoDataGateway for each lat and lng.

OK. 
 
these will be set by the UpdateHandler and via a getLng() method it shouöd be easy to get the data!?

Sure, why not?

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment