Uri path = Uri.fromFile(file );
Intent pdfIntent = new Intent(Intent.ACTION_VIEW);
pdfIntent.setDataAndType(path , "application/pdf");
pdfIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
try {
startActivity(pdfIntent );
}
catch (ActivityNotFoundException e) {
Toast.makeText(EmptyBlindDocumentShow.this,
"No Application available to viewPDF",
Toast.LENGTH_SHORT).show();
}
}