read gmail account without manually enter username and password in android
<p>I am using this code:
<a href="http://stackoverflow.com/questions/3303805/are-there-any-good-short-code-examples-that-simply-read-a-new-gmail-message">Are there any good short code examples that simply read a new gmail message?</a></p>

<p>but i need to set username and password. If you have sync with gmail you don't need username and password in gmail android application. How can i do the same?</p>

<p>I am searching but i can not find any working solution. I found only this: <a href="http://stackoverflow.com/questions/7639752/android-get-gmail-username-and-password-from-account-manager">android get gmail username and password from account manager</a></p>
