public virtual bool RunIfConnected()
{
if (Consts.DEBUG)
{
Log.Debug(TAG, this.GetType().Name);
}
if (mService != null)
{
try
{
mRequestId = Run();
if (Consts.DEBUG)
{
Log.Debug(TAG, "request id: " + mRequestId);
}
if (mRequestId >= 0)
{
mSentRequests[mRequestId] = this;
}
return true;
}
catch (RemoteException e)
{
OnRemoteException(e);
}
}
return false;
}