读书人

展示word文档

发布时间: 2012-09-10 22:20:13 作者: rapoo

显示word文档
String filePath = "/sdcard/sym.doc"
Log.e("MULpath", path);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.setAction(android.content.Intent.ACTION_VIEW);
intent.setDataAndType(Uri.parse("file://" + filePath), "application/msword");
startActivity(intent);

读书人网 >移动开发

热点推荐