안드로이드 개발 질문/답변
(글 수 45,052)
InputStream inputStream = new URL("url).openStream();
String fileName = Uri.encode(url.substring(url.lastIndexOf("name=")+ 5));
File file = new File("/mnt/sdcard/download/" , fileName);
file.createNewFile();
OutputStream out = new FileOutputStream(file);
컴파일을 해 보니 file.createNewFile(); 이부분에서 catch 로 팅겨저 나가더라구요
파일 이름은 %25EA%25B(사이에 잡다구리한 문자들 다수 -_-;;)ED%2594%258C.pdf 이런식으로 되구요
어떤게 잘못 된건지 알수 있을까요..?
그리구 저 애러를 로그정보 출력을 하려면 Log.e(??,??); ?? 부분에 어떤것들이 들어가야 할까요..?