Jump to content


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.

Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.


Android development help location

  • Please log in to reply
1 reply to this topic

#1 Cookie_Dash


  • Members
  • 5 posts
  • Local time:01:08 AM

Posted 15 September 2017 - 05:11 AM

Runnable r = new Runnable() {
public void run() {
try {
locationManager.requestLocationUpdates(provider, 1000, 0, LocationTracker.this);
} catch (SecurityException se) {


if (t == null) {
t = new Thread®;


Is this the correct way to request location updates in a thread ? I keep getting crashes and unsure why. It says it's to do with a handler error...Thanks in advance for any help :)

Edited by Cookie_Dash, 15 September 2017 - 05:12 AM.

BC AdBot (Login to Remove)


#2 opera


  • Members
  • 1,023 posts
  • Gender:Not Telling
  • Local time:01:08 AM

Posted 26 September 2017 - 12:49 AM

Perhaps there are some helpful pointers here



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users