Issue
1. here my Order of execution
SplashActivity : two AsyncTask (each have different result and I want to Intent to next Activity when each AsyncTask Parsing and putParcelableArrayList completed.
MainActivity : getParrcelableArrayList from SplashActivity
In addition
-already implemented parcelable in the model class.
-The values in the array are well stored.
2. my Answer
how to Intent and startActivity when each AsyncTask complated putParcelableArrayList
please, need your help!! if you don't unberstand, write comment please!
Solution
There are two possible ways to achieve this,
one way, you can call second AsyncTask in onPostExecute
of first one, and then call the intent from onPostExecute
of second.
Another way is you can call some common method which will set two boolean
global parameters, on completion of first AsyncTask make one boolean
true on same way for another and once both values are true you can call intent from that method.
Answered By - Kiran Malvi
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.