I have integrated the Facebook SDK for android v3.5 in my app and included the install publishing code:
com.facebook.AppEventsLogger.activateApp(this);
But I am receiving a lot of crashes caused by:
Settings.java line 418
com.facebook.Settings.getAttributionId
and it's throwing the exception:
java.lang.IllegalStateException: Orca SharedPreferences used before initialized
I have been trying to reproduce the crash with no success. Has anybody encountered this issue? I just want to know if:
/* Only activate FaceBook publish install if the user has the FaceBook app installed */
if (com.facebook.Settings.getAttributionId(getContentResolver()) != null){
com.facebook.AppEventsLogger.activateApp(this);
}
this would fix the problem? Thanks!