title: Save data from Json object to Database (SQLite)
body: <p>I am newbie in Android, so I can not estimate how do I save data in database(SQLite) that were got from httprequest through Json.<br>
  Here is my code:</p>
  
  <pre><code>            final ArrayList&lt;HashMap&lt;String, String&gt;&gt; mylist4 = new ArrayList&lt;HashMap&lt;String, String&gt;&gt;();
  
      try{
          JSONObject jObj = new JSONObject(rfiItems);
          JSONArray data4 = jObj.getJSONArray("data");
          //data4 = json4.getJSONArray("data");
              //Toast.makeText(getApplicationContext(), data4.toString(), Toast.LENGTH_LONG).show();
  
                  for(int i=0;i&lt;data4.length();i++){                      
                      HashMap&lt;String, String&gt; map = new HashMap&lt;String, String&gt;();    
                      JSONObject e = data4.getJSONObject(i);
  
                      map.put("id", String.valueOf(i));
                      map.put("rfi_data1", "" + e.getString("item_type"));
                      map.put("rfi_data2", "" + e.getString("change_number"));
                      map.put("rfi_data3", "" + e.getString("to_vendor"));
                      map.put("rfi_data4", "" + e.getString("status"));
                      map.put("rfi_data5", "" + e.getString("title"));
                      map.put("rfi_data6", "" + e.getString("change_date"));
                      map.put("rfi_data7", "" + e.getString("responded_date"));
                      mylist4.add(map);
  
                  }       
              }catch(JSONException e)        {
                  Log.e("log_tag", "Error parsing data "+e.toString());
              }
  
              ListAdapter adapter4 = new SimpleAdapter(this, mylist4 , R.layout.item_list4,
                                        new String[] { "rfi_data1", "rfi_data2","rfi_data3", "rfi_data4","rfi_data5","rfi_data6","rfi_data7"}, 
                                   new int[] { R.id.rfi_item_type, R.id.rfi_change_no,R.id.rfi_to_vendor,R.id.rfi_status,R.id.rfi_title,R.id.rfi_change_date,R.id.rfi_responded_date });
                                        setListAdapter(adapter4);
  </code></pre>
  
  <p>Any help will really be appreciated. THANKS</p>