I can get the device (owner's)phone via
TelephonyManager tm =
(TelephonyManager)ctx.getSystemService(ctx.TELEPHONY_SERVICE);
phone = tm.getLine1Number();
But i am not sure how to determine the gmail or other account belonging to this user(device)
How do you do that?