aspose file tools*
The moose likes Android and the fly likes  it doesn't give me the country name 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 give me the country name

sam liya
Ranch Hand

Joined: Nov 25, 2008
Posts: 1225
this is my main class.it shows me the longitude & latitude.



it is working fine.but the thing is that when i run this programm in my phone it gives me that current location latitude and longitude.

but it doesn't give me the country name.I don't know why ?
can anyone tell me the reason ?
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
I assume there is code somewhere that prints out locationdetails after the geoCoder has been called? Or are you relying on onLocationChanged being called again with another location update?
Naishadh Parmar
Ranch Hand

Joined: Jun 02, 2011
Posts: 95

But you didn't call locationdetailstextview.setText() method after getting the country!!!
sam liya
Ranch Hand

Joined: Nov 25, 2008
Posts: 1225
I change the code.here is my java class.i have added a settext after getCountry line.



This is my main xml file



still no prints country name.
sam liya
Ranch Hand

Joined: Nov 25, 2008
Posts: 1225
can anyone tell me the reason ?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: it doesn't give me the country name