Although not officially supported, you might try getting the owner's contact details:
Uri.withAppendedPath(Contacts.People.CONTENT_URI, "owner"); And you'll need to ask for the "android.permission.READ_OWNER_DATA" permission to read owner data. Like I said, it's not part of the published Contacts API, and it might disappear in a future release. You probably want to avoid asking for a sensitive permission like this, especially when it's just being used for pre-filling a form. Users will see that you're requesting their personal contact information when installing your app, and they will probably cancel the installation. j On Thu, May 14, 2009 at 11:28 AM, Anna PS <[email protected]> wrote: > > Hi, > > I'd like to retrieve the user's own email address, as configured in > their Gmail application (purpose: just so I can pre-fill a form field > for 'Your email'). > > Is this possible in Android, maybe through one of the > ContentProviders, or would it breach privacy in some way? > > thanks, > Anna > > > -- Jeff Sharkey [email protected] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

