Scrumptious Application在Facebook SDK 3.0中不起作用

时间:2013-03-24 02:21:58

标签: java android facebook-android-sdk facebook-authentication

我正在关注Facebook Developers页面中的确切教程,并在Scrumptious application附带的Android手机上安装了Facebook Android SDK 3.0。每当我将用户名和密码传递到Facebook登录页面时。我总是得到以下NPE

  

奇怪的是每当我在上面运行相同的应用程序时   模拟器,它工作正常。

     

如果我尝试运行相同的话   在手机上应用但没有安装Facebook应用程序,   然后美味的应用程序工作正常。

我也尝试过其他Facebook SDK示例。他们中的大多数都失败了相同的NPE。

java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=64206, result=0, data=null} to activity {com.facebook.scrumptious/com.facebook.LoginActivity}: java.lang.NullPointerException

02-02 12:49:25.520: E/AndroidRuntime(5219): at android.app.ActivityThread.deliverResults(ActivityThread.java:3182)
02-02 12:49:25.520: E/AndroidRuntime(5219): at android.app.ActivityThread.handleSendResult(ActivityThread.java:3225)
02-02 12:49:25.520: E/AndroidRuntime(5219): at android.app.ActivityThread.access$1100(ActivityThread.java:140)
02-02 12:49:25.520: E/AndroidRuntime(5219): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1275)
02-02 12:49:25.520: E/AndroidRuntime(5219): at android.os.Handler.dispatchMessage(Handler.java:99)
02-02 12:49:25.520: E/AndroidRuntime(5219): at android.os.Looper.loop(Looper.java:137)
02-02 12:49:25.520: E/AndroidRuntime(5219): at android.app.ActivityThread.main(ActivityThread.java:4898)
02-02 12:49:25.520: E/AndroidRuntime(5219): at java.lang.reflect.Method.invokeNative(Native Method)
02-02 12:49:25.520: E/AndroidRuntime(5219): at java.lang.reflect.Method.invoke(Method.java:511)
02-02 12:49:25.520: E/AndroidRuntime(5219): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1006)
02-02 12:49:25.520: E/AndroidRuntime(5219): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:773)
02-02 12:49:25.520: E/AndroidRuntime(5219): at dalvik.system.NativeStart.main(Native Method)
02-02 12:49:25.520: E/AndroidRuntime(5219): Caused by: java.lang.NullPointerException
02-02 12:49:25.520: E/AndroidRuntime(5219): at com.facebook.NativeProtocol.isServiceDisabledResult20121101(NativeProtocol.java:238)
02-02 12:49:25.520: E/AndroidRuntime(5219): at com.facebook.AuthorizationClient$KatanaLoginDialogAuthHandler.onActivityResult(AuthorizationClient.java:587)
02-02 12:49:25.520: E/AndroidRuntime(5219): at com.facebook.AuthorizationClient.onActivityResult(AuthorizationClient.java:142)
02-02 12:49:25.520: E/AndroidRuntime(5219): at com.facebook.LoginActivity.onActivityResult(LoginActivity.java:134)
02-02 12:49:25.520: E/AndroidRuntime(5219): at android.app.Activity.dispatchActivityResult(Activity.java:5390)
02-02 12:49:25.520: E/AndroidRuntime(5219): at android.app.ActivityThread.deliverResults(ActivityThread.java:3178)
02-02 12:49:25.520: E/AndroidRuntime(5219): ... 11 more

还有这个错误 -

03-23 19:08:28.820: E/AndroidRuntime(28599): java.lang.RuntimeException: Unable to stop activity {com.facebook.katana/com.facebook.katana.platform.PlatformWrapperActivity}: java.lang.NullPointerException

我正在开发Android SDK 3.0

有没有人在手机上试过Facebook示例,而不是在模拟器上?如果有人能够在手机上运行示例,请告诉我。

任何帮助将不胜感激。谢谢你的帮助。

0 个答案:

没有答案