android 调用系统注册服务打开PDF
Intent intent = new Intent("android.intent.action.VIEW");
intent.addCategory("android.intent.category.DEFAULT");
intent.addFlags("intent.FLAG_ACTIVITY_NEW_TASK");
Uri uri = Uri.FromFile(new File(pdfPath));
try{
startActivity(intent);
}catch(Exception e)
//error handling
}