大家好,在遇到问题后,我在Google上苦苦挣扎。我被困在了这个问题上:
我想通过电子邮件点击特定文件类型(.tap)来打开我的应用程序,并解析文件中的xml数据并显示在我的应用程序视图中。我已经尝试过所有关于这个问题的解决方案,但不幸的是,都没有奏效。
我尝试了此类解决方案。
大家好,在遇到问题后,我在Google上苦苦挣扎。我被困在了这个问题上:
我想通过电子邮件点击特定文件类型(.tap)来打开我的应用程序,并解析文件中的xml数据并显示在我的应用程序视图中。我已经尝试过所有关于这个问题的解决方案,但不幸的是,都没有奏效。
我尝试了此类解决方案。
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<action android:name="android.intent.action.EDIT" />
<category android:name="android.intent.category.DEFAULT" />
<data
android:host="*"
android:mimeType="application/octet-stream"
android:pathPattern=".*\\.tap" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<action android:name="android.intent.action.EDIT" />
<category android:name="android.intent.category.DEFAULT" />
<data
android:host="*"
android:mimeType="application/tap"
android:pathPattern=".*\\.tap" />
</intent-filter>