title: Android - Java how to loop muti-array
body: <p><strong>ANDROID BEGINS</strong></p>
  
  <pre><code>String JsonFeeds = object.getString("feeds");
  JSONArray feeds = new JSONArray(JsonFeeds);
  int feed_id;
  String feed_radio, feed_title, feed_api, feed_frequency, feed_type, feed_date;
  
  
      for (int i=0; i &lt; feeds.length();  i++){
         String feed_data = feeds.getString(i);
         JSONArray array_feed = new JSONArray(feed_data);
         for (int j=0; j &lt; array_feed.length();  j++) {
            JSONObject row = array_feed.getJSONObject(j);
            feed_title = row.getString("feed_title");
            tv.setText(feed_title);
         }
      }
  </code></pre>
  
  <p>I'm just a beginner in android am trying to figure out how to do the follow loop</p>
  
  <p><strong>EXPECTED LOOP IF IT WAS PHP</strong></p>
  
  <pre><code>foreach($array[feeds] as $feed_key =&gt; $array_feed_data){
      echo "&lt;div&gt;";
          echo "&lt;span&gt;" . $array[feeds][$feed_key][val1] . "&lt;span&gt;";
          echo "&lt;span&gt;" . $array[feeds][$feed_key][val2] . "&lt;span&gt;";
          echo "&lt;span&gt;" . $array[feeds][$feed_key][val3] . "&lt;span&gt;";
          echo "&lt;span&gt; &lt;a href='$downloadlink'&gt; Download &lt;/a&gt;&lt;span&gt;";
      echo "&lt;/div&gt;";  
  }
  </code></pre>
  
  <p>The problem I'm having with the android, i can't get to <code>feeds[array_feed_id][my_value_to_show]</code></p>
  
  <p><strong>EDIT</strong></p>
  
  <pre><code> String JsonFeeds = object.getString("feeds");
   JSONArray feeds = new JSONArray(JsonFeeds);
  
  JSONObject feeds = object.getJSONArray("feeds");
  
                     for (String key : feeds.getKeys()) {
                         JSONObject row = feeds.getJSONObject(key);
                         feed_title = row.getString("feed_title");
                         tv.setText(feed_title);
                     }
  </code></pre>