0

I need to get coordinate by GPS and found some tutorial here and here but none of can help me. I just want to get longitude and latitude and show them in a TextView not by online map. any idea can help me. thanks for your attention.

IndieBoy
  • 1,102
  • 3
  • 14
  • 25
  • 1
    what have you done with above links. Implement these and you will get gps coordinates and make ensure you enabled gps and have internet connection. – Ajay S Mar 03 '13 at 19:15
  • GPS will provide you coordinates only if there is some changes in location co-ordinates if you want the current locaion co-ordinates go for NETWORK_PROVIDER. check this http://stackoverflow.com/questions/12286152/get-current-location-during-app-launch/12286444#12286444 – Piyush Agarwal Mar 03 '13 at 19:16
  • thanks for your time. I'm using android 4 and I MUST enable GPS Satellites in my device setting. Noe everything works great. but thanks all. – IndieBoy Mar 03 '13 at 19:34

1 Answers1

0

You need to modify the androidmanifest also; try this tutorial.

Andras K
  • 932
  • 9
  • 15