Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

it doesn't give me the country name

 
sam liya
Ranch Hand
Posts: 1240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 2798
38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 95
C++ Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But you didn't call locationdetailstextview.setText() method after getting the country!!!
 
sam liya
Ranch Hand
Posts: 1240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can anyone tell me the reason ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic