如何与特定的朋友打开VKontakte应用程序? [英] How to open VKontakte app with a specific friend?

查看:148
本文介绍了如何与特定的朋友打开VKontakte应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

要与特定的Facebook朋友打开Facebook应用,您可以使用以下意图:

In order to open Facebook app with a specific Facebook friend, you can use this intent:

final Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(String.format("fb://profile/%s", friendId)));

为LinkedIn找到了类似的解决方案:

A similar solution is found for LinkedIn:

final Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(String.format("linkedin://profile/%s",  friendId)));

我认为下一个可以在Google Plus上使用(虽然没有测试,但是看起来很有希望):

I think the next one will work for Google Plus (didn't test it, but it seems promising) :

final Intent intent =new Intent(Intent.ACTION_VIEW, Uri.parse(String.format("https://plus.google.com/%s/posts", friendId)));

问题

我试图找到使用此类意图打开VKontakte(VK)社交网络应用程序的方法,但找不到它.

The question

I've tried to find how to open VKontakte (VK) social network app using such intents, but couldn't find it.

有这样的意图吗?如果是这样,那是什么?

Is there such an intent? If so, what is it?

推荐答案

开发者的答案是下一个:

The answer from developer is next:

是的,它是通过相同的方式完成的:

Yes, it's done the same way:

final Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(String.format("vkontakte://profile/%d", friendId)));

如果需要打开社区,请使用相同的URL,但在社区ID中添加减号.

If you need to open a community, use the same URL but add the minus sign to the community ID.

在此处回答的问题

这篇关于如何与特定的朋友打开VKontakte应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆