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

2012-10-03 Thread Andy
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

I've tried Googling this but am struggling to find a definitive answer. 
This is for a college project.

Any help/advice much appreciated.

Andy

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

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

2012-10-03 Thread Nikolay Elenkov
On Wed, Oct 3, 2012 at 5:37 PM, Andy andy.lock...@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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en