title: Account information associated with an application installation
body: <p>It's a widely sought issue among those who implement In-app billing in Android, that how multiple accounts are dealt with. If a user has multiple accounts configured, which one will be used for in-app billing (as there is no option to let the user select an account)? After digging a lot, following paragraph <a href="http://developer.android.com/google/play/billing/billing_testing.html">here</a> seems to explain it..</p>
  
  <blockquote>
    <p>Note: To make test purchases, the license test account must be on the user’s Android device. If the device has more than one account, the purchase will be made with the account that downloaded the app. If none of the accounts has downloaded the app, the purchase is made with the first account.Users can confirm the account that is making a purchase by expanding the purchase dialog.</p>
  </blockquote>
  
  <p>I create a developer payload using the account that is involved for in app billing, so that it can be restored properly at a later point in time or on some other device. But since Honeycomb, there is no such thing as Primary Account. A user can delete any account, may be the one with which the app was purchased, in which case, the first account from list of accounts will be used for billing. Now, if i know which account was used and if it occurs to be 'not the account with which app was installed', I can at least inform the user that the following purchases will not be restored later. </p>
  
  <p>So, my question is.. </p>
  
  <p><strong>Is there a way to find which account was used for downloading the application?</strong></p>
  
  <p><strong>Google Play does seem to use this information. Anyway we can interact with Google Play upto this level?</strong></p>
  
  <p>note: PackageManager doesn't seem to deal with this.</p>