friend ,
有人指导我如何在 Android 浏览器中查看 pdf 文件吗?
或任何其他有用的方法?
如有任何帮助,我们将不胜感激。
最佳答案
试试这个:
Intent intent = new Intent(Intent.ACTION_VIEW);
File file = new File("filename");
intent.setDataAndType(Uri.fromFile(file), "application/pdf");
startActivity(intent);
关于android - 如何在安卓浏览器中查看pdf?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3423177/