0

Hi, I am trying to get the gps location using location provider and gps provider at the Same time. I am trying for last two days but stil am struggling. I don't know how to do this,I am searching and get this link http://www.hrupin.com/2011/04/android-gps-using-how-to-get-current-location-example, but it's also getting force close. Anybody kindly give working example for gps usind network provider and gps provider

Jav_Rock
  • 22,059
  • 20
  • 123
  • 164
Mercy
  • 1,862
  • 9
  • 39
  • 75
  • 1
    force close means exception occurred at run time. Check logcat to find the error. – Yugandhar Babu Jan 31 '12 at 05:09
  • @yuganthar babu can you give any working Sample – Mercy Jan 31 '12 at 05:11
  • Here: [http://stackoverflow.com/questions/8828639/android-get-gps-location-via-a-service/8830135#8830135][1] [1]: http://stackoverflow.com/questions/8828639/android-get-gps-location-via-a-service/8830135#8830135 I posted an example there – avepr Jan 31 '12 at 05:14
  • Please upload your code of activity & AndroidManifest.xml – Lucifer Jan 31 '12 at 05:14
  • http://stackoverflow.com/questions/3145089/what-is-the-simplest-and-most-robust-way-to-get-the-users-current-location-in-a/3145655#3145655 check this link – Vani Jan 31 '12 at 05:21

1 Answers1

1

The link you provided is good only. So many examples available in web, one of them is given below.

Using GPS to get current location – Android tutorial

I hope it may help you.

Yugandhar Babu
  • 10,311
  • 9
  • 42
  • 67