Hello all,
besides there are some answers to threads in this forum those say that it's not possible to turn on the screen programmaticaly, I found this:
https://stackoverflow.com/questions/30090589/turn-on-screen-programmatically-on-android/30090732
This says that there are two ways to do that:
1. Before sdk level 27, using window.addFlags(WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON);
2. In sdk level 27 and upper, using this.setTurnScreenOn(true);
There are some additional considerations also about this here: https://developer.android.com/reference/android/R.attr.html#turnScreenOn
Then, I think that creating a java function could be possible, but I still didn't realize how to put everything above together.
Could anybody help? I think that this resource is a "wish" in this forum and there are many questions about this... I'll keep trying but if anybody more experienced with java could help me will be great!
Thanks!
besides there are some answers to threads in this forum those say that it's not possible to turn on the screen programmaticaly, I found this:
https://stackoverflow.com/questions/30090589/turn-on-screen-programmatically-on-android/30090732
This says that there are two ways to do that:
1. Before sdk level 27, using window.addFlags(WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON);
2. In sdk level 27 and upper, using this.setTurnScreenOn(true);
There are some additional considerations also about this here: https://developer.android.com/reference/android/R.attr.html#turnScreenOn
Then, I think that creating a java function could be possible, but I still didn't realize how to put everything above together.
Could anybody help? I think that this resource is a "wish" in this forum and there are many questions about this... I'll keep trying but if anybody more experienced with java could help me will be great!
Thanks!