I am trying to retrieve objects from Parse cloud storage in a button click event in my Main Activity, this is the simple code I copied from the parse.com site examples:
ParseQuery<ParseObject> query = ParseQuery.getQuery("WtestObj2");
query.countInBackground(new CountCallback() {
public void done(int count, ParseException e) {
if (e == null) {
//
} else {
//
}
}
});
when I build I get the following error, it seems like my "new CountCallback" is creating an anonymous calss which does not implement an abstract method, but I copied the code 100% from parse.com online docs here, what else could be wrong in my Android Studio project?
'anonymous com.mobilevision.wtrend.MainActivity$4' is not abstract and does not override abstract method done(int,ParseException) in CountCallback
ParseExceptionimported? That is,com.parse.ParseException, notjava.text.ParseException. - Mike M.