1
我已經創建了一個新的mimetype,它與文件瀏覽器很好地協作,它打開我的活動,但它在文件瀏覽器上顯示爲未知圖標,我使用ASTRO文件瀏覽器。 我已經加入了意圖的圖標,但它仍然顯示爲未知圖標 這是我的代碼如何爲我的自定義mimetype設置圖標
<activity android:name=".SharedActivity" android:label="@string/app_name"
android:screenOrientation="portrait">
<intent-filter android:icon="@drawable/icon" android:label="swv">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter android:icon="@drawable/icon" android:label="swv">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="http" />
<data android:host="*" />
<data android:pathPattern=".*\\.swv" />
</intent-filter>
<intent-filter android:icon="@drawable/icon" android:label="swv">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="http" />
<data android:host="*" />
<data android:mimeType="application/swv" />
</intent-filter>
<intent-filter android:icon="@drawable/icon" android:label="swv">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="file" />
<data android:host="*" />
<data android:pathPattern=".*\\.swv" />
</intent-filter>
</activity>
我試過了,沒有結果,swv文件的圖標仍然顯示爲未知圖標,任何其他想法? – JustMe 2011-04-11 06:25:14
@Gavohab:向ASTRO的民衆詢問他們用於圖標的內容。你也可以把圖標放在''上,但你可能已經有了。 –
CommonsWare
2011-04-11 11:58:51