1
我想用我的Android应用程序打开具有xls和xlsx文件的电子邮件附件。目前我可以从我的应用程序打开csv文件。请帮忙。我用我的清单为CSV 代码是:用于打开xls和xlsx文件的意图过滤器
<intent-filter
android:icon='@drawable/rr_ipad1_icon'
android:label="@string/app_name"
android:priority='1'>
<action android:name="android.intent.action.VIEW" />
<action android:name="android.intent.action.EDIT" />
<action android:name="android.intent.action.PICK" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:mimeType="text/csv" />
<data android:pathPattern="*.csv" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:mimeType="text/csv" android:scheme="http" android:host="*" android:pathPattern=".*\\.csv" />
<data android:mimeType="text/csv" android:scheme="https" android:host="*" android:pathPattern=".*\\.csv" />
</intent-filter>