java - Android Studio Facebook: onActivityResult in normal class -


in order listen facebook login event must override in activity function onactityresult , make call facebook's callbackmanager.

protected void onactivityresult(int requestcode, int resultcode, intent data) {     super.onactivityresult(requestcode, resultcode, data);      callbackmanager.onactivityresult(requestcode, resultcode, data); } 

so far everything's working.

i'd create static class facebook handles facebook callbacks, such login, etc.

is there substitute onactivityresult in case?

you mean want class handle activity returning? have have onactivityresult of activity calls startactivityforresult call facebook class. there's no way reroute automatically.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -