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