I have an android activity where the user inputs his/her Name, Email-address, and City. I pass these with [login to view URL], etc. Currently, users type their email-address into a EditText field. Due to user input errors I would like to have the AccountManager populate a dialog list with the google account email-addresses associated with the device so that the user simply selects an account email-address from the list and no longer has to type it in.
The xml layout for example, should contain:
Email: <Button> to invoke dialog containing selectable google gmail account addresses
Name: <EditText>
City: <EditText>
Submit: <Button> to pass input to next activity.
The Email button text should say "Select Email Address", then when Email button is pressed a dialog should appear with a list of google gmail account addresses associated with the device (phone) after email is selected from dialog the button text should Change To Display the selected gmail-address.
android:minSdkVersion="7"
android:targetSdkVersion="7"