I have searched many links, but cant get a clear idea about how to import or export MySQL DB into SQLite database.
I need to get Data's from web and displays into my android app. Before that i used web services and get data as JSON format and processed it.
List<NameValuePair> params = new ArrayList<NameValuePair>(); params.add(new BasicNameValuePair("xxxx", Menu_id)); params.add(new BasicNameValuePair("yyyy", Food_id)); JSONParser jParser = new JSONParser(); JSONObject jobject = jParser.makeHttpRequest(URL, "POST", params); success = jobject.getInt(TAG_SUCCESS); if (success == 1) { JSONArray jarray = new JSONArray(); jarray = jobject.getJSONArray("Dinner_Foods"); for (int i = 0; i < jarray.length(); i++) { final JSONObject jobj = jarray.getJSONObject(i); FoodItems item = new FoodItems(); item.setFoodIdentifier(jobj.getInt("id")); item.setFoodName(jobj.getString("title")); mFoodItems.add(item); } }
But now i will try to import Mysql Database file into Sqlite database, and process it.
For that task, i have .sql which has table name as "questions", i need to convert this table into SQlite DB and process it. Please help me to find the solution...