得到打开pdf文件的intent,打开pdf文件intent,参数:文件路径返回:打开
分享于 点击 19219 次 点评:157
得到打开pdf文件的intent,打开pdf文件intent,参数:文件路径返回:打开
参数:文件路径
返回:打开pdf文件的intent
public Intent getPdfIntent(String param) { Intent intent = new Intent("android.intent.action.VIEW"); Uri uri = Uri.fromFile(new File(param)); intent.setDataAndType(uri, "application/pdf"); return intent; }//该片段来自于http://byrx.net
用户点评