title: How to pass TypedArray into a bundle
body: <p>Can somebody explain how can we pass a <code>TypedArray</code> into a Bundle in Android?
  I'm using the <code>TypedArray</code> to store some images from <code>@Drawable</code> in the resource file and I want to pass that array to a fragment with <code>setArguments</code> which accepts a bundle.</p>
  
  <p>code snippet:</p>
  
  <pre><code>{
      fragmentTransaction = getSupportFragmentManager().fragmentManager.beginTransaction();
  
  Fragment f = new fFragment();
  
          fImages = (Parcelable)getResources().obtainTypedArray(R.array.fImages);
          fNames = getResources().getStringArray(R.array.fNames);
          Bundle b = new Bundle();
          b.putStringArray("name", fNames);
          b.putParcelable("image", fImages);
          sub.setArguments(b);
          fragmentTransaction.replace(R.id.mainFrameLayout, f).commit();
  }
  </code></pre>