android - 如何与特定 friend 一起打开 VKontakte 应用程序?

标签 android android-intent vk

背景

为了与特定的 Facebook 好友一起打开 Facebook 应用程序,您可以使用此 Intent :

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

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

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

我认为下一个将适用于 Google Plus(没有测试,但看起来很有希望):

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

问题

我试图找到如何使用此类 Intent 打开 VKontakte (VK) 社交网络应用程序,但找不到。

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

最佳答案

接下来是开发者的回答:

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

关于android - 如何与特定 friend 一起打开 VKontakte 应用程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27043676/

相关文章:

android - 与 EditText 的两种方式数据绑定(bind)

android - 针对 Android 12 的 list 合并失败

android - 在 Android 上使用 Smack 4.1 时出现初始化异常 "NoClassDefFoundError: javax.naming.directory.InitialDirContext"

android - 在停止的应用程序中接收广播

Android MultiSelectListPreference,java.lang.String 无法转换为 java.util.Set

android - 如何在 android 中重置/更新 DHCP?

android - 无法在 Android 中设置视频录制的最短持续时间

java - 获取用户头像 VK SDK

Android API 请求队列