Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

it doesn't shows location details

 
sam liya
Ranch Hand
Posts: 1240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is my code.
but it doesn't sow me thw current longitude & latitudes



 
Tim Moores
Bartender
Posts: 2844
46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a call to LocationManager.requestLocationUpdates somewhere ... ?
 
sam liya
Ranch Hand
Posts: 1240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks.i change the class to below


still it doesn't display anything.i moved more than 10 meters with my phone.But nothing shows
 
sam liya
Ranch Hand
Posts: 1240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is my main.xml file


this is my manifest file


it shows me the button. then below the button it show below text
" Hello world , Location finder

other than that there is nothing ?
 
Tim Moores
Bartender
Posts: 2844
46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why is requestLocationUpdates only being called if there is a last known location? Have you done logging to determine whether it *is* being called? Which provider is selected as "bestProvider"?
 
sam liya
Ranch Hand
Posts: 1240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I change the code as belows


but still same.nothing display?
 
sam liya
Ranch Hand
Posts: 1240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I try to debug this code.But it never gone to onLocationChanged method.I don't know why ?
 
sam liya
Ranch Hand
Posts: 1240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Iam using android 2.3 os phone .Can it be a problem?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic