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
Post a Comment