I am developing an Android-App that uses the Facebook-SDKv3, so I created an entry in the strings.xml:
<resources>
<string name="facebook_app_id">"12345678910"</string>
</resources>
and added the following to the Manifest:
<application>
...
<meta-data android:name="com.facebook.sdk.ApplicationId" android:resource="@string/facebook_app_id" />
</application>
I always get this Exception:
02-06 16:35:01.231: W/Bundle(8316): Key com.facebook.sdk.ApplicationId expected String but value was a java.lang.Integer. The default value was returned.
02-06 16:35:01.231: W/Bundle(8316): Attempt to cast generated internal exception:
02-06 16:35:01.231: W/Bundle(8316): java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
02-06 16:35:01.231: W/Bundle(8316): at android.os.Bundle.getString(Bundle.java:1061)
02-06 16:35:01.231: W/Bundle(8316): at com.facebook.internal.Utility.getMetadataApplicationId(Utility.java:159)
I already tried to put the Numbers in “” but this did not solve the Problem, hope somebody can help me.
Change it from
android:resourcetoandroid:value