here is my db structure of purchased_item
and here is my image table
i want to get file FFNglxekCv
ParseQuery<ParseObject> query = ParseQuery.getQuery(KEY_MASTER_PURCHASED_ITEM);
ParseUser currentUser = ParseUser.getCurrentUser();
user.setObjectId(currentUser.getObjectId());*/
query.whereEqualTo(KEY_PURCHASED_BY, currentUser);
query.findInBackground(new FindCallback<ParseObject>() {
public void done(List<ParseObject> parseObjectList, ParseException e) {
hideProgressDialog();
if (e == null) {
if (!parseObjectList.isEmpty()) {
for (int i = 0; i < parseObjectList.size(); i++) {
ParseObject parseObject = parseObjectList.get(i);
// ParseFile parseFile =(ParseFile) parseObject.getParseFile("image");
Log.e(TAG,TAG);
}
}
} else {
if (!e.getLocalizedMessage().equalsIgnoreCase(""))
showErrorToast(e.getLocalizedMessage(), true);
else
showErrorToast(getString(R.string.no_response_from_server), true);
Log.d(TAG, "Error: " + e.getMessage());
}
}
});
i dont know how to get image from parse.com
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…