Android 如何打开pptx文件,以达到

Android 如何打开pptx文件,以达到,android,android-intent,powerpoint,Android,Android Intent,Powerpoint,我想从我的应用程序打开PowerPoint文件。该文件存储在“我的资产”文件夹中。我使用以下代码: Uri helpfile = Uri.parse("content://com.example.myapp/Tutorial.pptx"); Intent intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(helpfile, "*/*"); startActivity(intent); 我已在清单中注册了ContentP

我想从我的应用程序打开PowerPoint文件。该文件存储在“我的资产”文件夹中。我使用以下代码:

Uri helpfile = Uri.parse("content://com.example.myapp/Tutorial.pptx");
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(helpfile, "*/*");
startActivity(intent);
我已在清单中注册了ContentProvider类

<provider android:name="com.example.myapp.Provider"
android:authorities="com.example.myapp"
android:grantUriPermissions="true"
android:exported="true" />
当我被问到我想用什么应用程序来完成这个动作时,我选择了POLARIS Office 5,一个祝酒词显示为“不受支持的文档类型”。如果我从ASTRO file Manager启动PPTX文件,POLARIS会立即打开

我错过了什么

intent.setType("application/vnd.openxmlformats-officedocument.presentationml.presentation");