jQuery in Action, 2nd edition*
The moose likes Android and the fly likes it doesn't shows location details Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "it doesn Watch "it doesn New topic
Author

it doesn't shows location details

sam liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 1072
this is my code.
but it doesn't sow me thw current longitude & latitudes



Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
Is there a call to LocationManager.requestLocationUpdates somewhere ... ?
sam liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 1072
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 liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 1072
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
Rancher

Joined: Sep 21, 2011
Posts: 2408
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 liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 1072
I change the code as belows


but still same.nothing display?
sam liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 1072
I try to debug this code.But it never gone to onLocationChanged method.I don't know why ?
sam liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 1072
Iam using android 2.3 os phone .Can it be a problem?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: it doesn't shows location details
 
Similar Threads
it doesn't give me the country name
it doesn't change the longitude & latitude
It prints me pointer repeatedly
street view & satilite view is not working
how to add a google search option