YGPS/src/com/mediatek/ygps/YgpsActivity.java
private void onGpsJammingScanClicked() {
        if (0 == mEtGpsJammingTimes.getText().length()) {
            Toast.makeText(YgpsActivity.this,
                    "Please input Jamming scan times", Toast.LENGTH_LONG)
                    .show();
            return;
        } else {
            Integer times = Integer.valueOf(mEtGpsJammingTimes.getText()
                    .toString());
            if (times <= INPUT_VALUE_MIN || times > INPUT_VALUE_MAX) {
                Toast.makeText(YgpsActivity.this, "Jamming scan times error",
                        Toast.LENGTH_LONG).show();
                return;
            }
            sendCommand("PMTK837,1," + times);
        }
    }
/**
     * Invoked when GPS Jamming Scan test button clicked.
     */
Invoked when GPS Jamming Scan test button clicked.
Invoked when GPS Jamming Scan test button clicked .
private void onGpsJammingScanClicked() {
        if (0 == mEtGpsJammingTimes.getText().length()) {
            Toast.makeText(YgpsActivity.this,
                    "Please input Jamming scan times", Toast.LENGTH_LONG)
                    .show();
            return;
        } else {
            Integer times = Integer.valueOf(mEtGpsJammingTimes.getText()
                    .toString());
            if (times <= INPUT_VALUE_MIN || times > INPUT_VALUE_MAX) {
                Toast.makeText(YgpsActivity.this, "Jamming scan times error",
                        Toast.LENGTH_LONG).show();
                return;
            }
            sendCommand("PMTK837,1," + times);
        }
    }
private void onGpsJammingScanClicked ( ) { if ( 0 == mEtGpsJammingTimes . getText ( ) . length ( ) ) { Toast . makeText ( YgpsActivity . this , "Please input Jamming scan times" , Toast . LENGTH_LONG ) . show ( ) ; return ; } else { Integer times = Integer . valueOf ( mEtGpsJammingTimes . getText ( ) . toString ( ) ) ; if ( times <= INPUT_VALUE_MIN || times > INPUT_VALUE_MAX ) { Toast . makeText ( YgpsActivity . this , "Jamming scan times error" , Toast . LENGTH_LONG ) . show ( ) ; return ; } sendCommand ( "PMTK837,1," + times ) ; } }
Invoked when GPS Jamming Scan test button clicked.
Invoked when GPS Jamming Scan test button clicked .