Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/230.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
找不到意图筛选器类别android.intent.category.default默认活动_Android_Android Intent_Android Launcher - Fatal编程技术网

找不到意图筛选器类别android.intent.category.default默认活动

找不到意图筛选器类别android.intent.category.default默认活动,android,android-intent,android-launcher,Android,Android Intent,Android Launcher,这里使用android.category.default将此应用程序作为默认启动器,就像google launcher一样,但在运行此应用程序时,未找到其抛出错误默认活动…我已多次尝试重新启动并使缓存无效。谁能帮我 转到编辑配置。在“常规”选项卡的“启动选项”下拉列表中,不选择任何内容。现在运行应用程序 您可以在Windows上使用Control+Shift+A,或在Mac上使用Command+Shift+A,然后键入编辑配置打开它。只需在android studio中指定午餐活动即可。要执行此

这里使用android.category.default将此应用程序作为默认启动器,就像google launcher一样,但在运行此应用程序时,未找到其抛出错误默认活动…我已多次尝试重新启动并使缓存无效。谁能帮我

转到编辑配置。在“常规”选项卡的“启动选项”下拉列表中,不选择任何内容。现在运行应用程序


您可以在Windows上使用
Control+Shift+A
,或在Mac上使用
Command+Shift+A
,然后键入编辑配置打开它。

只需在android studio中指定午餐活动即可。要执行此操作,请单击
运行配置
->
编辑配置

启动选项中
选择
指定的活动
,然后选择您的活动

你可以用这个

         <application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:supportsRtl="true"
    android:theme="@android:style/Theme.Wallpaper.NoTitleBar.Fullscreen">
    <activity android:name=".MainActivity"
        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>
    </activity>
    <activity android:name=".AppListActivity"/>
</application>


您想归档什么?你正在创建家庭发射器吗?是的,我正在尝试创建家庭发射器
 <activity android:name=".MainActivity"
    android:launchMode="singleInstance"
    android:stateNotNeeded="true">
    <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <action android:name="android.intent.action.VIEW" />
            <category android:name="android.intent.category.LAUNCHER" />
            <category android:name="android.intent.category.DEFAULT" />
            <category android:name="android.intent.category.HOME" />
    </intent-filter>
</activity>