Note that there are some explanatory texts on larger screens.

plurals
  1. POIntegrating Facebook and LinkedIn in Android app
    primarykey
    data
    text
    <p>I have an app that integrates both Facebook and LinkdedIn networks. According to the instructions, in order to integrate LinkedIn, I need to add the following code in my manifest, within my activity:</p> <pre><code>&lt;intent-filter&gt; &lt;action android:name="android.intent.action.VIEW" /&gt; &lt;category android:name="android.intent.category.DEFAULT" /&gt; &lt;category android:name="android.intent.category.BROWSABLE" /&gt; &lt;data android:scheme="x-oauthflow-linkedin" android:host="callback" /&gt; &lt;/intent-filter&gt; </code></pre> <p>An example can also be found <a href="https://github.com/alt236/LinkedIn-J-Test-Application---Android/blob/master/AndroidManifest.xml" rel="nofollow">here</a>. As you can see in the link, we need to add also the " <strong>android:launchMode="singleInstance"</strong> " line, otherwise after logging in with LinkedIn a new instance of the activity will be started. </p> <p>However, when trying to log in to Facebook from the same activity, this actual line results to the following error from the Facebook Login activity (!):</p> <p><strong>E/AndroidRuntime(7100): Caused by: com.facebook.FacebookException: Cannot call LoginActivity with a null calling package. This can occur if the launchMode of the caller is singleInstance.</strong></p> <p>So now, I'm somehow stuck, because removing <strong>android:launchMode="singleInstance"</strong> will make Facebook login working, but will cause the LinkedIn login to start another instance of my activity, but if I add it, then Facebook login is not working!</p> <p>Does anyone have any idea how to address this issue?</p> <p>Thank you,</p> <p>Dimitris</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload