-2
我是Android和我的语言英语的开发人员不太好。
我的问题是:
我需要代码到Android设备上,打开PowerPoint。
并在Android设备上显示PowerPoint。
请解释代码是如何工作的。在Android上打开PowerPoint
我是Android和我的语言英语的开发人员不太好。
我的问题是:
我需要代码到Android设备上,打开PowerPoint。
并在Android设备上显示PowerPoint。
请解释代码是如何工作的。在Android上打开PowerPoint
您可以尝试使用下面的代码:
File file = new File("path_to_the_file.ppt");
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(file),"application/vnd.ms-powerpoint");
startActivity(intent);
而且还有一个Apache POI - the Java API for Microsoft Documents
。你可以看看here。