How can I query the specific value of an object in my Parse class and set it to a String? Given that I have an object with a specific objectId, I want the value for the "position" column, and I want to set it to a String.
ParseQuery<ParseObject> query = new ParseQuery<ParseObject>("NativeAd");
query.whereEqualTo("objectId", "fYBeufqdOt");
query.findInBackground(new FindCallback() {
@Override
public void done(List objects, ParseException e) {
if (e == null) {
Log.d("NativeAd", "Retrieved " + objects.size());
for (ParseObject adPosition : objects) {
String n = adPosition.get("position").toString();
System.out.println(n);
}
} else {
Log.d("NativeAd", "Error: " + e.getMessage());
}
}
});