[英]Android App is not showing up in the App Drawer
我從多個角度進行了研究,並嘗試了SO提出的解決方案。 似乎沒有任何作用。 該圖標是可繪制的,我已將建議的操作添加到我的意圖過濾器中,但安裝該應用后仍未顯示該應用。
我的清單中的問題出在哪里?
<?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>
將它們分成兩個意圖過濾器:
<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>
看看是否可行。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.