-
Notifications
You must be signed in to change notification settings - Fork 349
Cannot call LoginActivity with a null calling package. This can occur if the launchMode of the caller is singleInstance. #23
Comments
Hi, Have you added these lines to your manifest under <activity
android:name="com.facebook.LoginActivity"
android:label="@string/app_name"
android:theme="@android:style/Theme.Translucent.NoTitleBar" /> |
yes i had added in. for your information, i found this in facebook sdk LoginActivity.java :
|
From stack overflow, it seems as this is a known issue of tabs+social integration. |
yes. I think that the problem was caused by tab group activity. because when i change my project launcher activity to my fb login activity which does not have a tab, the code is working find. |
@pangminfu thank you for raising this issue. I hope that the solution won't have to change the original facebook sdk and everything could be done on high level. I will check and update you. |
Thanks for your fast response. for your information, even i change to implement a "com.facebook.widget.LoginButton" i still get the same error message. same condition, login is working when i change my project launcher activity to my fbloginactivity which does not have a tab. thank you very much |
I have the same problem, but the problem only occur with two conditions: 1-I have the Facebook app installed. |
Hi sromku, just want to share some idea, I have met this issue before when I am logout and login again, and I am thinking of I am actually using a helper class with singleton method to your library. Just sharing. Thanks. Hope it helped |
And I also faced same issue when I am doing request new permission, so I added 1 more argument on the simplefacebook for "activity", so that the facebook session can update with my new and current activity context. |
@tlslaj0417 I had a singleton wrapping FacebookUiHelper and recreating the singleton object resolved for me too. Thanks! |
Hi can anyone fix this issue I'm also facing it and didn't find any valuable answer. it is producing in sharing post on fb without dialogue box. and works fine with dialogue box ... :( |
I get this error:
10-24 16:21:35.737: E/com.facebook.LoginActivity(20573): Cannot call LoginActivity with a null calling package. This can occur if the launchMode of the caller is singleInstance.
for your information implementing your sample in a tabgroup activity
Thank you
The text was updated successfully, but these errors were encountered: