private bool BindToMarketBillingService()
{
try
{
if (Consts.DEBUG)
{
Log.Info(TAG, "binding to Market billing service");
}
bool bindResult = BindService(new Intent(Consts.MARKET_BILLING_SERVICE_ACTION), this, Bind.AutoCreate); // ServiceConnection.
if (bindResult)
{
return true;
}
else
{
Log.Error(TAG, "Could not bind to service.");
}
}
catch (SecurityException e)
{
Log.Error(TAG, "Security exception: " + e);
}
return false;
}