Created
March 22, 2014 07:33
-
-
Save ixiyang/9702690 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
protected InputStream getStreamFromNetwork(String imageUri, Object extra) throws IOException { | |
HttpGet httpRequest = new HttpGet(imageUri); | |
HttpResponse response = httpClient.execute(httpRequest); | |
HttpEntity entity = response.getEntity(); | |
BufferedHttpEntity bufHttpEntity = new BufferedHttpEntity(entity); | |
return bufHttpEntity.getContent(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment