Beispiel #1
0
        private void installApk(Object obj)
        {
            CmdOption option = new CmdOption(1);

            bool ret = false;

            option.state[0] = Enums.WorkState.RUNNING;
            option.path[0]  = (String)obj;
            option.calcSize();

            mProgress.showProgress(option);
            ret             = mCmd.excuteCmdInstallThirdApp(option.path[0]);
            option.state[0] = ret == true ? (int)Enums.WorkState.SUCC : (int)Enums.WorkState.ERROR;
            mIntfResult.setResult(Enums.CmdType.APK, ret);
            Thread.Sleep(1000);
            mProgress.dismissProgress(0);
        }