用我自己的Android应用程序/ APK的发射器/主屏幕更换 [英] Use my own Android app/apk as launcher/Home Screen Replacement
本文介绍了用我自己的Android应用程序/ APK的发射器/主屏幕更换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经创建了自己的应用程序,我想这个是我的发射。这是一个简单的应用程序,但它的作品。
I've created my own app and I want this one to be my launcher. It's a simple app, but it works.
是否有可能与我的应用程序替换默认的启动,使我的应用程序总是启动后开始默认?
Is it possible to replace the default launcher with my app so that my app always starts by default after booting?
推荐答案
设置在清单中的正确意图过滤器将允许它可以提示你使用它作为替代:
Setting the correct intent filters in your manifest will allow it be prompt you to use it as a replacement:
<activity android:name="Home"
...
android:launchMode="singleInstance"
android:stateNotNeeded="true">
<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>
请参阅Android的指南,并查看样品的主屏幕更换应用和的意图和意图过滤器文档来自谷歌。
See the Android guides, and review the sample home screen replacement app and Intents and Intent Filters documentation from Google.
这篇关于用我自己的Android应用程序/ APK的发射器/主屏幕更换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文