显示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);

你可能感兴趣的:(android)