How to create a simple widget that locks the screen without an Activity
, only in an AppWidgetProvider
?
I've tried this solution but the method getSystemService
does not exist out of an Activity
context.
Thank you very much for every clarifications.