0
내 장치의 기본 응용 프로그램으로 PDF 파일을 열려고합니다. 자산 폴더에서 주소를 부여하는 데 문제가 있습니다. 다음과 같이
내주는 주소 코드는 다음과 같습니다 Adobe Reader가 열릴 때자산 폴더에서 주소를 부여하는 방법은 무엇입니까?
File pdfFile = new File("file:///android_assets/test.pdf");
Uri path = Uri.fromFile(pdfFile);
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
intent.setDataAndType(path, "application/pdf");
startActivity(intent);
이 코드는 오류 This path is not valid
을 제공합니다. 정확한 주소는 무엇입니까?