使用Android App启动

Mit*_*ton 0 boot android

可能重复:
手机启动时自动启动应用程序

这似乎是一个相当简单的问题,但我一直无法找到答案.

我一直在寻找为我的业务提供平板电脑,但是,我希望他们直接启动应用程序.

如果我说的不对,我的意思是,每次打开设备时,我都希望它直接加载到"愤怒的小鸟"(或我开发的应用程序).这是可能的,如果是这样,它是如何广为人知的?

谢谢!

Com*_*are 5

通过将HOME类别添加到您的活动中,使您的应用成为主屏幕<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>
Run Code Online (Sandbox Code Playgroud)