2011. 5. 3. 17:32
count = AccountManager.get(mContext).getAccounts().length;
Android.accounts.Account[] accounts = AccountManager.get(mContext).getAccounts();

idlist = new ArrayList<Ids>();
for(int i = 0; i < count; i++)
{
Log.i(TAG,"for"+i);
Account _ID = accounts[i];
Log.i(TAG,_ID.name);
Ids p = new Ids(_ID.name);
idlist.add(p);
}

class Ids
    {
     private String Id;
        
        public Ids(String _Id)
        {
         this.Id = _Id;
        }

        public String getId()
        {
            return Id;
        }
    } 
Posted by newkie