Possible Duplicate:
Kiosk mode in Android
I want to lock my android device so the users of it can only use my app , how can I do that ?
Possible Duplicate:
Kiosk mode in Android
I want to lock my android device so the users of it can only use my app , how can I do that ?
Create a custom launcher...
<activity
android:label="@string/app_name"
android:name=".ClassNameOfYourLauncher">
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.HOME" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
Hopefully, the user will need to accept before you can lock the device
This is probably not something you want to do. Furthermore, what exactly do you mean: you want to disable the home button and back button? You want to brick their phone? You want to temporarily lock them in while something loads for security?
Please clarify your question, but I can tell you one thing: The answer to your question as you've posed is: DON'T.
EDIT: Android - Is It possible to disable the click of home button
Partial answer to the question, along with a thousand reasons not to implement this.