I have to parse Json
data and save it into a Sqlite
database, I want to do it in the background so that it will not affect the activity performance.
My data and UI are not connected.
After parsing and saving the data into the Sqlite
process should automatically stop.
Since there is no real question asked here, I Will give an answer that seems suiting to your problem.
First you need to use Asyntasks, then after you treated the response you should do something like getting the instance of your database and calling the right Insertion method by passing it your the JSONObject. If it's a JSONArray, then you should loop on the array calling that function (passing the object you're on in the loop).
You could also have an object that will parse your JSON into itself, then you could call the insert methode which suits to the object.