title: using json data in my gridview array
body: <p>I am messing around with my own gallery app that loads images (thumbs and full size) from a webserver. I have my image info returned from a database and encoded as json data. </p>
  
  <pre><code>{"id":["1","2","3"],"name":["Dragon","Butterfly","Tattoo"],"thumb":["thm_polaroid.jpg","thm_default.jpg","thm_enhanced-buzz-9667-1270841394-4.jpg"],"path":["polaroid.jpg","default.jpg","enhanced-buzz-9667-1270841394-4.jpg"]}
  </code></pre>
  
  <p>I am using the developer.android.com <a href="http://developer.android.com/resources/tutorials/views/hello-gridview.html" rel="nofollow">hello gridview</a> tutorial as my reference. They are using a url referencing local images. </p>
  
  <p>MY QUESTIONS.</p>
  
  <ol>
  <li><p>Should I parse my json data into separate arrays since I will be using all of the data at some point in my app or should I keep it all together?</p></li>
  <li><p>how can I replace the static image array found below with my thumbnail images?</p></li>
  </ol>
  
  <p>Static Image array </p>
  
  <pre><code>private Integer[] mThumbIds = {
          R.drawable.sample_2, R.drawable.sample_3,
          R.drawable.sample_4, R.drawable.sample_5,
          R.drawable.sample_6, R.drawable.sample_7,
          R.drawable.sample_0, R.drawable.sample_1,
          R.drawable.sample_2, R.drawable.sample_3,
          R.drawable.sample_4, R.drawable.sample_5,
          R.drawable.sample_6, R.drawable.sample_7,
          R.drawable.sample_0, R.drawable.sample_1,
          R.drawable.sample_2, R.drawable.sample_3,
          R.drawable.sample_4, R.drawable.sample_5,
          R.drawable.sample_6, R.drawable.sample_7
  };
  </code></pre>