Android Facebook SDK - Problem with authorizeCallback() -


i have android application which, among other things, publishes updates on facebook.

i created code according this example , works fine. difference in code , 1 in link above extended onactivityresult mentioned on official facebook sdk android page.

    @override protected void onactivityresult(int requestcode, int resultcode, intent data) {     super.onactivityresult(requestcode, resultcode, data);     facebookclient.authorizecallback(requestcode, resultcode, data); } 

sometimes however, null pointer exception on line call "facebook.authorizecallback()" within onactivityresult() method.

this has never occurred on of mobile phones or emulators. however, keep getting user crash reports, droid , t-mobile mytouch 3g phones. tried lot unable reproduce problem. body have idea wrong ?

by looking in facebook.java code seems dialoglistener , kept private parameter in class... when calling authorizecallback() assume dialoglistener exits , isn't null. if phone short on memory (like g1 is) calling activity killed vacate memory facebook login process erasing dialoglistener when call autherizecallback function you'll null pointer exception or callback ignored. might cause of problem.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -