Sending and receiving files via FTP

by EboMike » Mon, 03 Nov 2008 13:40:17 GMT


Sponsored Links
 It's been six months since the last activity on any group regarding
FTP, but there is still no post that explains how to solve the problem
with the java.io.IOException stating "Unable to connect to server:
{0}" whenever trying to connect to an FtpURLConnection. (The "FTP use
from Android" thread goes into detail about this problem, complete
with example code).

I've noticed on my server logs that the Android emulator is actually
able to connect to the FTP server and even request the transfer of the
file (although the amount of bytes transferred is 0 in the xferlog),
so this doesn't seem to be a firewall or networking configuration
problem. I also have the Internet permission in the manifest file, and
I'm able to request files via HTTP just fine.

Has anyone been able to use FtpURLConnection successfully?

-Mike

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Ringtone.stop() wont work?

I currently start a Ringtone on Android and it plays fine.

However when I try to stop the ringtone it doesn't stop or atleast
doesn't stop straight away, it will keep in playing until it just
plays out.

Here is how I set up the Ringtone:

int rm = audio_service.getRingerMode();
int vs =
audio_service.getVibrateSetting(AudioManager.VIBRATE_TYPE_RINGER);

android.os.{*filter*} v = ({*filter*})
getSystemService(Context.{*filter*}_SERVICE);

if ((rm == AudioManager.RINGER_MODE_VIBRATE ||
    (rm == AudioManager.RINGER_MODE_NORMAL && vs ==
AudioManager.VIBRATE_SETTING_ON)))
            v.vibrate(vibratePattern,1);

if (audio_service.getStreamVolume(AudioManager.STREAM_RING) > 0)
{

    oRingtone = RingtoneManager.getRingtone(this,
Settings.System.DEFAULT_RINGTONE_URI);
    oRingtone.setStreamType(AudioManager.STREAM_RING);
    oRingtone.play();

    }

And here is how I try to stop it

if (CallDialogActivity.oRingtone != null) {
      Log.d("RINGTONE", "Into Ringtone if");
      Ringtone ringtone = CallDialogActivity.oRingtone;
      oRingtone = null;
      ringtone.stop();
}

Has anyone come across similiar problems or see any mistakes in my
code?

-- 

2. AudioTrack.getPlaybackHeadPosi tion() is buggy????

folks,

does anybody use AudioTrack.getPlaybackHeadPosition()?
i found that, if i call AudioTrack.pause() in the middle of playing
audio frames, at end of playback getPlaybackHeadPosition() always
returns hundreds of frames less than the number of frames fed into
the
AudioTrack object .

did anybody also run into the same issue?

if you did, how did you work around this unexpected behavior?

thank u~

-- 

3. is it possible to get user name against the default Gmail account.

4. intercept sms

5. K9 2510 (was WTA : Push Yahoomail)

6. Save File via Gmail di Androi

7. USB mass storage issue in Eclair