Q:

Launching my own app only as the default app for android

I have to build an app for android 3.0 tab in which I have to launch my own app as the only deafult app for android and also the user can use the device through that app only and have limited access(can use limited app).The Home button also get disabled.
The main screen of the app will be a login screen using which user will login by some specific username and password and also he will give the time period   for which he want to access the device and he has to pay some money through paypal. Once the time period finishes the app automatically get closed and launches again.
Actually, we want to use the tablet for commercial purpose and want to build an app through which user can use the tablet for some specific time period by paying some money.
Please give me some idea  on the app(whether its feasible or not).
Also provide me few links which can help me to build the project.
Very urgent.Please help.
Thanks in advance.  

A:

I guess you should make your app a launcher with the following 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" />
    <category android:name="android.intent.category.MONKEY"/>
</intent-filter>
This will not deactivate your home button but will launch, or at least ask the user to launch your app on press. 
If you have full hand on the tablet itself, remove the launcher2.apk and let only your launcher, this will do the trick, no other launcher will be launchable.
Since your are the launcher you can decide where the user can go from here you have control of any user the action can do.  

