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 --------------------------------------------