i am unable to connect to ftp server from andriod phone..a simple java application to upload image to server is running fine...but the same in andriod is not working
please help me....i want to connect to the server using andriod app only
There are several things that could be causing that. Can we see your code? Make sure you set the right permissions in the manifest, such as internet access for example.
i am using andriod 2.1,i have posted my code here
jar i have used is:(org.apache.commons.net_2.0.0.v200905272248.jar)
i have also given the internet permission in manifest file.
please see through the code and help because iam unsuccessful to do this since long
1.mainactivity
2.filetransfer class which is called inside mainactivity
dat log cat i posted was different.sory for wrong post..
please see the code and tell me what could be wrong.is this problem of version or emulator?
AndriodManifest.xml
What problem? Is there an exception? If so, post the logcat output. If there's no exception, tell us what the code does right now, and how that differs from what you expected it to do.
i want to send the image i select from the sdcard to the ftp server i mentioned.
the problem is the image is not uploaded to the server.
i am running on android version 4.0.3
I hope the password you quoted earlier is a dummy password; if no you ought to go back and change the post.
Please don’t post long lines in code tags; I have had to edit your stack traces so they are legible without too much left and right scrolling.
suzzane pinto wrote:how to ping on a virtual device?
There are any number of Ping apps in the Android Market; some of them are bound to be available as .apk files from their developers in case you don't have access to the Android Market.
now i am able to uplaod images from emulator,but while i run in my mobile device the image is not uploaded...
i recognized that the problem is in getting the absolute path of image before uploading....can you tell me hw to get the image from relative path???
my problem is he app is running fine on virtual device but not in the actual device.
what might be the problem???
when i run from my avd it takes image from the sdcard n then send to server. but in mobile it allows to select from its sdcard and when selected it doesnt upload
nw it is running from device also i just used following code
now i observed that...images from mobile are loaded incompltly(half image)...whereas from avd upto image sized upto 7b where loaded successfully
is size a problem or something else?