OceanLabs / FacebookPhotoPicker-Android

An Android photo picker that allows users to log in a select photos from Facebook. https://www.kite.ly
MIT License
6 stars 3 forks source link

Cannot call LoginFragment with a null calling package. This can occur if the launchMode of the caller is singleInstance. #4

Open guimellon opened 8 years ago

guimellon commented 8 years ago

Hello!

I am trying to use your lib and when creating the Intent to open it, it should validate the Session or send the user to the Login Fragment so he can authorize the app. The problem is it only works for the first time. When I refresh my fragment and tries to open the photo picker again, I get the following error:

"Cannot call LoginFragment with a null calling package. This can occur if the launchMode of the caller is singleInstance."

And I just use these lines to start the intent:

Intent intent = new Intent(this, FacebookPhotoPickerActivity.class); startActivityForResult(intent, 1232);

Tried searching on StackOverflow for the error but couldn't get it working. Do you know how to solve it?

haris15 commented 6 years ago

do you find any solution ?

ParryPatel021 commented 5 years ago

@guimellon Have you got the solution?