私はDDMSからファイルをアップロードするために、この方法を使用したとき、私は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を使用します。またはeclipseでlogcatビュー。 –