I have developed the app which is using by patients. Hospital management provide the device with app to every patient in hospital. So management asks me to run only this app in device (our devices have the version above android 3.0).I made the app which is run after booting is completed. I disabled back button. But i can't override home button. I know there is no way to override home button. But i must do it. My need is that user should not come out from the app. Give some other alternative ways.
Asked
Active
Viewed 249 times
1 Answers
4
make the app a launcher app, that way they will not be able to exit the app when the home button is pressed
add this to your activity
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.HOME" />

tyczj
- 71,600
- 54
- 194
- 296
-
1I have one doubt @tyczj – selva_pollachi Aug 08 '13 at 17:25
-
how to override notification panel? – selva_pollachi Aug 08 '13 at 17:34
-
what do you mean override it? If you mean hide it look here http://stackoverflow.com/questions/4222713/hide-notification-bar – tyczj Aug 08 '13 at 17:37
-
I am asking about the panel which is displayed right side corner in tablet. it includes date settings, wifi settings. Because user may uninstall app via this way. So i want to hide or do something – selva_pollachi Aug 08 '13 at 17:42
-
try what is in that link i provided. I am not sure if there is a way to or not, might be better off asking another question and see the responses – tyczj Aug 08 '13 at 17:45