Note that there are some explanatory texts on larger screens.

plurals
  1. POFacebook SDK doesn't work after API LEVEL 10 on Android
    text
    copied!<p>I used Facebook SDK (and Twitter, Linkedin) to make a log in on my app. It works perfectly if I specify the minSdkVersion&lt;10. I need to upgrade the app to use Fragment..</p> <pre><code>&lt;uses-sdk android:minSdkVersion="10" /&gt; </code></pre> <p>For the 11 and greater, the app crashes after receiving the token! I need help! Take a look at the error:</p> <p>UPDATE </p> <p><code>07-12 16:58:44.136: D/AndroidRuntime(18310): Shutting down VM </code></p> <pre><code> 07-12 16:58:44.148: E/AndroidRuntime(18310): FATAL EXCEPTION: main 07-12 16:58:44.148: E/AndroidRuntime(18310): java.lang.NullPointerException: println needs a message 07-12 16:58:44.148: E/AndroidRuntime(18310): at android.util.Log.println_native(Native Method) 07-12 16:58:44.148: E/AndroidRuntime(18310): at android.util.Log.d(Log.java:138) 07-12 16:58:44.148: E/AndroidRuntime(18310): at com.branchu1.Login$1$1.onComplete(Login.java:161) 07-12 16:58:44.148: E/AndroidRuntime(18310): at com.facebook.android.Facebook$1.onComplete(Facebook.java:312) 07-12 16:58:44.148: E/AndroidRuntime(18310): at com.facebook.android.FbDialog$FbWebViewClient.shouldOverrideUrlLoading(FbDialog.java:144) 07-12 16:58:44.148: E/AndroidRuntime(18310): at android.webkit.CallbackProxy.uiOverrideUrlLoading(CallbackProxy.java:224) 07-12 16:58:44.148: E/AndroidRuntime(18310): at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:324) 07-12 16:58:44.148: E/AndroidRuntime(18310): at android.os.Handler.dispatchMessage(Handler.java:99) 07-12 16:58:44.148: E/AndroidRuntime(18310): at android.os.Looper.loop(Looper.java:137) 07-12 16:58:44.148: E/AndroidRuntime(18310): at android.app.ActivityThread.main(ActivityThread.java:4424) 07-12 16:58:44.148: E/AndroidRuntime(18310): at java.lang.reflect.Method.invokeNative(Native Method) 07-12 16:58:44.148: E/AndroidRuntime(18310): at java.lang.reflect.Method.invoke(Method.java:511) 07-12 16:58:44.148: E/AndroidRuntime(18310): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) 07-12 16:58:44.148: E/AndroidRuntime(18310): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) 07-12 16:58:44.148: E/AndroidRuntime(18310): at dalvik.system.NativeStart.main(Native Method) </code></pre> <p>It's exactly the same thing with the Twitter and Linkedin SDK. And if I remove the field android:minSdkVersion from the manifest, it works. I really don't understand!</p> <p>Thanks!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload