Skip to content

Instantly share code, notes, and snippets.

@ajdeguzman
Created October 15, 2014 13:30
Show Gist options
  • Save ajdeguzman/958ab286bb162d431b5e to your computer and use it in GitHub Desktop.
Save ajdeguzman/958ab286bb162d431b5e to your computer and use it in GitHub Desktop.
Getting image
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();
}
}
});
@ajdeguzman
Copy link
Author

galing yan dito: http://goo.gl/XazAEb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment