[英]how to get pdf from internal storage in android Using WebView or AnyConcept
how to get pdf from internal storage in android Using WebView or AnyConcept. 如何从Android内部存储中获取pdf使用WebView或AnyConcept。 i have to get pdf in an activity from internal storage.Can anyone of u guys let me know about this .Thank You. 我必须在内部存储的活动中获得pdf。你们中的任何人都让我知道这件事。谢谢。
String filename = null; File file = new File(Environment.getExternalStorageDirectory().getAbsolutePath() +"/"+ filename); Intent target = new Intent(Intent.ACTION_VIEW); target.setDataAndType(Uri.fromFile(file),"application/pdf"); target.setFlags(Intent.FLAG_ACTIVITY_NO_HISTORY); Intent intent = Intent.createChooser(target, "Open File"); startActivity(intent);
and give pdf filename 并提供pdf文件名
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.