title: create android layout using json response
body: <p>I need to create an game info list using this json response in android:</p>
  
  <pre><code> {"count":"2","useruid":"100003264774181","games":[{"lastupdate":"2012-01-17 13:55:39","gametype":"R","players":{"2":"100002913406085,Prabir Kumar D,6sq6","1":"100003264774181,Avinash S,twyq"},"turnuid":"100002913406085","score":{"2":"0","1":"18"},"playerscount":2,"dic":"twl","active":"y","canforcewin":"n","showmsg":"n","lastmove":"HIDE,r,18","gameid":"85030616","tilesinbag":"68"},{"lastupdate":"2012-01-17 13:50:55","gametype":"R","players":{"2":"100000145226351,Sayak K,0r9o","1":"100003264774181,Avinash S,kltv"},"turnuid":"100000145226351","score":{"2":"0","1":"26"},"playerscount":2,"dic":"twl","active":"y","canforcewin":"n","showmsg":"n","lastmove":"BOX,r,26","gameid":"85030764","tilesinbag":"68"}]} 
  </code></pre>
  
  <p>my xml is linearlayout>>frame layout>> scrollview>> linear layout-- android:orientation="horizontal">> text view</p>
  
  <p>currently i m using this but got stuck..</p>
  
  <pre><code>JSONObject jresponse=response.getJsonResponseFor(myRequest);
  
                  String result=jresponse.toString();
                  System.out.println(" jresponse is here  "+jresponse.toString());
  
  
                  JSONArray jArray = jresponse.getJSONArray("games");
                  int max=jArray.length();
                  System.out.println("array length::"+max);
  
                  for (int j = 0; j &lt; max; j++)
                     {
  
                  JSONObject obj = jArray.getJSONObject(j);
                  JSONArray names = obj.names();
  
                  for (int k = 0; k &lt; names.length(); k++) 
                      {
                          String name = names.getString(k);
                        String value= obj.getString(name);
                             createtableLayout();  
                      }
  
                     }
  </code></pre>
  
  <p>the  <code>createtableLayout()</code> should add the data dynamically to the xml.</p>
  
  <p>Please help me regarding this.</p>