Skip to content

Instantly share code, notes, and snippets.

@hanji1122
hanji1122 / Register
Last active August 29, 2015 13:57
通过内置账户自动补全邮箱注册,参见https://plus.google.com/+AndroidDevelopers/posts/DgLSWqZ7eVj
public class Register extends Activity {
private AutoCompleteTextView mEmailAutoTV;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.layout_register);
mEmailAutoTV = (AutoCompleteTextView) this.findViewById(R.id.atv_sign);
final Account[] accounts = AccountManager.get(this).getAccounts();