How to upload file through FTP in Android
<p>i want to upload xml file to through ftp from android sdcard folder,im trying this code to connect to ftp :</p>

<pre><code>      FTPClient f = new FTPClient();
      f.connect(server,21);
      f.login(username,password);
      Log.d("status",f.getStatus());
      f.logout(); 
      f.disconnect();    
</code></pre>

<p>but i getting exception</p>

<p>Exception:</p>

<p>java.net.SocketException: Permission denied</p>

<p>i have no idea why this exception occur because im new to adroid development.
Any help regarding this greatly appreciated, it is urgent thanks in advance.     </p>
