09-05-2013 05:24 PM
If you hold a wake lock in your app the runtime will detect it and will let your app receive location updates when the screen is off.
09-05-2013 11:36 PM
Great it worked, used this :
PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE);
mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK | PowerManager.ON_AFTER_RELEASE, "My Tag");
Next step will be to run the app without any visible frame and at the startup!
09-06-2013 09:35 AM
It goes without saying that you shouldn't hold this indefinitely; if android detects that as well, it'll shut you down (aka standard wake lock stuff).