Open the LinkedIn app (contact profile page) from my Android app using intent?

I am trying to open an Android LinkedIn application (profile screen) from my own application.

I found that this is possible using:

intent.setData(Uri.parse("linkedin://profile/"+profileId)); 

where is profileId , it looks like this: 190485666

But I don’t know profileId in the required format, because when I send a request to get the contact list:

http://api.linkedin.com/v1/people/~/connections:(id,first-name,last-name,public-profile-url,picture-url)

I get profileId in the following format: UVIQw3UQqZ

How can I open a user profile screen from my LinkedIn contact list using Android intent?
OR How to get profileId in numerical format?

+6
source share

Source: https://habr.com/ru/post/978146/


All Articles