应用程序未显示在启动器中 [英] App not showing in launcher

查看:26
本文介绍了应用程序未显示在启动器中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Android Studio 上通过运行命令安装应用程序后,应用程序正确启动,我可以在应用程序列表和帐户管理器中看到它.问题是它根本没有出现在应用程序启动器中.(我在正在测试的 Nexus 5 设备上安装了 Google Launcher,并且在 6.0.1 之前一切正常).应用名称为南瓜".

After installing an app via the run command on Android Studio, the app launches correctly, I can see it in the applications list and account manager. The problem is that it doesn't show up at all in the app launcher. (I have Google Launcher installed on the Nexus 5 device which I am testing on and everything was working fine before 6.0.1). App name is "Pumpkin".

这是清单

这是南瓜应该适合的屏幕截图.

And here's the screenshot where Pumpkin's supposed to fit.

推荐答案

您的 Intent-Filter 似乎是错误的.更改为:

Your Intent-Filter seems to be wrong. Change to:

<activity
       android:name="com.pumpkin.activities.SplashScreenActivity"
       android:label="@string/app_name"
       android:screenOrientation="portrait" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
        <intent-filter>
            <data android:scheme="pumpkin.com" android:host="open" />
            <action android:name="android.intent.action.VIEW" />
            <category android:name="android.intent.category.DEFAULT" />
            <category android:name="android.intent.category.BROWSABLE" />
        </intent-filter>
    </activity>

这篇关于应用程序未显示在启动器中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆