Open Google Plus Page Via Intent In Android

前端 未结 6 1251
情书的邮戳
情书的邮戳 2020-12-13 19:53

I have a Google Plus page

https://plus.google.com/u/0/b/101839105638971401281/101839105638971401281/posts

and an Android application.

6条回答
  •  时光取名叫无心
    2020-12-13 20:53

    If the user has the Google+ app installed, you can do this:

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

    Notice the syntax of the URI, and that it doesn't contain /b/id/.

提交回复
热议问题