This week's book giveaway is in the Beginning Java forum.
We're giving away four copies of Get Programming with Java (MEAP only) and have Peggy Fisher on-line!
See this thread for details.
Win a copy of Get Programming with Java (MEAP only) this week in the Beginning Java 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

it doesn't shows location details  RSS feed

 
Ranch Hand
Posts: 1303
  • 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: 5133
135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a call to LocationManager.requestLocationUpdates somewhere ... ?
 
sam liya
Ranch Hand
Posts: 1303
  • 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: 1303
  • 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: 5133
135
  • 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: 1303
  • 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: 1303
  • 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: 1303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Iam using android 2.3 os phone .Can it be a problem?
 
To avoid criticism do nothing, say nothing, be nothing. -Elbert Hubbard. Please critique this tiny ad:
Programmatically Create PDF Using Free Spire.PDF with Java
https://coderanch.com/wiki/703735/Programmatically-Create-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!