简体   繁体   English

如何在Android中关联G +查看个人资料意图

[英]How to link G+ View profile intent in android

I have integrated G+ to my app. 我已将G +集成到我的应用中。 I am trying out something similar to Google plus or playstore G+ view profile... 我正在尝试类似于Google plus或Playstore G +查看个人资料的内容...

If I click the view profile. 如果我单击视图配置文件。 Profile details in Google plus app is opened. Google Plus应用程序中的个人资料详细信息已打开。

Does anybody know how to call this particular activity - I would like apply the URI in my App too? 是否有人知道如何调用此特定活动-我也想在我的App中应用URI?

The screen shot below from playstore app: 以下是来自playstore应用的屏幕截图:

从Playstore App

Finally figured out a way to do it: 最终想出了一种方法:

 startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://plus.google.com/"+userID+"/posts")));

This will prompt user to open through browser or APP and then it will show the profile details accordingly! 这将提示用户通过浏览器或APP打开,然后将相应显示配置文件详细信息!

Hope this will be useful for others! 希望这对其他人有用!

Thanks! 谢谢!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM