i'm a beginner in android ... Can we save arraylist to SQLite database? some suggested to use JSON object to insert the arraylist. If this method can be done, please give an example. Here is my code:
ArrayList<HashMap<String, String>> mylist = new ArrayList<HashMap<String, String>>();
HashMap<String, String> map = new HashMap<String, String>();
map.put("agendaTitle",agendaTitle );
map.put("presenterName", presenterName);
mylist.add(map);
System.out.println("Map values are: "+ mylist);
JSONObject json = new JSONObject(map);
json.put(map);
String agendaStrings = json.toString();
System.out.printf( "JSON: %s", json.toString(2) );
here i am pass the agendatitle and presentername values to hashmap, later add it to the arraylist. now i want to save my arraylist to SQLite.