背景
为了与特定的 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.
关于android - 如何与特定 friend 一起打开 VKontakte 应用程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27043676/