Skip to content

Instantly share code, notes, and snippets.

Richard Russell richardrussell

  • Luxembourg
Block or report user

Report or block richardrussell

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@richardrussell
richardrussell / MyActivity.java
Last active Dec 14, 2015
Easy way to get user to select and email address (or take default) from Google Accounts available on an Android device. See blog post here: http://www.entrepreneurskitchen.com/2013/02/getting-user-account-on-android.html
View MyActivity.java
import com.google.android.gms.common.AccountPicker;
import android.accounts.AccountManager;
public class MyActivity extends Activity {
// a number to distinguish this startActivityForResult from any others
private static final int GET_GOOGLE_ACCOUNT = 1;
@Override
protected void onCreate(Bundle savedInstanceState) {
You can’t perform that action at this time.