Billing.BillingService.BindToMarketBillingService C# (CSharp) 메소드

BindToMarketBillingService() 개인적인 메소드

Binds to the MarketBillingService and returns true if the bind succeeded.
private BindToMarketBillingService ( ) : bool
리턴 bool
        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;
        }