0
File pdfFile = new File(Environment.getExternalStorageDirectory() + "/FILE/a.docx");
Uri path = Uri.fromFile(pdfFile);
Intent pdfIntent = new Intent(Intent.ACTION_VIEW);
pdfIntent.setDataAndType(path,"application/msword");
pdfIntent.setFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
startActivity(pdfIntent);
のAndroid 4.2で、エラーメッセージを取得:
ファイルは、読み込みエラー。ファイルタイプがサポートされていないか、ファイルが壊れています。