AccountManager mgr = AccountManager.get(this);
Account[] accts = mgr.getAccounts();
final int count = accts.length;
Account acct = null;
String tmpStr = "";
for(int i=0;i<count;i++) {
acct = accts[i];
// Toast.makeText(this, "eclair account - name="+acct.name+", type="+acct.type, Toast.LENGTH_LONG).show();
Log.d("ACCT", "eclair account - name="+acct.name+", type="+acct.type);
// txt.setText("acct.name : " + acct.name + ", acct.type : " + acct.type);
//if(acct.type=="com.google"){
tmpStr += "acct.name : " + acct.name + ", acct.type : " + acct.type + "\n";
//
여기서 acct.type에서 com.google만 되도록하니 아무것도 안되네여;
일단 주석 처리해놨어요...
아래쪽 if문이여
고수님들 좀 도와주세요




equals 함수를 쓰세요. ==는 레퍼런스가 같은지 검사합니다.