Hi guys, i implement facebook sdk in my app and just follow the tutorial. When i call other activity, let's say: the activity that i implement facebook sdk is activity A, from there i can call other activity which is B. >From B, i press back button, then it goes back to A. But it returns error:
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 10-22 21:33:23.445: ERROR/AndroidRuntime(538): FATAL EXCEPTION: main 10-22 21:33:23.445: ERROR/AndroidRuntime(538): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=0, result=0, data=null} to activity {pt.bm.vv/test.test.Test}: java.lang.NullPointerException 10-22 21:33:23.445: ERROR/AndroidRuntime(538): at android.app.ActivityThread.deliverResults(ActivityThread.java:3515) 10-22 21:33:23.445: ERROR/AndroidRuntime(538): at android.app.ActivityThread.handleSendResult(ActivityThread.java:3557) 10-22 21:33:23.445: ERROR/AndroidRuntime(538): at android.app.ActivityThread.access$2800(ActivityThread.java:125) 10-22 21:33:23.445: ERROR/AndroidRuntime(538): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2063) 10-22 21:33:23.445: ERROR/AndroidRuntime(538): at android.os.Handler.dispatchMessage(Handler.java:99) 10-22 21:33:23.445: ERROR/AndroidRuntime(538): at android.os.Looper.loop(Looper.java:123) 10-22 21:33:23.445: ERROR/AndroidRuntime(538): at android.app.ActivityThread.main(ActivityThread.java:4627) 10-22 21:33:23.445: ERROR/AndroidRuntime(538): at java.lang.reflect.Method.invokeNative(Native Method) 10-22 21:33:23.445: ERROR/AndroidRuntime(538): at java.lang.reflect.Method.invoke(Method.java:521) 10-22 21:33:23.445: ERROR/AndroidRuntime(538): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) 10-22 21:33:23.445: ERROR/AndroidRuntime(538): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 10-22 21:33:23.445: ERROR/AndroidRuntime(538): at dalvik.system.NativeStart.main(Native Method) 10-22 21:33:23.445: ERROR/AndroidRuntime(538): Caused by: java.lang.NullPointerException 10-22 21:33:23.445: ERROR/AndroidRuntime(538): at test.test.Test.onActivityResult(Test.java:507) 10-22 21:33:23.445: ERROR/AndroidRuntime(538): at android.app.Activity.dispatchActivityResult(Activity.java:3890) 10-22 21:33:23.445: ERROR/AndroidRuntime(538): at android.app.ActivityThread.deliverResults(ActivityThread.java:3511) 10-22 21:33:23.445: ERROR/AndroidRuntime(538): ... 11 more ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Anyone has idea to solve this problem? Thanks -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en