Example FacebookSDK Usage Examples Doesn't work on Android phone

Whether it is with me or with my mobile phone or with my Facebook account. Today I downloaded the Faecbook SDK. I think that I will run several sample applications from the examples folder. I tried running the SessionLoginSample example and the Scrumptious example in the emulator. Both work great there. I can log in using Facebook and move on to other intentions.

But as soon as I installed the application on my Android phone (S3). None of the applications work on my phone. I get a Facebook login screen on my mobile phone, after a successful login, providing my username and password, I always get Facebook to stop working. And then I get the Scrumptious app, which forcibly closes. I have not made any changes to the code.

And after some time, I get an exception on my console as

 01-30 11:06:08.400: E/AndroidRuntime(7463): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=64206, result=0, data=null} to activity {com.facebook.samples.sessionlogin/com.facebook.LoginActivity}: java.lang.NullPointerException 

Has anyone encountered a similar problem? If so, can someone help me here? And is there a way to post this issue on the Facebook developers site?

Note. - Is there something that I need to change in the code or some keys before installing the application on my Android phone? I am not sure about that. If it works in an emulator, it should also work on an Android phone. Right?

+4
source share
1 answer

I think the problem is related to the already known Android SDK bug.
I suggest disabling the Do not save actions option in the developer settings of your device’s settings. In my case, it helped me solve the problem.

More information about the error on this page can be found here.

+1
source

All Articles