I make a GPS application and that working fine but the difficulty is that I want to start continue in background like as Facebook and Skype, anybody please help me.
Asked
Active
Viewed 172 times
1
-
1have a look at android service – Illegal Argument Oct 30 '14 at 08:05
-
possible duplicate of [Background service need to send GPS location on server](http://stackoverflow.com/questions/8095030/background-service-need-to-send-gps-location-on-server) – duggu Oct 30 '14 at 08:11
-
I have two class one is my main class that have start and stop button and another is service class that have GPSTracker. when I call start button startService(new GPSTracker(this)); and for stop stopService(new GPSTracker()); like this, in minimize it work fine but when I close it from minimize its stop getting location.. – Naresh Oct 30 '14 at 10:21
1 Answers
1
You should create a background service like this.
And if you want location updates here is a blog post about it.

Tamás Cseh
- 3,050
- 1
- 20
- 30