title: Xamarin Android AccountPicker how to get result (Closed)
body: <p>How do i get the result of the choosen account from my AccountPicker
  i tried to use the code below with no succes.</p>
  
  <p>Im new to xamarin.</p>
  
  <p>Does someone has any ideas.
  ofc i have the required permission: <code>GET_ACCOUNTS</code></p>
  
  <pre><code>Activity ac = ((Activity)Forms.Context);
  
  Intent intent = AccountPicker.NewChooseAccountIntent(null, AccountManager.Get(ac).GetAccounts(), new String[] { "com.google" }, false, null, null, null, null);
  
  ac.StartActivityForResult(intent, 0);
  
  // I tried 
  var accountName = intent.GetStringExtra(AccountManager.KeyAccounts);
  </code></pre>
  
  <p>Note this is inside an Dependency Service Class.</p>