Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

SOLVED: when excut two A AsyncTask in same fragment activity my application hangging and still loading

mohammedragabmohammedborik:

i am try to excute two AsyncTask in same fragment but when i run my application application hanging in my phone and still loading this my code when i excute one asynTask every thing is ok

this where it try to excute


@Override
public void onActivityCreated(Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
Log.w(LOG_TAG,"onActivityCreated------------");

// here


new RecomenddedChaneel().execute();

and here


new Loadchannels().execute();

this first asynTask


public class RecomenddedChaneel extends AsyncTask> {

@Override
protected void onPreExecute() {
super.onPreExecute();
pDialog = new ProgressDialog(getActivity());
pDialog.setMessage("Loading channel list. Please wait...");
pDialog.setIndeterminate(false);
pDialog.setCancelable(false);
pDialog.show();
}
@Override
protected List

and the second it is like first . i do't know why app hangging and still loading .



Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots
This Question have been answered
HERE


This post first appeared on Stack Solved, please read the originial post: here

Share the post

SOLVED: when excut two A AsyncTask in same fragment activity my application hangging and still loading

×

Subscribe to Stack Solved

Get updates delivered right to your inbox!

Thank you for your subscription

×