THis is a sample of sending a mail from gmail account without asking user for password or credentials. It selects first account it sees in account manager, it can be edited to ask user to select an account and so on. Help yourself..
oAuthSample is hosted in the following web site
https://github.com/ayushhgoyal/oAuthSample
If you think the Android project oAuthSample listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
The following table is the detailed list of oAuthSample.
Item | Value |
---|---|
Java File Count | 2 |
Target SDK Version | 18 |
Minimum SDK Version | 8 |
Activity Count | 1 |
jar files used | android-support-v4.jar |
Required Permissions | android.permission.ACCOUNT_MANAGER android.permission.GET_ACCOUNTS android.permission.INTERNET android.permission.USE_CREDENTIALS |
oAuthSample has the following Java source files.
com.ayushhgoyal.oauth.GMailOauthSender.java com.ayushhgoyal.oauth.Home.java