Android LinkedIn Integration issue
<p>After the token generation code redirects to browser for authentication.</p>

<p>After authentication browser is not redirecting on app.</p>

<p>Please provide some code snippet for the same problem.</p>

<p>Thanks in advance.</p>

<hr>

<p>Below is the code i am using for Linkdin Integration</p>

<p>ANDROID MANIFEST entry for the activity.</p>

<pre><code>activity android:name=".activity.LoginActivity"
android:screenOrientation="portrait" android:theme="@android:style/Theme.NoTitleBar"&gt;
intent-filter&gt;
action android:name="android.intent.action.VIEW"&gt;
category android:name="android.intent.category.BROWSABLE"&gt;
category android:name="android.intent.category.DEFAULT"&gt;
data android:scheme="callback" android:host="whodunit"&gt;

intent-filter&gt;
activity&gt;
</code></pre>

<hr>

<pre><code>public class LoginActivity extends Activity {
private static OAuthService service;
private Token requestToken;
private Verifier verifier;
private static final String PROTECTED_RESOURCE_URL = "http://api.linkedin.com/v1/people/"
+ "~/connections:(sachdev.atul@gmail.com,Sachdev)";
private static Boolean authInProgress = false;

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    // setContentView(R.layout.);

    if (!authInProgress) {
        authInProgress = true;
        service = new ServiceBuilder().provider(LinkedInApi.class)
                .apiKey("6ojx60x4y51j").apiSecret("cLlAKYOKFi46ow3k")
                .callback("callback://whodunit").build();

        System.out.println("=== LinkedIn's OAuth Workflow ===");
        System.out.println();

        // Obtain the Request Token
        System.out.println("Fetching the Request Token...");
        requestToken = service.getRequestToken();
        System.out.println("Got the Request Token!");
        System.out.println();

        System.out.println("Now go and authorize Scribe here:");
        System.out.println(service.getAuthorizationUrl(requestToken));

        Toast.makeText(this,
                "Please authorize " + getString(R.string.app_name),
                Toast.LENGTH_LONG).show();

        startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(service
                .getAuthorizationUrl(requestToken))));
    }
}

@Override
protected void onResume() {
    super.onResume();
    if (this.getIntent() != null &amp;&amp; this.getIntent().getData() != null) {
        Uri uri = this.getIntent().getData();
        if (uri != null &amp;&amp; uri.toString().startsWith("callback://whodunit")) {
            verifier = new Verifier(uri.getQueryParameter("oauth_verifier"));
            // Trade the Request Token and Verfier for the Access Token
            // requestToken = service.getRequestToken();
            System.out
                    .println("Trading the Request Token for an Access Token...");
            System.out.println(" ---&gt; Request Token: "
                    + requestToken.getToken());
            System.out.println(" ---&gt; Request Token Secret: "
                    + requestToken.getSecret());
            System.out.println(" ---&gt; Verifier: " + verifier.getValue());
            Token accessToken = service.getAccessToken(requestToken,
                    verifier);
            System.out.println("Got the Access Token!");
            System.out.println("(if you're curious it looks like this: "
                    + accessToken + " )");
            System.out.println();

            // Now let's go and ask for a protected resource!
            System.out
                    .println("Now we're going to access a protected resource...");
            OAuthRequest request = new OAuthRequest(Verb.GET,
                    PROTECTED_RESOURCE_URL);
            service.signRequest(accessToken, request);
            Response response = request.send();
            System.out.println("Got it! Lets see what we found...");
            System.out.println();
            System.out.println(response.getBody());

            System.out.println();
            System.out
                    .println("Thats it man! Go and build something awesome with Scribe! :)");
        }
    }

}
</code></pre>
