【发布时间】:2018-12-04 17:42:51
【问题描述】:
如何在android中将路径转换为uri?我还想如何在android中创建pdf文件的缩略图?以及如何在服务器上上传 pdf 文件。
使用
Intent intent = new Intent();
intent.setType("application/pdf");
intent.setAction(Intent.ACTION_GET_CONTENT);
startActivityForResult(Intent.createChooser(intent, "Select Pdf"), PICK_PDF_REQUEST);
用于抛出 FileNotFoundException 异常和 ENOENT 异常
【问题讨论】:
-
收集几个不相关的问题不是一个好习惯。你最好把每一个分成不同的帖子。