public override void OnCreate (Android.OS.Bundle savedInstanceState)
{
base.OnCreate (savedInstanceState);
if (savedInstanceState != null) {
mRetryCounter = savedInstanceState.GetInt (KEY_RETRY_COUNTER);
mRetryLoadFullWalletCount = savedInstanceState.GetInt (KEY_RETRY_FULL_WALLET_COUNTER);
mHandleFullWalletWhenReady =
savedInstanceState.GetBoolean (KEY_HANDLE_FULL_WALLET_WHEN_READY);
}
mActivityLaunchIntent = Activity.Intent;
mItemId = mActivityLaunchIntent.GetIntExtra (Constants.EXTRA_ITEM_ID, 0);
mMaskedWallet = mActivityLaunchIntent.GetParcelableExtra (Constants.EXTRA_MASKED_WALLET).JavaCast<MaskedWallet> ();
var accountName = ((BikestoreApplication) Activity.Application).AccountName;
// Set up an API client;
mGoogleApiClient = new GoogleApiClient.Builder (Activity)
.AddConnectionCallbacks (this)
.AddOnConnectionFailedListener (this)
.SetAccountName (accountName)
.AddApi (WalletClass.API, new WalletClass.WalletOptions.Builder ()
.SetEnvironment (Constants.WALLET_ENVIRONMENT)
.SetTheme (WalletConstants.ThemeLight)
.Build ())
.Build ();
mRetryHandler = new RetryHandler (this);
}