Hello guys,
my problem is that, There's a HTTP request, I request it as a pages, each 
page will hold a long json text, So instead of holding them in the memory, 
i write all the pages that requested into a file, then after finishing the 
request, i start the parsing of the JSONs.

the question is that, the process of receiving the response as inputstream 
and saving the inputstream into a file Receives a memory, and the process 
of parsing the file JSONs, also receive a memory.

i called the GC alot and the memory not affected.

the Question is, how to optimize the memory ? how to free the memory of the 
unnecessary Strings, Lists, StreamReaders ? 
i closed the StreamReaders and made a list.clear() and equalled the string 
= null and nothing happen to the memory.

So, is there any tips on freeing the memory ?

thanx.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to