Hi, I'm develop a download manager function which the dialog will popup when the the item was finished download. the download function was running at background.
my question is how can I know when the downloading was finished and the project is intent other activity?
for example:
if(download_state == TASK_FINISH){
//download Finish
openfile();
}
the above method where should I put? i try put it at onResume(), onStart() in every activity which will open by user. but unlucky it won't work.You reply is appreciated.
p/s: I'm sorry about my bad english, hope you guys understand what I'm talking about.
Thank you.