I need to load data from the database into an ArrayList
, in the second thread, accompanying the unloading by DialogFragment'ом
. What can this be done with?
I wanted to do it through IntentServise
, but he is not friendly with the List'ами
(as far as I understood). I tried to start the unloading in the second thread, having stopped the first one, but the ProgressDialog
sleeping with the main thread. I even tried to do everything in the main thread, but ProgressDialog
does not have time to start and hangs with the main thread ...