Note that there are some explanatory texts on larger screens.

plurals
  1. POResources$NotFoundException is thrown by Integrating Facebook-android-sdk-3.0
    primarykey
    data
    text
    <p>I'm trying to integrate Facebook inside my app. But as soon as i clicked on <code>fbphoto</code> it throws error <code>android.content.res.Resources$NotFoundException</code>. I do know that it throws error as proper resource is not founding at runtime.</p> <p>Found out that error is thrown at <code>facebook.authorize(this, new String[] { "email", "publish_stream"}, new DialogListener() {}</code>. But the root cause is still missing.</p> <pre><code>fbphoto.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View arg0) { // TODO Auto-generated method stub loginToFacebook(); } }); public void loginToFacebook() { if(!facebook.isSessionValid()) { facebook.authorize(this, new String[] { "email", "publish_stream"}, new DialogListener() { }); } </code></pre> <hr> <pre><code>02-08 02:57:58.236: E/AndroidRuntime(1582): FATAL EXCEPTION: main 02-08 02:57:58.236: E/AndroidRuntime(1582): android.content.res.Resources$NotFoundException: String resource ID #0x7f050011 02-08 02:57:58.236: E/AndroidRuntime(1582): at android.content.res.Resources.getText(Resources.java:201) 02-08 02:57:58.236: E/AndroidRuntime(1582): at android.content.res.Resources.getString(Resources.java:254) 02-08 02:57:58.236: E/AndroidRuntime(1582): at android.content.Context.getString(Context.java:183) 02-08 02:57:58.236: E/AndroidRuntime(1582): at com.facebook.widget.WebDialog.onCreate(WebDialog.java:188) 02-08 02:57:58.236: E/AndroidRuntime(1582): at android.app.Dialog.dispatchOnCreate(Dialog.java:307) 02-08 02:57:58.236: E/AndroidRuntime(1582): at android.app.Dialog.show(Dialog.java:225) 02-08 02:57:58.236: E/AndroidRuntime(1582): at com.facebook.AuthorizationClient$WebViewAuthHandler.tryAuthorize(AuthorizationClient.java:462) 02-08 02:57:58.236: E/AndroidRuntime(1582): at com.facebook.AuthorizationClient.tryCurrentHandler(AuthorizationClient.java:210) 02-08 02:57:58.236: E/AndroidRuntime(1582): at com.facebook.AuthorizationClient.tryNextHandler(AuthorizationClient.java:189) 02-08 02:57:58.236: E/AndroidRuntime(1582): at com.facebook.AuthorizationClient.authorize(AuthorizationClient.java:117) 02-08 02:57:58.236: E/AndroidRuntime(1582): at com.facebook.AuthorizationClient.startOrContinueAuth(AuthorizationClient.java:98) 02-08 02:57:58.236: E/AndroidRuntime(1582): at com.facebook.Session.tryLegacyAuth(Session.java:1096) 02-08 02:57:58.236: E/AndroidRuntime(1582): at com.facebook.Session.authorize(Session.java:893) 02-08 02:57:58.236: E/AndroidRuntime(1582): at com.facebook.Session.open(Session.java:957) 02-08 02:57:58.236: E/AndroidRuntime(1582): at com.facebook.Session.openForPublish(Session.java:415) 02-08 02:57:58.236: E/AndroidRuntime(1582): at com.facebook.android.Facebook.openSession(Facebook.java:319) 02-08 02:57:58.236: E/AndroidRuntime(1582): at com.facebook.android.Facebook.authorize(Facebook.java:313) 02-08 02:57:58.236: E/AndroidRuntime(1582): at com.facebook.android.Facebook.authorize(Facebook.java:149) 02-08 02:57:58.236: E/AndroidRuntime(1582): at com.example.splashscreen.SecondScreen.loginToFacebook(SecondScreen.java:110) 02-08 02:57:58.236: E/AndroidRuntime(1582): at com.example.splashscreen.SecondScreen$1.onClick(SecondScreen.java:73) 02-08 02:57:58.236: E/AndroidRuntime(1582): at android.view.View.performClick(View.java:2485) 02-08 02:57:58.236: E/AndroidRuntime(1582): at android.view.View$PerformClick.run(View.java:9080) 02-08 02:57:58.236: E/AndroidRuntime(1582): at android.os.Handler.handleCallback(Handler.java:587) 02-08 02:57:58.236: E/AndroidRuntime(1582): at android.os.Handler.dispatchMessage(Handler.java:92) 02-08 02:57:58.236: E/AndroidRuntime(1582): at android.os.Looper.loop(Looper.java:123) 02-08 02:57:58.236: E/AndroidRuntime(1582): at android.app.ActivityThread.main(ActivityThread.java:3683) 02-08 02:57:58.236: E/AndroidRuntime(1582): at java.lang.reflect.Method.invokeNative(Native Method) 02-08 02:57:58.236: E/AndroidRuntime(1582): at java.lang.reflect.Method.invoke(Method.java:507) 02-08 02:57:58.236: E/AndroidRuntime(1582): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) 02-08 02:57:58.236: E/AndroidRuntime(1582): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) 02-08 02:57:58.236: E/AndroidRuntime(1582): at dalvik.system.NativeStart.main(Native Method) </code></pre> <p>Any help would be appreciated!! </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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