Android Question Start Screensaver programmatically

Mike1970

Well-Known Member
Licensed User
Longtime User
Hi everyone, I’m developing an app that will run on a panel tablet (kiosk).

This tablet has the screensaver function in system settings (colors or clock) with a button to start it. From settings seems that the screensaver can start ONLY if the tablet is charging… but since it is a tablet panel pc this thing does not kinda work….

SO, the question is: Can I start the screensaver directly from my app? Maybe with some intent idk



Edit:

I attached the sample code with Erel solution for the future people
 

Attachments

  • Screensaver_Test.zip
    10.1 KB · Views: 14
Last edited:
Solution
Try this:
B4X:
Dim in As Intent
in.Initialize("", "")
in.SetComponent("com.android.systemui/com.android.systemui.Somnambulator")
StartActivity(in)
Top