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?
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
WebViewaspublic staticinstead 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
singleInstacein Manifest.xml file.UPDATE:
The way I used the WebView in My Activity.