Created
October 15, 2014 13:30
-
-
Save ajdeguzman/958ab286bb162d431b5e to your computer and use it in GitHub Desktop.
Getting image
This file contains 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
ParseFile fileObject = (ParseFile)obj.get("image"); | |
fileObject.getDataInBackground(new GetDataCallback() { | |
public void done(byte[] data, ParseException e) { | |
if (e == null) { | |
bmp = BitmapFactory.decodeByteArray(data, 0,data.length); | |
imgView.setImageBitmap(bmp); | |
} else { | |
Toast.makeText(getActivity(), "There was a problem downloading the data." , Toast.LENGTH_SHORT).show(); | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
galing yan dito: http://goo.gl/XazAEb