Thursday, 12 September 2013

How to override android home button

How to override android home button

I have been searching through Android docs and stackoverflow and most of
the answers I am reading say that you cannot disable or override the
Android home button.
Tried - does not work
Says not possible
The problem is there are known apps that are doing this:
Kids Care
Kids Place
This is what I want:
A parent loads the app then gives device to a child. The child can only
see the approved apps that are on the device (I know how to do this part).
If they load an approved app from the main launcher screen on my app - if
they press the home button, it takes them back to my app and not back to
the device home screen. If a user presses the home button from my app -
nothing should happen. Same goes for the back button.
I am looking for the proper solution in duplicating functionality of Kids
Care app in overriding home button. How do I do it?

No comments:

Post a Comment