title: How to fill the ListView from another class?
body: <p>My problem is follow (I know that selected structure of my classes looks like bizarre, but ...).</p>
  
  <ol>
  <li>I have the MainActivity with inner class, that extends AsyncTask to parse HTML from internet.</li>
  <li>This activity parses HTML-page and fills the ListView in AnotherActivity. </li>
  <li>AnotherActivity must call the inner AsyncTask and PostExecute must fill the ListView by another data (the sense of this actions that AnotherActivity is results of search and another search means the going to new page of search's results of YouTube)</li>
  <li><p>I wrote the next code in PostExecute of AsyncTask:
  where I get Activity with ListView, create adapter and assign it to ListView. </p>
  
  <p><code>ResultsQueryActivity resultsActivity = new ResultsQueryActivity();<br>
      ResourceDataAdapter resourceDataAdapter = new ResourceDataAdapter(resultsActivity,MainActivity.listVideosData);
      resultsActivity.setListAdapter(resourceDataAdapter);</code></p></li>
  </ol>
  
  <p>After execution of this I get the message </p>
  
  <pre><code>*02-01 07:40:56.784: E/AndroidRuntime(525): java.lang.IllegalStateException: System services not available to Activities before onCreate()*
  </code></pre>
  
  <p>I really have no idea how to resolve it. Thanks for help! </p>