android - JsonArray Out of Memory -
Hello friends, I am trying to get a JSN variable from my server.
The return value may be
I sometimes get out of memory error.
I am trying to implement this one service.
try {Response = CustomHttpClient2.executeHttpPost (as the URL,); String return string = response .ststring (); JSONArray jArray = New JSONArray (return string); Int jc = jArray.length (); Int count = msl.getCount (); Msl.delete (); For (int i = 0; i & lt; jArray.length (); i ++) {{try {JSONObject json_data = jArray.getJSONObject (i); Feedback = json_data.getString ("pair"); // Log.w ("coin", apis [is] + ": pair is" + // response); Long tempres = msl.createEntry (feedback); } Hold (exception e) {// TODO auto-generated catch block / e.printStackTrace (); Logs. W ("coincidence", "JSOXpressation:"); } // log. W ("coincarker", "a:" + tamperes); }} JArray = null; } Hold (exception e) {// TODO auto generate generated blocks}
I also tried
runtime .getRuntime () .gc () ;
Can you please tell me how to solve it and do not tell me to increase the size of the pile
Comments
Post a Comment