简体   繁体   English

使用普通应用程序作为Android启动器

[英]Use normal application as Android launcher

I'd like to use a normal application I'm working on as the launcher because it's the only app that is running on the device. 我想将正在使用的普通应用程序用作启动器,因为它是设备上唯一运行的应用程序。 What do I have to add to my app? 我必须添加什么到我的应用程序中?

Thanks, Yannik 谢谢,Yannik

Use this 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>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM