public void handleMessage(Message msg) {
          CharSequence msgString = (CharSequence) msg.getData().get("msg");

          switch (msg.arg1) {
            case GET_LOSSVALUE_ERROR:
              Toast.makeText(
                      SimulateSelectNumberActivity.this,
                      "遗漏值信息获取失败..." + msgString,
                      Toast.LENGTH_LONG)
                  .show();
              break;
            case GET_LOSSVALUE_SUCCESS:
              simulateSelectNumberView.setLossValues(lossValuesList);
              break;
          }

          switch (msg.arg2) {
            case GET_PRIZEINFO_ERROR:
              Toast.makeText(
                      SimulateSelectNumberActivity.this,
                      "历史获奖信息获取失败..." + msgString,
                      Toast.LENGTH_LONG)
                  .show();
              break;

            case GET_PRIZEINFO_SUCCESS:
              simulateSelectNumberView.setPrizeInfos(prizeInfosList);
              break;
          }
        }
  private void begainSimulateTouZhu() {
    if (!isLogin()) {
      Intent intent = new Intent(this, UserLogin.class);
      startActivityForResult(intent, 0);
    } else {
      selectedRedBallList = simulateSelectNumberView.getRedSelectedNumbers();
      selectedBlueBallList = simulateSelectNumberView.getSelectedBlueNumbers();

      int redSize = selectedRedBallList.size();
      int blueSize = selectedBlueBallList.size();

      if (isBetLegitimacy(redSize, blueSize)) {
        addViewAndTouZhu(redSize, blueSize);
      }
    }
  }
  private void initScreenShow() {
    selectedNumbersTextView = (TextView) findViewById(R.id.simulate_textview_selectednumbers);
    selectedNumbersTextView.setMovementMethod(new ScrollingMovementMethod());

    betButton = (Button) findViewById(R.id.simulate_button_touzhu);
    betButton.setOnClickListener(this);

    simulateSelectNumberView =
        (SimulateSelectNumberView) findViewById(R.id.simulate_selectnumber_view);
    simulateSelectNumberView.setSelectedNumbersTextView(selectedNumbersTextView);
  }