I want to use the JSONParser codes but when I write the codes some imports are wrong or it's marked by red.What I have to do?
try using the volley library. this will remvoe all your headache of using the JSONParser class to get the json from the url and so on.
Please refer this link for volley:
.. Let me know if this helps ! :)