안녕하세요
ICS 버전에서다운로드가 문제가 발생하여 질문을 올려봅니다.
현재 발생하고 있는 문제는 ICS 이전 버전에서는 잘만되던 다운로드가
ICS 버전에서 다운 받던중에 멈춰버리는 현상입니다.
다운로드를 쓰레드로 빼둔 상태라 어플에 다른것들은 동작을 하나.
유독 다운로드만 안되네요..
왜!!!!
다운로드중에 멈춰버리는것일까요 ..
cn = url.openConnection();
cn.connect();
InputStream stream = cn.getInputStream();
File outputDir = new File(DownLoadDefines.Path+folder);
outputDir.mkdirs();
StringBuilder sb = new StringBuilder();
fileUrl = URLDecoder.decode(fileUrl);
sb.append(fileUrl.substring(fileUrl.lastIndexOf("/") + 1));
String filename =sb.toString();
File outputFile = new File(folder, filename);
outputFile.createNewFile();
FileOutputStream out = new FileOutputStream(outputFile);
byte buf[] = new byte[1024];
do {
int numread = stream.read(buf);
if (numread <= 0) {
break;
} else {
out.write(buf, 0, numread);
}
} while (isStart());
음.. 무엇이 문제인지 고수님들에 도움을 ~ ~
목표를 이룹시다! !




익셉션이 떨어지는것도없구 계속 멈춰있네요.. 무슨 문제일까요..