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

[android-developers] Same database cursor in ListFragment and ViewPager

2014-11-25 Thread Markus
Hi guys, I have a ListFragment where I load a Cursor through a Loader in onCreateLoader(int i, Bundle bundle). If I click on a ListItem then I replace the Fragment to another Fragment DetailsPageSlider and set as argument position and count. In my FragmentStateAdapter in getItem(int position)

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

[android-developers] Is it possible, that Android kills a service inside an app?

2014-11-25 Thread Oleksii Bieliaiev
Hey guys, let's imagine we have an app with a service and an activity inside. Both components live in a same process, our service is started (in terms of Android) and a user does some interaction with an activity. Eventually our app goes to background. My question is, whether is it possible,

Re: [android-developers] Simple PagerAdapter does not display views

2014-11-25 Thread Doug Gordon
Yes, and that's what's so frustrating, Kastya. The breakpoints appear to indicate that everything is working, as does the fact that it responds to a swipe. For example, if I start it off by calling ViewPager with setCurrentItem(3), my instantiateItem is called with position=3, followed by

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,