1. 程式人生 > >android 開啟google 帳戶登陸頁面

android 開啟google 帳戶登陸頁面

ComponentName componentName = new ComponentName("com.google.android.gsf.login",
"com.google.android.gsf.login.AccountIntroActivity");
Intent intent = new Intent();
intent.putExtra("addAccount", true);
intent.setComponent(componentName);
if(isIntentAvailable(getApplication(), intent)){
startActivity(intent);
}else{
Toast.makeText(getApplication(), "找不到元件", 1).show();
}