it is fixed, I used your way and in the end eclipse told me to use InputStream is = null; below class definition. I used that and there is no error.
–
neemasaNov 4 '12 at 22:45

There is a new problem by the way, after running program in the log: Error converting result java.lang.NullPointerException Error parsing data org.json.JSONException: End of input at character 0 of
–
neemasaNov 4 '12 at 22:46