Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <ol> <li><p>You can use the url of the play app like you said or some url to plus account like "<a href="http://plus.google.com/+Example" rel="nofollow">http://plus.google.com/+Example</a>"</p></li> <li><p>He doesn't need to login again, but he will get a popup that inform him that he +1 your url</p></li> <li><p>If you want to do something in your app after the popup is close, use the request code and handle what you want at onActivityResult.</p></li> </ol> <p>For example (from <a href="https://developers.google.com/+/mobile/android/recommend" rel="nofollow">here</a>):</p> <p>Include the PlusOneButton in your layout:</p> <pre><code>&lt;com.google.android.gms.plus.PlusOneButton xmlns:plus="http://schemas.android.com/apk/lib/com.google.android.gms.plus" android:id="@+id/plus_one_button" android:layout_width="wrap_content" android:layout_height="wrap_content" plus:size="standard" plus:annotation="inline" /&gt; </code></pre> <p>Assign the PlusOneButton to a member variable in your Activity.onCreate handler.</p> <pre><code>mPlusOneButton = (PlusOneButton) findViewById(R.id.plus_one_button); </code></pre> <p>Refresh the PlusOneButton's state each time the activity receives focus in your Activity.onResume handler.</p> <pre><code>// The request code must be 0 or greater. You can use it at onActivityResult method private static final int PLUS_ONE_REQUEST_CODE = 0; protected void onResume() { super.onResume(); // Refresh the state of the +1 button each time the activity receives focus. mPlusOneButton.initialize("http://plus.google.com/+Example", PLUS_ONE_REQUEST_CODE); } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload