internal virtual void StartBuyPageActivity(PendingIntent pendingIntent, Intent intent)
{
//if (mStartIntentSender != null)
{
// This is on Android 2.0 and beyond. The in-app buy page activity
// must be on the activity stack of the application.
try
{
// This implements the method call: mActivity.StartIntentSender(pendingIntent.IntentSender, intent, 0, 0, 0);
mActivity.StartIntentSender(pendingIntent.IntentSender, intent, 0, 0, 0);
// mStartIntentSenderArgs[0] = pendingIntent.IntentSender;
// mStartIntentSenderArgs[1] = intent;
// mStartIntentSenderArgs[2] = Convert.ToInt32(0);
// mStartIntentSenderArgs[3] = Convert.ToInt32(0);
// mStartIntentSenderArgs[4] = Convert.ToInt32(0);
// mStartIntentSender.Invoke(mActivity, mStartIntentSenderArgs);
}
catch (Exception e)
{
Log.Error(TAG, "error starting activity", e);
}
}
// else
// {
// This is on Android version 1.6. The in-app buy page activity must be on its
// own separate activity stack instead of on the activity stack of
// the application.
// try
// {
// pendingIntent.Send(mActivity, 0, intent); // code
// }
// catch (PendingIntent.CanceledException e)
// {
// Log.Error(TAG, "error starting activity", e);
//}
// }
}