首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何设置默认的android启动器

如何设置默认的android启动器
EN

Stack Overflow用户
提问于 2017-02-13 20:32:03
回答 1查看 772关注 0票数 0

我正在尝试创建一个启动器应用程序,我做得很好。但我的启动器有一个问题:当我选择它作为设备的默认启动器时,按下设备的后退按钮,我的启动器将消失,最后一个默认启动器将出现!这是我的清单:

代码语言:javascript
复制
<?xml version="1.0" encoding="utf-8"?>

代码语言:javascript
复制
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>

<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:supportsRtl="true"
    android:theme="@style/AppTheme">

    <activity android:name=".MainActivity">
        <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.LAUNCHER" />

        </intent-filter>
    </activity>

    <activity android:name=".AppsListActivity"/>

</application>

谢谢你的帮助。

EN

回答 1

Stack Overflow用户

发布于 2017-02-13 20:39:06

代码语言:javascript
复制
<activity
android:name="ah.hathi.simplelauncher.HomeActivity"
android:label="Simple Launcher Home"
android:theme="@android:style/Theme.Wallpaper.NoTitleBar.Fullscreen"
android:launchMode="singleTask"
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>         

像这样做,希望这对你有用

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/42204147

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档