I would like to open/view PDF/Doc files stored in internal storage
(i.e "file:///data/data/<package_name>/files/test.pdf")
Is there any way to generate Uri object for file stored in internale
storage
(i.e "file:///data/data/<package_name>/files/test.pdf")
Intent intent = new Intent(android.content.Intent.ACTION_VIEW);
Uri data = Uri.fromFile("file:///data/data/<package_name>/files/
test.pdf");
intent.setDataAndType(data, "application/pdf");
startActivity(intent);
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en