Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Affichage
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline

How to force the user to stay within its activity

16
January
2013

How to force the user to stay within its activity

Android2EE - Expertise - Formation - Consulting Android
Hello
And Yes, you can ask the question, but how do I so that my user is forced to remain in my application. What is important see paramount for some of our clients.
Then some will hide the notification (of States) bar and fight to death to remove the bar from the bottom (with the home, back, buttons...) genre:

getWindow () .setFlags (WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
getWindow () .getDecorView () .setSystemUiVisibility (View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);

and also they will try to retrieve the events KeyEvent.KEYCODE_BACK, KeyEvent.KEYCODE_HOME, KeyEvent.KEYCODE_POWER. A solution which of course doesnt.

Of course my solution will only work if you are owner of the equipment (without having rights roots) and it is super simple, does not require that can code written by you (most of the code written by Google) and market in a systematic manner for all devices on all versions. It's been dreaming eh.
So, I give you?
EH beh no, you have to be in training with me :) sorry, but I'm actively looking for interns, then tips of this type there I the reserves:)
Alternatively, you can contact me to that discussed in;o)

Finally, you say there is a simple solution and it takes 3 minutes to set up.
Then, you can see that still us have a hope.

PS: If I had control of the Home of the device?

Mathias Séguy
This email address is being protected from spambots. You need JavaScript enabled to view it.

Founder Android2EE
Training - Expertise - Consulting Android.
EBooks learn programming Android.
AndroidEvolution

You must be connected to post a comment.

Original author: MathiasSeguy
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Affichage
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline