不能用其他Android应用程序与开放(公司简介)网址LinkedIn应用程序? [英] Could not open linkedIn app with (company profile) url by another android app?
问题描述
我想从我的应用程序打开一个网址,那就是 HTTP://www.linkedin .COM /公司/公司名称,如果安装LinkedIn应用程序,需要启动应用程序。否则,启动打开URL的浏览器。我的code是如下图所示
`
i want to open a url from my app, that is "http://www.linkedin.com/company/company-name", If LinkedIn app is installed, need to launch the app. Otherwise, open the url by launch a browser. My code is like below `
public void launchLinkedIn()
{
final String urlFb = "linkedin://" + pageId;
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse(urlFb));
final PackageManager packageManager = activity.getPackageManager();
List<ResolveInfo> list = packageManager.queryIntentActivities(intent,
PackageManager.MATCH_DEFAULT_ONLY);
if (list.size() == 0) {
final String urlBrowser = "http://www.linkedin.com/company/" + pageId;
intent.setData(Uri.parse(urlBrowser));
}
activity.startActivity(intent);
}
`
现在这个code是直接调用,即使我有LinkedIn应用程序浏览。请帮助任何人对我来说。先谢谢了。
Now this code is invoke directly to browse even i have linkedin app.. Please help anyone for me. Thanks in advance.
推荐答案
我知道,这是几个月前,但我遇到了同样的问题,此刻
I know that this is a few months ago, but I'm running into the same issue at the moment
使用APKTool解密应用程序后,我发现他们的深层链接的信息:
尽管列表中有各种物品,那些是有用的和放大器;功能是
After using APKTool to decrypt the app, I've found their deep linking information: Although the list has various items, the ones that are useful & functional are
you
profile/memberId
group/groupId
有似乎获取的公司,这似乎有点怪没深度链接的方法,但它是如何,他们已经建立了它
There appears to be no deep linking method for getting to companies, which seems a little strange, but it's how they've built it
我曾试图跳楼与setClassName()的活动,但总是死机,因为我不认为这是可以从外面
I have tried jumping to the activity with setClassName(), but that always crashes as I don't think it's available from the outside
看来好像只有这样才能正确地得到一个公司的网页是通过使用LinkedIn-J
It appears as though the only way to properly get to a company pages is by using linkedin-j
我希望这可以帮助别人
这篇关于不能用其他Android应用程序与开放(公司简介)网址LinkedIn应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!