Hi
I started Gmail Integration and pushed my initial progress to
https://github.com/gitanshu/privly-android/tree/gmail
I am using the play services SDK to obtain OAuth Token. The user selects the google account from the account picker and play services gets the token for the scope:
https://mail.google.com/
After that I am using
https://code.google.com/p/google-mail-oauth2-tools/ to connect to the IMAP server. This implementation depends on JavaMail API, which in turn depends on SASL which is not available out of the box in Android. So I used the modified jar files from
here for SASL. Now the app can fetch the emails from IMAP server.
The currently pushed code does some basic interaction with IMAP server and writes everything to log. It would be great if someone could review it before I go ahead with it.