FTP client for Android handsets.
support
Posts: 853 Joined: Sun Apr 20, 2008 4:40 pm
Post
by support » Mon Apr 05, 2010 7:50 pm
You can call AndFTP intent to download file. You can pass an AndFTP alias instead of FTP hostname, login, password ... You need to use alias://aliasdefinedinanftp instead of ftp:// or ftps:// or sftp://
Code: Select all
Intent intent = new Intent();
intent.setAction(Intent.ACTION_PICK);
Uri ftpUri = Uri.parse("alias://myandftpalias");
intent.setDataAndType(ftpUri, "vnd.android.cursor.dir/lysesoft.andftp.uri");
intent.putExtra("command_type", "download");
intent.putExtra("remote_file1", "/remotefolder/subfolder/file1.zip");
intent.putExtra("local_folder", "/sdcard/downloadedfolderalias");
startActivityForResult(intent, 4);
tlegras
Posts: 5 Joined: Sat Feb 13, 2010 2:32 pm
AntiSpam sum: 8
Post
by tlegras » Tue Apr 06, 2010 9:44 pm
Very good news. I will soon try that
Thanks,
Thierry.
zetec
Posts: 1 Joined: Fri Jun 25, 2010 10:32 pm
AntiSpam sum: 8
Post
by zetec » Fri Jun 25, 2010 10:34 pm
I can't get this to work. I'm trying to get it to work with Transdroid and my FTPS-only ftp.
I'm entering the following uri into Transdroid:
alias://MyAliasName
and in AndFTP, I have a server saved with the name
MyAliasName
and then all my settings.
Am i missing something?
support
Posts: 853 Joined: Sun Apr 20, 2008 4:40 pm
Post
by support » Sat Jun 26, 2010 8:19 am
Are you also passing the correct type ?
intent.setDataAndType(ftpUri, "vnd.android.cursor.dir/lysesoft.andftp.uri");