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?
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?