1
내 애플 리케이션 downlods PDF 파일 링크를 SD 카드에 저장하고, 그것은 잘하고있어 ..하지만 내가 뭘 고군분투 해요 내 애플 리케이션은 PDF 파일을 볼 수 없어 (내 에뮬레이터에서 PDF 뷰어를 설치 한하지만) ... 아무것도 파일을 다운로드 한 후 반응이 없습니다 ... 여기에 pdf 파일을 열려면 pdf 파일을 코드 아래내 애플 리케이션이 PDF 파일을 엽니 다
InputStream input = new BufferedInputStream(url.openStream());
File sdCard = Environment.getExternalStorageDirectory();
File dir = new File(sdCard.getAbsolutePath()
+ "/myapp/download");
dir.mkdirs();
File file = new File(dir, "application/pdf");
FileOutputStream output = new FileOutputStream(file);
게시하기 전에 검색하십시오. [읽기이] (http://stackoverflow.com/questions/2456344/display-pdf-within-app-on-android) 및 [This (http://stackoverflow.com/questions/1697726/how-to- pdf-and-read-it) – Calvin