android not running on my phone, but on my emulator does
<p>i wrote this ftp upload method...it works great on the emulator but doesnt on my phone...</p>

<p>can someone tell me why not?</p>

<pre><code>FTPClient client = new FTPClient();
                FileInputStream fis = null;

                try {
                    client.connect("ftp.atw.hu");
                    client.login("festivale", "festivale12");
                    Log.d("TravellerLog :: ", "Csatlakozva: ftp.atw.hu");

                    //
                    // Create an InputStream of the file to be uploaded
                    //
                    client.setFileType(FTP.BINARY_FILE_TYPE);
                    client.enterLocalPassiveMode();
                    String substr = globalconstant.path.substring(4, globalconstant.path.length());
                    String filename = substr + "/Festivale.db";
                    Log.e("TravellerLog :: ", substr + "/Festivale.db");
                    fis = new FileInputStream(filename);

                    //
                    // Store file to server
                    //
                    client.storeFile("Festivale.db", fis);
                    Log.d("TravellerLog :: ", "Feltöltve");
                    client.logout();
                } catch (IOException e) {
                    e.printStackTrace();
                } finally {
                    try {
                        if (fis != null) {
                            fis.close();
                        }
                        client.disconnect();
                    } catch (IOException e) {
                        e.printStackTrace();
                    }
                }
</code></pre>

<p>pls help i'm trying to do this ftp almost 3hours ago :S</p>
