android - How to handle SharePhoto result with Callbackmanager? -


my users posting photos facebook , want know that. in last sdk used code callback:

uihelper.onactivityresult(requestcode & 0xffff, resultcode, data, new facebookdialog.callback() {       @override     public void oncomplete(facebookdialog.pendingcall pendingcall, final bundle data) {           iscomplete = facebookdialog.getnativedialogdidcomplete(data);           (bitmap bitmap : images) {             getridofbitmapifneeded(bitmap);         }          //get rid of stored references bitmapss         images.clear();         if (iscomplete) {             string completiongesture = facebookdialog.getnativedialogcompletiongesture(data);             if (completiongesture == null || facebookdialog.completion_gesture_cancel.equals(completiongesture)) {                 //show publish cancel toast                 log.d("facebook iscomplete", "user canceled");                 setreadytoclick();               } else {                  string id = data.getstring("id");                 toast.maketext(getactivity(), id, toast.length_long).show();                        checkifcanshare();                }         }       }      @override     public void onerror(facebookdialog.pendingcall pendingcall, exception error, bundle data) {         setreadytoclick();     } }); 

now in new sdk have use callbackmanager. didn't find examples , couldn't figure out how , data.

would have little example :)

thanks.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -