It would seem that there is no way within the [color=#4000FF]loadInBackground()[/color] method to update the GUI with its progress? This is strange since [color=#4000FF]AsyncTask<>[/color] has a [color=#4000FF]publishProgress();[/color] method you can use to do this, and [color=#4000FF]AsyncTaskLoader[/color] uses an [color=#4000FF]AsyncTask [/color]for the [color=#4000FF]loadInBackground()[/color] method.
I finally got the whole LoaderManager and AsyncTaskLoader thing to work. I am loading two XML files and writing the data to a SQLIteDatabase. I can disable and enable the button that starts this but would like to add a ProgressBar and Cancel button when it is running. I have no idea how long it will take to run on a real device.
I could just use an AsyncTask to do it instead of LoaderManager and AsyncTaskLoader. No data is returned from the operation. I have AsyncTaskLoader use a Boolean as its object (AsyncTaskLoader). This database operation would only be done once, or could be done again if the user wants to import XML files with their own data.
If I want some sort of progress indicator and/or the ability to cancel the operation, what would be a good way to do it?