Background
I wish to get the account details of the user (just the email) that was used in order to download the app from the play store.
The reason is very simple: In-App-Billing allows to add something that is called "developer payload" (described on this google IO lecture) to purchases, so that it will verify that the purchase is legit, because it has a tag that identifies the purchase with the current user.
I think other people can think of other reasons to get it. maybe for saving games progress , for example.
The problem
Currently, All I know that you can do is to get ALL of the accounts (using the AccountManager as shown here) .
However, I'm not sure if that's the best thing to do.
The question
How do I achieve such a thing?
Also, is getting the list of all of the accounts also a good thing for this purpose (in app billing verification) ? Is it even a good thing to put the account info into the developer-payload of the purchase?