Closed kmguinto closed 3 years ago
Hello i can't seem to get this to work for my phone/tablet. But it works on Android Studio Emulator.
It gives me "i/o failure" error from .getMessage().
final ParseQuery plistQuery1 = ParseQuery.getQuery("HPProducts").orderByDescending("Price"); plistQuery1.getFirstInBackground(new GetCallback() { @Override public void done(ParseObject object, ParseException e) { if (e == null) { ParseFile parseFile = object.getParseFile("Image"); if (parseFile.isDataAvailable()) Toast.makeText(MainActivity.this, "Available", Toast.LENGTH_LONG).show(); else Toast.makeText(MainActivity.this, "Not Available", Toast.LENGTH_LONG).show(); } else Toast.makeText(MainActivity.this, "Error at Query", Toast.LENGTH_LONG).show(); } });
redundant Issue to https://github.com/parse-community/parse-server/issues/4290
Hello i can't seem to get this to work for my phone/tablet. But it works on Android Studio Emulator.
It gives me "i/o failure" error from .getMessage().
final ParseQuery plistQuery1 = ParseQuery.getQuery("HPProducts").orderByDescending("Price");
plistQuery1.getFirstInBackground(new GetCallback() {
@Override
public void done(ParseObject object, ParseException e) {
if (e == null) {
ParseFile parseFile = object.getParseFile("Image");
if (parseFile.isDataAvailable())
Toast.makeText(MainActivity.this, "Available", Toast.LENGTH_LONG).show();
else
Toast.makeText(MainActivity.this, "Not Available", Toast.LENGTH_LONG).show();
}
else
Toast.makeText(MainActivity.this, "Error at Query", Toast.LENGTH_LONG).show();
}
});