6

I have read Oauth2 Docs but still am yet to get a start to finish working example.

I am a beginner and struggling to get a solution working.

I am just about to the point where I am willing to pay someone to code this for me. But it seems like it should be fairly simple and that there has to be a start to finish working example out there.

So, do you have an example of an Android app that uses OAuth 2.0 to enable the sending of email via gmail? I also need an example of using the users contacts to prepopulate a list for the user to choose from as the recipient of the email.

If I could find a free, complete example I would be indebted forever.

NOTE: I posted a similar question here... looking for Android Gmail SMTP Oauth example

And the answer was good but being a beginner I was never able to get it to work.

thanks for any help.

Community
  • 1
  • 1
Doug
  • 1,991
  • 4
  • 25
  • 35

2 Answers2

8

I didn't have time to implement Google OAuth2,
but I can suggest you to make use of this open source library.

generic oauth2 login for android

covers OAuth2 implementation for Facebook, Foursquare, Gowalla.
I would assume that should be easy to extend for Google, as OAuth2 is pretty much standard and communities differs mostly on loading user profile part.

Milind Anantwar
  • 81,290
  • 25
  • 94
  • 125
Yilmaz Guleryuz
  • 9,313
  • 3
  • 32
  • 43
0

I've done some of this work on the web side of things. Google says the oauth authentication for Android is similar in it's process. I found this link with a sample showing using OAuth with SMTP. It's available in a few languages, including Java.

I also have a C# sample of how to perform the Oauth in C#.

Community
  • 1
  • 1
uadrive
  • 1,249
  • 14
  • 23