I need to convert a String[] to an JsonArray and I don\'t know how. I am new in android development i want to insert call log details in MySQL database. so, from android side i
It is easy.You can use one of the constructors of JSONArray class.
JSONArray jArr = new JSONArray(strArr)
where strArr is your String array.
More here: https://developer.android.com/reference/org/json/JSONArray.html#JSONArray(java.lang.Object)