Thursday, 4 April 2013

android pdf from sd card


File file = new File(Environment.getExternalStorageDirectory().getAbsolutePath()+"/test.pdf");
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(file),"application/pdf");
intent.setFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
startActivity(intent);