title: pass Arraylist in Activity to Fragment
body: <p>I have MyClass implements Parcelable. And have 2 fragments. In MainActivity (onCreate) i have code:</p>
  
  <pre><code>ArrayList&lt;MyClass&gt; data = new ArrayList&lt;MyClass&gt;();
  ............
  Bundle extras1 = new Bundle();
  extras1.putParcelableArrayList("arraylist", data);
  Tab1Fragment fg = new Tab1Fragment();
  fg.setArguments(extras1);
  </code></pre>
  
  <p>And in Fragment(onCreateView):</p>
  
  <pre><code>Bundle extras = getArguments(); 
  ListView list = (ListView) content.findViewById(R.id.lvMain);
  if (extras != null) {
      data = extras.getParcelableArrayList("arraylist");
      list.setAdapter(new MyAdapter(getActivity(), data));
  }
  </code></pre>
  
  <p>But extras alway null.why?:)</p>