title: run method after CreateView
body: <p>hi guys i have a problem with my fragment.
  I have a splashscreen where i set the array's strings with AsyncTask! is ok!</p>
  
  <p><strong>Splashscreen.java</strong></p>
  
  <pre><code>        @Override
      protected String doInBackground(String... params) {
          try {           
              org.jsoup.nodes.Document doc = Jsoup.connect("http://s.eu").timeout(7*1000).get();
  
              org.jsoup.nodes.Element tabella = doc.getElementsByClass("tabella-voli").first();
              Iterator&lt;org.jsoup.nodes.Element&gt; iterator = tabella.select("td").iterator();
  
              while(iterator.hasNext()){
                  thread++;
  
                  Compagnia[thread] = iterator.next().text();
                  CodiceVolo[thread] = iterator.next().text();
                  Citta[thread] = iterator.next().text();
                  OraPrevista[thread] = iterator.next().text();
                  OraStimata[thread] = iterator.next().text();
                  StatoVolo[thread] = iterator.next().text();
  
                  System.out.println("THREAD: "+CodiceVolo[thread]);
              }
          }catch (IOException e) {
              e.printStackTrace();
          }return info;
      }
  
      @Override
      protected void onPostExecute(String result) { 
          super.onPostExecute(result);
          prog.dismiss();
  
          finish();
          Intent intent = new Intent(SplashScreen.this, MainActivity.class);
          SplashScreen.this.startActivity(intent);
  
      //  new Partenze().execute("");
  
      }
  }
  </code></pre>
  
  <p>in console i can see the contenute of array's but i have a fragment:
  <strong>arrivi.java</strong></p>
  
  <pre><code>    public class arrivi extends Fragment {
  
      ListView list;
      List&lt;RowItem&gt; rowItems;
  
      @Override
      public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
         View arrivi = inflater.inflate(R.layout.arrivi, container, false); 
         return arrivi;
      }
  
      public void CheckRow(){
  
          System.out.println("EDEGUITO CHECKROW");
  
          SplashScreen x = new SplashScreen();
          rowItems = new ArrayList&lt;RowItem&gt;();
          for (int i = 1; i &lt;= x.thread; i++) {
  
              RowItem item = new RowItem(x.Compagnia[i], x.CodiceVolo[i], x.Citta[i],x.OraPrevista[i],  x.OraStimata[i], x.StatoVolo[i]);
              rowItems.add(item);
              System.out.println("EDEGUITO CHECKROW");
  
              System.out.println(x.CodiceVolo[i]);
          } 
          list=(ListView)getActivity().findViewById(R.id.listView1);
          CustomBaseAdapter adapter = new CustomBaseAdapter(getActivity(), rowItems);
          list.setAdapter(adapter);
      }
  }  
  </code></pre>
  
  <p>the problem is: when i have populate the arrays, i need to call CheckRow ONLY after createView in fragment..
  how can solve??
  thank you</p>