I dont see why you get your null result but, one thing you are doing wrong is actually returning InputStream
:
is= urlConn.getInputStream(); //-->(1)<--
return is;
you should read your stream in doInBackground
(on worker thread), otherwise reading it in onPostExecute (UI Thread), will possibly cause NetworkOnMainThreadException
, or at least ANR. Reading data from InputStream is still a network operation - data you download can be several MBs.