Upload Multiple Files

FTP client for Android handsets.
Post Reply
ravitejab4u
Posts: 1
Joined: Wed Nov 17, 2010 9:14 pm
AntiSpam sum: 8

Upload Multiple Files

Post by ravitejab4u »

Version: AndFTP version 2.2
Phone: Google Nexus One (Froyo)
Connection: Wifi

I'm using below code to upload multple files. Sometimes it works but most of the times AndFTP just stays in the notification bar and does not close even with task kiler applications. I have to restart my Phone to get to the initial state.

Am i doing anything wrong here? Is there a limit for uploading files ? Please help.

----------------------------------------------------------------------------------------
Intent intnt = new Intent();
intnt.setAction( Intent.ACTION_PICK);
Uri ftpUri = Uri.parse("sftp://192.168.1.110");
intnt.setDataAndType(ftpUri, "vnd.android.cursor.dir/lysesoft.andftp.uri");
intnt.putExtra("ftp_username", "demo");
intnt.putExtra("ftp_password", "demo");
intnt.putExtra("command_type", "upload");


for(k=0;k<listCount-1;k++ ) {
localStr = "local_file" + (k+1);
Str = "/sdcard/" + (k+1) + ".3gp";

intnt.putExtra(localStr, Str);

} //for

startActivityForResult(intnt, 1);


-------------------------------------------- CODE END --------------------------------------------

support
Posts: 853
Joined: Sun Apr 20, 2008 4:40 pm

Re: Upload Multiple Files

Post by support »

Do you have all files uploaded?

Post Reply