Activitynotfound exception

FTP client for Android handsets.

Activitynotfound exception

Postby raviteja » Tue Jun 08, 2010 6:16 am

I am getting ActivitynotfoundException while uploading files.

I've installed AndFTP in my AVD and trying to use the code that has been given in the forum.

Intent intnt = new Intent();
Uri ftpUri = Uri.parse("");
intnt.putExtra("ftp_username", "demo");
intnt.putExtra("ftp_password", "demo");
//intent.putExtra("ftp_keyfile", "/sdcard/dsakey.txt");
//intent.putExtra("ftp_keypass", "optionalkeypassword");
// FTP settings (optional)
intnt.putExtra("ftp_pasv", "true");
//intent.putExtra("ftp_resume", "true");
//intent.putExtra("ftp_encoding", "UTF8");
// Download
intnt.putExtra("command_type", "upload");
// Activity title
intnt.putExtra("progress_title", "Uploading files ...");
// Close activity after transfer (optional)
// intent.putExtra("close_ui", "true");
// Remote files to download.
intnt.putExtra("/sdcard/1.3gp", "ravi.3gp");
//intnt.putExtra("remote_file2", "/remotefolder/subfolder/");
// Target local folder where files will be downloaded.
//intnt.putExtra("remote_folder", "/sdcard/localfolder");
startActivityForResult(intnt, 0);

Am i missing anything. Do i need to include anything in the manifest.xml. Please help.
Posts: 3
Joined: Tue Jun 08, 2010 6:14 am

Re: Activitynotfound exception

Postby support » Fri Jun 11, 2010 7:45 pm

No, nothing in Manifest. You do need:
Code: Select all
intent.setDataAndType(ftpUri, "");
Posts: 1025
Joined: Sun Apr 20, 2008 4:40 pm

Return to AndFTP

Sitemap | Privacy Statement | Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc.
in the U.S. and other countries. All other company and/or product names are the property of their respective owners.