How to correctly start activity from PostExecute in Android?

后端 未结 3 1291
感动是毒
感动是毒 2020-11-28 11:42

I have an AsyncTask, that fills a custom List with parsed data from Internet.

In PostExecute I fill that List and get it ready to transfer it to a new Activity.

3条回答
  •  感情败类
    2020-11-28 12:47

    I tried this just now ... it works in PostExecute Method!!!

    Intent intent_name = new Intent();
    intent_name.setClass(getApplicationContext(),DestinationClassName.class);
    startActivity(intent_name);
    

提交回复
热议问题