• 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
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Jj Roberts
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Himai Minh
  • Carey Brown
  • salvin francis

it doesn't give me the country name

 
Ranch Hand
Posts: 1325
1
  • 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 ?
 
Saloon Keeper
Posts: 6704
161
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • 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?
 
Ranch Hand
Posts: 95
Python C++ Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But you didn't call locationdetailstextview.setText() method after getting the country!!!
 
shawn peter
Ranch Hand
Posts: 1325
1
  • 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.
 
shawn peter
Ranch Hand
Posts: 1325
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can anyone tell me the reason ?
reply
    Bookmark Topic Watch Topic
  • New Topic