title: AsynTask background or not
body: <p>I got a question.
  In my inner class <code>chargeAdapterAsync</code>, i got <code>mDataModel</code></p>
  
  <pre><code>class chargeAdapterAsync extends AsyncTask&lt; String, String, String &gt;
  {
      @Override
      protected String doInBackground( String... action )
      {
          mImageLoader = ImageLoaderFactory.create( context );
          // set up data
          mDataModel = new WhaskListDataModel( context, 10 );
          mAdapter = new PagedListViewDataAdapter&lt; UserWhasks &gt;( );
          mAdapter.setViewHolderClass( this, WhaskListItemViewHolder.class, mImageLoader );
          mAdapter.setListPageInfo( mDataModel.getListPageInfo( ) );
  
          return null;
      }
  
      @Override
      protected void onPostExecute( String o )
      {
          super.onPostExecute( o );
          mListView.setAdapter( mAdapter );
      }
  }
  </code></pre>
  
  <p>when I go in my <code>WhaskListDataModel</code>:</p>
  
  <pre><code>public class WhaskListDataModel extends PagedListDataModel&lt;UserWhasks&gt; {
  
      private Context activity;
      private ListWhasksPagination listWhasksPagination;
  
      public WhaskListDataModel(Context activity, int numPerPage) {
          mListPageInfo = new ListPageInfo&lt;UserWhasks&gt;(numPerPage);
          this.activity = activity;
          listWhasksPagination = new ListWhasksPagination(activity, numPerPage);
      }
  
      public void prependItem(UserWhasks item) {
          WhaskListDataEvent data = new WhaskListDataEvent();
          Arra
  </code></pre>
  
  <p>then I got <code>ListWhasksPagination</code> class, and when I go in, I got: </p>
  
  <pre><code>public ListWhasksPagination(Context activity, int limitArr) {
      currentList = new ArrayList&lt;&gt;();
      completeList = new ArrayList&lt;&gt;();
      completeList = getWhasksResult(activity);
      this.limitArr = limitArr;
      firtItem = -1;
      lastItem = 0;
  }
  
  private ArrayList&lt;UserWhasks&gt; getWhasksResult(Context activity){
      ArrayList&lt;UserWhasks&gt; sortedWhasks = new ArrayList&lt;&gt;();
      magnetClient = MagnetMobileClient.getInstance(activity);
      try {
          controllerFactory = new UserFactory(magnetClient);
          user = controllerFactory.obtainInstance();
          Call&lt;WhasksPostsResult&gt; callObject = user.getWhasks(
                  SharedPreference.ID,
                  SharedPreference.AUTHORIZATION, null);
          WhasksPostsResult result = callObject.get();
          for(WhasksResult whask : result.getWhasks()) {
              sortedWhasks.add(new UserWhasks(whask));
          }
          Collections.sort(sortedWhasks, Collections.reverseOrder());
          return sortedWhasks;
      } catch (SchemaException e) {
          Log.e(Constant.LOG_TAG, "can't get userController", e);
      } catch (ExecutionException e) {
          Log.e(Constant.LOG_TAG, "failed to execute getUser", e);
          e.printStackTrace();
      } catch (InterruptedException e) {
          Log.e(Constant.LOG_TAG, "getUser interrupted", e);
      }
      return sortedWhasks;
  }
  </code></pre>
  
  <p>and in this last class in <code>getWhaskResult</code>, i get back some elements, and I'm wondering, is the <code>getWhaskResult</code> method or even the class <code>ListWhaskPagination</code> is also in the background or not :/</p>