Issue
I've got an Activity from which i need to download and save list of files. Files and names are stored in Map <String,String>
. After downloading all files I need to call function in my Activity.
I've already have AsyncTask class which downloads and saves files and an interface which callbacks to Activity.
How can i pass Map<String,String>
to Asynctask or maybe there is another solutions?
Thanks.
Solution
This is not something that is suitable for an AsyncTask. You should look into implementing a custom Service, probably an IntentService.
There's a very good tutorial at http://www.vogella.com/tutorials/AndroidServices/article.html
Answered By - GreyBeardedGeek
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.