dzms에서 파일 업로드에이 방법을 사용한 UnknownHostException
가 있습니다.안드로이드를 통해 FTP 서버에 연결할 때 문제가 발생합니까?
try {
SimpleFTP ftp = new SimpleFTP();
// Connect to an FTP server on port 21.
ftp.connect("ftp://*******", 21, "*****", "*****");
// Set binary mode.
ftp.bin();
// Change to a new working directory on the FTP server.
ftp.cwd("web");
// Upload some files.
ftp.stor(new File("data/data/com.android/file/contacts"));
// Quit from the FTP server.
ftp.disconnect();
}
catch (IOException e) {
// Jibble.
}
이 방법의 문제점은 무엇입니까? 누구나 나를 분명히 해.
logcat –
@David Olsson : logcat을 포함시키는 방법을 포함해야합니다. 방법을 말해줘. –
터미널에서 adb logcat을 사용하십시오. 또는 일식에 logcat보기. –