Re: [android-developers] requestLocationUpdates / non-UI-thread / getMainLooper()

2010-10-01 Thread damodhar meshran
why u used loop update-location lister update location automatically

On Wed, Sep 29, 2010 at 9:05 PM, Pent tas...@dinglisch.net wrote:

 Is there anything wrong with specifying the main thread looper to
 handle messages about location update like this:

 lm.requestLocationUpdates(
  LocationManager.GPS_PROVIDER,
  0L,
  0L,
  locListenerGPS,
  Looper.getMainLooper()
 );

 (call is made from a non-UI thread)

 Am I going to start getting weird unexplicable errors in other places
 due to the looper voodoo ?

 Thanks,

 Pent

 --
 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+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] requestLocationUpdates / non-UI-thread / getMainLooper()

2010-09-29 Thread Pent
Is there anything wrong with specifying the main thread looper to
handle messages about location update like this:

lm.requestLocationUpdates(
  LocationManager.GPS_PROVIDER,
  0L,
  0L,
  locListenerGPS,
  Looper.getMainLooper()
);

(call is made from a non-UI thread)

Am I going to start getting weird unexplicable errors in other places
due to the looper voodoo ?

Thanks,

Pent

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en