08-01-2013 01:16 AM
My problem is i am not able to get `network or GPS location` when `BB10 Device` is in sleep mode.My device is `Q10 Dev Alpha C` i have done following testing.
- Added run_when_backgrounded permission
- left application running in background.
- logcat is showing its requesting for location update.
- but location is not coming when device is in sleep mode.
same problem has been reported at http://supportforums.blackberry.com/t5/BlackBerry-
permission added are using custom `MANIFEST.MF`
08-01-2013 03:25 PM
The "run_when_backgrounded" app permission is not available to Android apps, that's a Cascades specific feature.
Android on BlackBerry 10 acts the same as it does on an Android device, where if the device goes to sleep, onPause() (and potentially onStop(), onDestroy()) is called. So that's why you cannot get GPS location while the device is asleep.
08-02-2013 01:16 AM
thanks jjasmann for your promt response.
As i can see in logcat its requesting for location update. which means its not in onPause mode as logs i am getting is in onStartCommand and i am requesting location update through services.
08-02-2013 03:19 PM
Sorry, I just meant that when onPause is called by the runtime, your GPS updates would pause/end as well.
08-08-2013 02:16 PM
I think the only way you could achieve this would be with a background service, which isn't currently supported by our runtime.
08-19-2013 05:23 AM
Should it be working now with the Headless mode by adding _sys_headless_nostopin the manifest? I probably have the same problem as Akram, I developped my tracking application for Android and it is defined as one Activity and one Service (data logging is made by the Service).
08-20-2013 01:56 PM
_sys_run_headless is a Cascades specific permission and will not be available to Android apps.
Android services are also still unsupported.
08-20-2013 03:13 PM
Well, once the APK is converted to BAR, it is possible to unzip it and add informations in the manifest. One thing that looks missing is entry point at phone boot or something like that :
Manifest from my converted application :
08-20-2013 03:36 PM
The permissions in the MANIFEST.MF are mapped from the AndroidManifest.xml, so if you've added it in there, it should get added to your MANIFEST.MF automatically.