Hi I am new in android i have some PDF file that exist in this path asset/pdf/example.pdf
when i try PDF file with this code
Intent intent = new Intent(Intent.ACTION_VIEW);
File file = new File("file:///android_asset/pdf/example.pdf");
intent.setDataAndType( Uri.fromFile( file ), "application/pdf" );
startActivity(intent);
i get this error & know it's because third party has no access to file what is solution?