android之如何在安卓浏览器中查看pdf
telwanggs
阅读:62
2024-02-27 23:08:18
评论:0
friend ,
有人指导我如何在 Android 浏览器中查看 pdf 文件吗?
或任何其他有用的方法?
如有任何帮助,我们将不胜感激。
请您参考如下方法:
试试这个:
Intent intent = new Intent(Intent.ACTION_VIEW);
File file = new File("filename");
intent.setDataAndType(Uri.fromFile(file), "application/pdf");
startActivity(intent);
声明
1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本站的原创文章,请转载时务必注明文章作者和来源,不尊重原创的行为我们将追究责任;3.作者投稿可能会经我们编辑修改或补充。