Answer the question
In order to leave comments, you need to log in
How to emulate android power button press in Xamarin C# Android?
Hello!
I want to sketch a simple application for myself with a countdown and programmatically pressing the power button
How to emulate the shutdown button in Android on Xamarin C# Android?
Thanks in advance
Answer the question
In order to leave comments, you need to log in
programmatically "press the shutdown button" is not possible.
it is possible to figure out which function the necessary press is bound to (short / long) and programmatically launch this function.
Android doesn't seem to support this. See what native developers write on stack overflow. If anything, just rewrite Java / Kotlin code in c #
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question