nightdream icon indicating copy to clipboard operation
nightdream copied to clipboard

Don't autostart when certain apps are running

Open firebirdberlin opened this issue 4 years ago • 4 comments

"I have a proposal to improve the application. I have set the application to start when the charger is connected and this function is just great. However, it would be nice to add a new function in the menu that would block the clock from starting when another application is running. I am thinking specifically about the navigation application, because in the car we use navigation while charging the phone. This way, the clock would start at home when the charger is plugged in and stay off in the car. "

firebirdberlin avatar Oct 14 '20 19:10 firebirdberlin

Maybe we can solve this problem by starting the app only by active wifi. This could be a new option in the settings.

mastermichi avatar Oct 15 '20 07:10 mastermichi

Possible but then the app needs permissions to access locations. I'd prefer a solution which doesn't need special permissions.

firebirdberlin avatar Oct 15 '20 08:10 firebirdberlin

To check wifi status the app needs the permission: ACCESS_NETWORK_STATE This permission is already set in the manifest

https://droid-lernen.de/wlan-pruefen

mastermichi avatar Oct 15 '20 15:10 mastermichi

True, this works if you are connected to a wireless network. Anyway, this method will fail in flight mode.

firebirdberlin avatar Oct 15 '20 20:10 firebirdberlin