My problem is that I want to get JSON data from ArcGIS for Server
For example: http://xxxx.com/arcgis/rest/services/Map/MapServer/legend?f=pjson
I can get and read JSON data from this URL but if ArcGIS for Server has a password I couldn't so , must use UserCredentials but every sample example use UserCredentials for identity task or querytask but I read data from URL.
how can I post UserCredentials with my AsyncTask ?