Intent in AsyncTask for FragmentPagerAdapter
问题 I have implemented a FragmentPagerAdapter of 4-lashes, and in each of them I load a fragment with a different view. In one of them, pressing an image executed a AsyncTask to obtain a series of data from a server and loads a new class through an intent on the postExecute() method as follows: //AsyncTask private static class LoadJSON extends AsyncTask<String, Void, String> { protected void onPreExecute() { mProgressItem.setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS); mProgressItem.setVisible