简体   繁体   English

Android应用程序未显示在应用程序抽屉中

[英]Android App is not showing up in the App Drawer

I've been looking at it from multiple angles and tried the solutions suggested from SO. 我从多个角度进行了研究,并尝试了SO提出的解决方案。 Nothing seems to be working. 似乎没有任何作用。 The icon is a drawable, I've added the suggested actions to my intent-filter and still the app is not showing up when I install it. 该图标是可绘制的,我已将建议的操作添加到我的意图过滤器中,但安装该应用后仍未显示该应用。

Where is the problem in my Manifest? 我的清单中的问题出在哪里?

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="lite.hattrick.main"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="17" />

    <uses-permission android:name="android.permission.INTERNET" >
    </uses-permission>

    <uses-feature
        android:name="android.hardware.touchscreen"
        android:required="false" />

    <application
        android:hardwareAccelerated="true"
        android:icon="@drawable/icon"
        android:label="liteTrick"
        android:allowBackup="true"
        android:theme="@style/Theme.Sherlock.Light" >

        <service android:name="lite.hattrick.services.LiteTrickService" />

        <activity
            android:name=".LoginActivity"
            android:label="@string/app_name" 
            android:noHistory="true">
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
                <data
                    android:host="whodunit"
                    android:scheme="callback" >
                </data>
            </intent-filter>
        </activity>

        <activity
            android:name=".BaseActivity"
            android:label="@string/app_name" >
        </activity>

        <activity
            android:name="lite.hattrick.players.HattrickPlayerActivity"
            android:theme="@style/NoActionBar" />
    </application>

</manifest>

Split those in two intent filters: 将它们分成两个意图过滤器:

<intent-filter>
    <action android:name="android.intent.action.MAIN" />
    <category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
    <action android:name="android.intent.action.VIEW" />
     <data
          android:host="whodunit"
          android:scheme="callback" >
     </data>
</intent-filter>

See if it works. 看看是否可行。

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

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