Win a copy of Learning Regular Expressions this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

it doesn't shows location details  RSS feed

 
Ranch Hand
Posts: 1288
  • 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



 
Saloon Keeper
Posts: 4758
117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a call to LocationManager.requestLocationUpdates somewhere ... ?
 
sam liya
Ranch Hand
Posts: 1288
  • 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: 1288
  • 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
Saloon Keeper
Posts: 4758
117
  • 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: 1288
  • 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: 1288
  • 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: 1288
  • 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
Boost this thread!