Re: [android-developers] Re: GPS Background Service Stops Receiving Updates

2014-11-25 Thread gjs
Hi, re - I am holding the home button and the list of apps comes up and I swipe away my app to kill it. This is what others have mentioned above. I don't know if this is samsung only or not. Maybe this method is supposed to kill all running services and processes of the app and is not a good

Re: [android-developers] Re: GPS Background Service Stops Receiving Updates

2014-11-25 Thread Mukesh Srivastav
Party is not over you might find the issue like 1. Though the GPS and Network is disable, The Location manger returns Network provider and returns the invalid/long distance lat and long data. 2.Sometimes, though you put your tablet/application in one place, the Network/GPS Provider will

Re: [android-developers] Re: GPS Background Service Stops Receiving Updates

2014-11-25 Thread gjs
Hi, For - 1. Check if GPS is supported if LocationManger is disabled, if so prompt the user to re-enable it, be kind take them directly to the applicable Android-Setting screen to do this. (See 4 also). 2. Where possible I ignore LocationManager use the raw GPS NMEA data,

[android-developers] Re: GPS Background Service Stops Receiving Updates

2014-11-24 Thread nirm
Try running it in a different process: android:processThe name of the process where the service is to run. Normally, all components of an application run in the default process created for the application. It has the same name as the application package. The application

[android-developers] Re: GPS Background Service Stops Receiving Updates

2014-11-24 Thread gjs
Hi, What do you mean by - ...I test this by holding down the home button and killing my app ? If I start an app, then press hold down the Home button, the app that was running is sent to the background (not killed) the only option that appears is a circle that pops up to run Google Now - if

Re: [android-developers] Re: GPS Background Service Stops Receiving Updates

2014-11-24 Thread Mark Phillips
On my Samsung Galaxy 4 phone from T-Mobile, I can hold down the home button and get a list of running apps. I can kill each one individually with a swipe, and there is a trashcan icon at the bottom of the screen that will kill all the apps running. I use this feature to extend my battery time when

Re: [android-developers] Re: GPS Background Service Stops Receiving Updates

2014-11-24 Thread Mukesh Srivastav
As my understanding here, the service was stopped some where in the code and hence it is behaving like that. On Mon, Nov 24, 2014 at 7:38 PM, Mark Phillips m...@phillipsmarketing.biz wrote: On my Samsung Galaxy 4 phone from T-Mobile, I can hold down the home button and get a list of running

Re: [android-developers] Re: GPS Background Service Stops Receiving Updates

2014-11-24 Thread Tony Pitman
Thank you everyone for the replies. Here are my responses: I am holding the home button and the list of apps comes up and I swipe away my app to kill it. This is what others have mentioned above. I don't know if this is samsung only or not. Maybe this method is supposed to kill all running

Re: [android-developers] Re: GPS Background Service Stops Receiving Updates

2014-11-24 Thread Tony Pitman
It looks like calling startForeground was the key. I am still not able to kill the app using the method mentioned above, but at least now when I let the app sit for a long period of time the GPS notifications keep coming into the service even when it looks like the app has been shut down by the

Re: [android-developers] Re: GPS Background Service Stops Receiving Updates

2014-11-24 Thread TreKing
On Mon, Nov 24, 2014 at 9:17 AM, Tony Pitman t...@shatalmic.com wrote: The whole reason I am doing this is because originally I just put my gps stuff inside the app itself. I would start my app and then many hours later I would enter the geofence area I had set up and the app did not trigger