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

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

问题描述

背景

为了打开Facebook应用程序与特定的Facebook-的朋友,您可以使用此意图:

 最终意向意图=新意图(Intent.ACTION_VIEW,Uri.parse(的String.format(FB://资料/%S,friendId)));

一个类似的解决方案是找到了LinkedIn:

 最终意向意图=新意图(Intent.ACTION_VIEW,Uri.parse(的String.format(LinkedIn://资料/%S,friendId)));

我觉得下一个会为谷歌加工作(没有测试它,但它似乎有前途):

 最终意向意图=新意图(Intent.ACTION_VIEW,Uri.parse(的String.format(https://plus.google.com/%s/posts,friendId) ));

问题

我试图找到如何使用这种意图开VKontacte(VK)的社交网络应用程序,但无法找到它。

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


解决方案

从开发者的答案是下一:


  

是的,它这样做同样的方式:


 最终意向意图=新意图(Intent.ACTION_VIEW,Uri.parse(的String.format(VKontakte等://资料/%D,friendId)));


  

如果您需要打开一个社区,使用相同的URL,但减号添加到社区ID。


问题回答这里

Background

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)));

A similar solution is found for LinkedIn:

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

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)));

The question

I've tried to find how to open VKontacte (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)));

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

Question answered here

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

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