-1

I was just wondering what's the exact sequence of downloading an image/file from URL in android? I mean is it like:

Open Url -> Read Image -> Get Image -> Save Image -> Close connection?

I am just looking for as simple example of it as possible, but most people add 1000 extras to their codes which takes too long to go through, can someone throw a simplistic code of how to get image from URL and save it to phone?

(No need to check for exists or not, length of file, no need to cache it, just simple Open -> Get -> Save)

Thank you.

Ritesh Gune
  • 16,450
  • 6
  • 42
  • 70
Vlad Mir
  • 5
  • 4

1 Answers1

0

This question has a pretty cut and dry example. This is also along the lines of what you asked for.

Community
  • 1
  • 1
Prmths
  • 1,959
  • 4
  • 20
  • 38