I wanna open a pdf stored in Mobile internal Memory... i'm trying to pass the path of the file to the Uri ..but it keep showing me this error "The file path is not Valid" but i'm sure that i'm putting the right path..
targetFile=new File("/data/data/package Name/app_mydir/test.pdf");
}
Intent intent;
intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(targetFile), "application/pdf");
startActivity(intent);