Java tutorial
//package com.java2s; import android.accounts.Account; import android.accounts.AccountManager; public class Main { public static long getUserId(AccountManager paramAccountManager, Account paramAccount) { String str = paramAccountManager.getUserData(paramAccount, "account_user_info"); if (str != null) return Long.parseLong(str); return 0L; } }