Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
朋友们,
任何人指导我如何在android浏览器中查看pdf文件?
或任何其他有用的方法?
任何帮助,将不胜感激。
尝试这个:
Intent intent = new Intent(Intent.ACTION_VIEW); File file = new File("filename"); intent.setDataAndType(Uri.fromFile(file), "application/pdf"); startActivity(intent);