How are we doing? Please help us improve Stack Overflow. Take our short survey. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. How to download a file from FTP server to Android device?
Ask Question. Asked 7 years, 4 months ago. Active 5 years, 6 months ago. Viewed 29k times. Have anyone worked with FTP servers?
The Heist 1, 1 1 gold badge 15 15 silver badges 31 31 bronze badges. Anil kumar Anil kumar 1, 3 3 gold badges 14 14 silver badges 20 20 bronze badges. Add a comment.
Active Oldest Votes. Anil Jadhav Anil Jadhav 2, 1 1 gold badge 17 17 silver badges 30 30 bronze badges. Its address is Use this link lifehacker. OR check this for same setups addictivetips. What is the Library you are using??? I am geting java. When i call this class in the mainActivity what should I send? I call it in my mainActivity like this:. Can you show me the full code on how you integrate the code in the example above in your Android app?
Maybe you can post the code in Pastebin. You need the Apache Commons Net library to compile and run the example. Try to get the download status and the reply code from the FTP server by adding the following code.
This will show if the download process success or failed. This site uses Akismet to reduce spam. Learn how your comment data is processed.
FTPClient; import java. FileOutputStream; import java. IOException; import java. Founder at Kode Java Org. I am a programmer, a runner, a recreational diver, currently live in the island of Bali , Indonesia. If these posts help, you can support me, buy me a cup of coffee or tea.
0コメント