Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8157859
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T17:25:51+00:00 2026-06-06T17:25:51+00:00

I am Using LinkedIn-j API for LinkedIn Integration. I am able to post Status

  • 0

I am Using LinkedIn-j API for LinkedIn Integration.
I am able to post Status Update.
I want to Show User Profile in WebView in Android for That I am getting User Public URL using below code.

person.getSiteStandardProfileRequest().getUrl();

which returning something like this http://www.linkedin.com/profileviewProfile=&key=100652876&authToken=AWW7&authType=name&trk=api*a169149*s177398*

If I am going to open this url in WebView then its Redirecting to LinkedIn Login page and after filling Credential I can see user Profile.

I want to open User Profile without entering Credential,Again

I also tried by appending the

URL&accesstoken="tokenIdReturned by Application"; 

But still I am not able to open the User Profile directly.
What I am missing?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T17:25:52+00:00Added an answer on June 6, 2026 at 5:25 pm

    I had the same Requirement and i have done it with doing two things.

    Firstly I have used My own WebView to load different URL to authenticate and to show profiles.I have made my WebView as public static instead using the default browser I have redirect the calls to my own WebView in my Activity.

    Second I have set webview.getSettings().setAppCacheEnabled(true); so now it doesn’t ask for login again while viewing the profile.

    I have declared my Activity as singleInstace in Manifest.xml file.

    UPDATE:

    The way I used the WebView in My Activity.

    public static WebView WV = null;
    String uri;
    
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        tv = (TextView) findViewById(R.id.tv);
        if (WV == null) {
            WV = (WebView) findViewById(R.id.webView1);
            WV.getSettings().setJavaScriptEnabled(true);
            WV.getSettings().setAppCacheEnabled(true); // the important change
            WV.getSettings().setSupportZoom(true);
            WV.getSettings().setBuiltInZoomControls(true);
        }
    
        final SharedPreferences pref = getSharedPreferences(OAUTH_PREF,
                MODE_PRIVATE);
        final String token = pref.getString(PREF_TOKEN, null);
        final String tokenSecret = pref.getString(PREF_TOKENSECRET, null);
        if (token == null || tokenSecret == null) {
            startAutheniticate();
        } else {
            showCurrentUser(new LinkedInAccessToken(token, tokenSecret));
        }
    
    }
    
    
    void startAutheniticate() {
        final LinkedInRequestToken liToken = oAuthService
                .getOAuthRequestToken(OAUTH_CALLBACK_URL);
        uri = liToken.getAuthorizationUrl();
        getSharedPreferences(OAUTH_PREF, MODE_PRIVATE).edit()
                .putString(PREF_REQTOKENSECRET, liToken.getTokenSecret())
                .commit();
        WV.loadUrl(uri);
    }
    
    void showCurrentUser(final LinkedInAccessToken accessToken) {
        // code to get Profile object using Linkedin-J API 
        //which is already available on the API site as Example
    
        WV.loadUrl(profile.getSiteStandardProfileRequest().getUrl());
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using Nunit, I want to be able to write a test fixture that will
i am trying to make the post using my linkedin api application, The issue
I am using linkedin api to get info about the logged in user. I
I am using Linkedin Api in my Iphone App.I want to read the Connection
I am using LinkedIn-j api for making a Linkedin application.The problem that I am
I am using linkedin api for getting network updates. And I am being able
I'm using an external Node.js module, everyauth , to handle my LinkedIn API authentication.
Is there a way to update the linked in users profile using the linked
I'm using the LinkedIn Profile widget on my site and am using the popup
I'm trying to access out-of-network profiles using the LinkedIn API, following the instructions from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.