-5

I am new. I am trying to write a code in Android Studio - a program to download file using provided URL link. Please help! Thanks!!!

EV Android
  • 27
  • 1
  • 1
  • 1

1 Answers1

1

To start with , you can look into AsyncTask. Refer this link

Do check the following :

  1. user has an internet connection available

  2. Make sure you have the right permissions (INTERNET and WRITE_EXTERNAL_STORAGE); also ACCESS_NETWORK_STATE if you want to check internet availability.

  3. Make sure the directory were you are going to download files exist and has write permissions.

  4. Use AsyncTask to download file.

For downloading file refer this thread.Its pretty detailed.

Hope this helps

Community
  • 1
  • 1
vab
  • 723
  • 7
  • 15