android - parse.com cloud code example doesn't compile -


i using android studio , following cloud code guide of parse.com: https://parse.com/docs/cloud_code_guide

after deploying first example defines function "hello" on cloud, run below code in android project(i call code in mainactivity:oncreate)

parsecloud.callfunctioninbackground("hello", new hashmap<string, object>(), new functioncallback<string>() {     void done(string result, parseexception e) {         if (e == null) {             // result "hello world!"         }     } }); 

i error:

error:(29, 116) error: not abstract , not override abstract method done(string,parseexception) in functioncallback

you forgot add @override. mine working code. luck!

map<string, string> params = new hashmap<string, string>();     parsecloud.callfunctioninbackground("hello", params, new functioncallback<object>() {         @override         public void done(object object, parseexception e) {             toast.maketext(mcontext, object.tostring(), toast.length_long).show();         }     }); 

Comments

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -