Android Facebook api 3.0 error: Cannot call LoginActivity with a null calling package

后端 未结 4 1082
轮回少年
轮回少年 2020-12-01 12:26

I am trying to integrate an android app with the the new facebook 3.0 api, but I get this exception:

java.lang.RuntimeException: Unable to resume acti

4条回答
  •  我在风中等你
    2020-12-01 13:15

    I managed to find my problem. Although I wasn't setting

    android:launchMode="singleTask"

    my LoginActivity had

    android:noHistory="true"

    which results in that exception. I put noHistory true because I didn't want the user to be able to press back button on the first activity after login and go back to login screen. Now I need to find another solution.

提交回复
热议问题