T
T
tantie2016-04-27 13:53:08
Android
tantie, 2016-04-27 13:53:08

How to set blocking of actions while the application is running, android?

The essence of the problem is the following. I am making a simple media player for a child, I want him to be able to use only the internal content of the application, without the possibility of accessing the launcher.
To do this, you need to somehow block the buttons and the display (for example, when the video will be played).
The search did not bring results. Or am I looking in the wrong place.
With pleasure I will read about how to implement it or where to study.
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton Dikhtyaruk, 2016-04-27
@AnthonyDS

Read the material at these links. I think you will find the answer to your question.
Good luck! And may the force be with you! =)
developer.alexanderklimov.ru/android/keyboard.php
How to intercept pressing the hardware Home button?
stackoverflow.com/questions/17549478/how-to-disabl...
https://github.com/shaobin0604/Android-HomeKey-Loc...
https://github.com/shaobin0604/Android-HomeKey-Loc. ..
https://github.com/shaobin0604/Android-HomeKey-Locker
developer.android.com/reference/android/view/KeyEv...
en.stackoverflow.com/questions/322836/%D0%9F%D0% B5...

T
tantie, 2016-04-28
@tantie

One more question. I dug around, everything turned out except for the on / off button, and something tells me that it will not work to programmatically lock this button. Is it so?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question