- The original resource is from gitlab.com/vandy-aad-2/ImageDownloader
- At the point of investigating the source file mentioned above, there were few missing implementations and relevent comments
- The source files in this repository has been updated with the missing implementations and relevant comments
- However it is not the latest source code as per the original source
- Pull the source code into an Android Studio environment and launch it Andriod Emulator
- This is an Image Downloader App that uses the
android.os.AsyncTask
Framework to perform the downloading task that usually a long duration process. - The
AsyncTask
Framework requires 2 method implementations, namelydoInBackground
andonPostExecute
. - The
doInBackground
usually does the heavy lifting work then the result will returned and in turns passed intoonPostExecute
- It is also important for the
onPostExecute
to call thefinish()
method that usually comes as a superclass method - During the processing in
onPostExecute
, developers are responsible for setting the Results which indicates the upstream activity status and the downstreamIntent
object - Assuming that developer uses the
startActivityForResult
method, then the Caller Activity is expected to have theonActivityResult
method being called