Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- protected Bitmap doInBackground(String... strings) {
- urlAddress = strings[0];
- Bitmap bitmap = null;
- try {
- URL url = new URL(urlAddress);
- InputStream inputStream = url.openStream();
- bitmap = BitmapFactory.decodeStream(inputStream);
- } catch (Exception e) {
- e.printStackTrace();
- }
- return bitmap;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement