private void prepareCallActions(FcContext fcContext, SapaAppInfo appInfo)
        {
            FcActionFactory factory = fcContext.ActionFactory;
            SparseArray <SapaActionInfo> actions = appInfo.Actions;

            for (int i = 0; i < actions.size(); ++i)
            {
                SapaActionInfo actionInfo = actions.get(i);
                FcActionItem   action     = factory.newAppItem(appInfo, actionInfo);
                string         actionName = actionInfo.Id;

                // Volume buttons needs to be separated from the rest of actions
                if (FcConstants.ACTION_VOLUME_UP.Equals(actionName))
                {
                    mVolumeActions[VOLUME_UP_INDEX] = action;
                }
                else if (FcConstants.ACTION_VOLUME_DOWN.Equals(actionName))
                {
                    mVolumeActions[VOLUME_DOWN_INDEX] = action;
                }
                else
                {
                    mCallActions.Add(action);
                }
            }
        }
        public FcControlBar(Context context, AttributeSet attrs, int defStyleAttr) : base(context, attrs, defStyleAttr)
        {
            mFcContext = new FcContext(context);
            mFcContext.FxContextStateChangeListener = this;
            FcActionFactory factory = new FcActionFactory(mFcContext);

            mFcContext.ActionFactory = factory;

            initView();
        }
        private void prepareCustomReturnActions(FcContext fcContext, SapaAppInfo info, int[] drawableIds, int[] activityIds)
        {
            FcActionFactory factory = fcContext.ActionFactory;

            for (int i = 0; i < drawableIds.Length; ++i)
            {
                int drawableId = drawableIds[i];
                int activityId = activityIds[i];

                mReturnActions.Add(factory.newCustomReturnItem(info, drawableId, activityId));
            }
        }
		public FcControlBar(Context context, AttributeSet attrs, int defStyleAttr) : base(context, attrs, defStyleAttr)
		{

			mFcContext = new FcContext(context);
			mFcContext.FxContextStateChangeListener = this;
			FcActionFactory factory = new FcActionFactory(mFcContext);
			mFcContext.ActionFactory = factory;

			initView();
		}
        private void prepareDefaultReturnActions(FcContext fcContext, SapaAppInfo info)
        {
            FcActionFactory factory = fcContext.ActionFactory;

            mReturnActions.Add(factory.newDefaultReturnItem(info));
        }