DreierF / MyTargets

Android app, which helps archers keep track of their training progress
GNU General Public License v2.0
81 stars 44 forks source link

Pin screen if in Passe modus #290

Closed reox closed 6 years ago

reox commented 7 years ago

I know it is possible to pin the screen to be rendered over the lockscreen, but other apps like Google Navigation or Kodi can do this automatically. It would be very convenient to have such a feature configurable, so when you are shooting a round and you lock the screen, you will stay in it.

DreierF commented 7 years ago

I'm not really sure what you mean. I know that you can set a different background image, a sticky notification and up to Marshmallow or so lock screen widgets. Do you maybe have a screenshot? What would you expect to see/be able to do there?

reox commented 7 years ago

For example: The Kodi App Kore: https://f-droid.org/packages/org.xbmc.kore/ has a setting to show the activity of the remote control, even if the phone is locked. In the code it looks like this: https://github.com/xbmc/Kore/blob/cb430aa20d13c56a04a800275bd92161ce41cbf8/app/src/main/java/org/xbmc/kore/ui/sections/remote/RemoteActivity.java#L174 / https://developer.android.com/reference/android/view/WindowManager.LayoutParams.html#FLAG_SHOW_WHEN_LOCKED Which means, if you use the Kore app and lock your device, the first thing you see on unlocking is the remote control and not your lockscreen.

There is a "workaround" for this too: Newer android versions (I think starting with 5) have this feature pin screen ("Bildschirm anheften"), where you can pin a app to be always in front and render over the lockscreen. But this feature has a rather silly way to end it, as you need to press two buttons at the same time for longer than 2 seconds. The other feature, which is used by Kore or Google Nav, can be ended by just pressing back.

DreierF commented 7 years ago

Thanks for the link to the Docs :+1:

DreierF commented 7 years ago

Use the same technique for the timer as well.

DreierF commented 6 years ago

Closed via c265b20