Wednesday, October 3, 2012

Re: [android-developers] Google account access with Android SDK - possible?

On Wed, Oct 3, 2012 at 5:37 PM, Andy <andy.lockett@me.com> wrote:
> New to Android development so just want to know if the following is
> possible. I've worked with Twitter/Facebook access in PHP, but never Google
> and never using Java.
>
> Is it possible to create an Android app which can:
>
> Login to Google account
> Fetch GMail emails from said Google account
> Fetch Calendar info from said Google account
>

It depends :) You can get an authentication token (ClientLogin or OAuth2) using
the AccountManager or the newly released Google Play Services API. You can
use that token to login to Google APIs, directly or using client libraries they
provide. There is an API for Calendar, for GMail you can use an OAuth2 token
to login to IMAP and fetch messages. There used to be an RSS feed with
messages as well, not sure if it is still available.

You can check available client libraries here:

http://code.google.com/p/google-api-java-client/wiki/APIs

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment