仅启动我自己的应用程序作为 Android 的默认应用程序
我必须为 android 3.0 选项卡构建一个应用程序,其中我必须启动我自己的应用程序作为 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想你应该让你的应用程序成为具有以下意图过滤器的启动器:
<意图过滤器>
<类别 android:name="android.intent.category.HOME" />
<类别 android:name="android.intent.category.DEFAULT" />
<类别android:name="android.intent.category.MONKEY"/>
这不会停用您的主页按钮,但会启动,或者至少要求用户在按下时启动您的应用程序。
如果您完全掌控平板电脑本身,请删除 launcher2.apk 并仅使用您的启动器,这样就可以了,其他启动器都无法启动。
由于您是启动器,您可以决定用户可以从这里转到哪里,您可以控制任何用户可以执行的操作。
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.