question

skymasterson avatar image
skymasterson asked Jacob Abrams answered

Disrupting sleep mode

Is there a way to use a notification to essentially wake up a Clover device that is locked and/or in a sleep mode?

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Jacob Abrams avatar image
Jacob Abrams answered

Clover devices in this regard are pretty much identical to any Android device. I suggest you read the docs at http://developer.android.com/ and/or search http://www.stackoverflow.com for information about the AlarmManager and WakeLocks. They can be used to wake the device when it is sleeping and execute your code. That being said if the lock screen is showing there is no way to programmatically dismiss it because that of course would be a security risk. Applications can however draw over the lockscreen with certain permissions and limitations. Again read Android docs and/or search stackoverflow for information about drawing over the Android lock screen. Remember also that Clover Station is running Android 4.2 and Clover Mini and Mobile are running Android 4.4. Although I'm not sure if we would accept apps that draw over the lock screen.

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community