YGPS/src/com/mediatek/ygps/YgpsActivity.java
public void onResponse(String res) {
        Log.v("@M_" + TAG, "Enter getResponse: " + res);
        if (null == res || res.isEmpty()) {
            return;
        }
        Message m = mHandler.obtainMessage(HANDLE_UPDATE_RESULT);
        if (res.startsWith("$PMTK705")) {
            m.arg1 = HANDLE_COMMAND_GETVERSION;
        } else if (res.contains("PMTK001")) {
            m.arg1 = HANDLE_COMMAND_JAMMINGSCAN;
        } else {
            m.arg1 = HANDLE_COMMAND_OTHERS;
        }
        m.obj = res;
        mHandler.sendMessage(m);
    }
/**
     * Invoked when get GPS server respond.
     *
     * @param res
     *            Response message
     */
Invoked when get GPS server respond.
@param res
Response message
Invoked when get GPS server respond . @param res Response message
public void onResponse(String res) {
        Log.v("@M_" + TAG, "Enter getResponse: " + res);
        if (null == res || res.isEmpty()) {
            return;
        }
        Message m = mHandler.obtainMessage(HANDLE_UPDATE_RESULT);
        if (res.startsWith("$PMTK705")) {
            m.arg1 = HANDLE_COMMAND_GETVERSION;
        } else if (res.contains("PMTK001")) {
            m.arg1 = HANDLE_COMMAND_JAMMINGSCAN;
        } else {
            m.arg1 = HANDLE_COMMAND_OTHERS;
        }
        m.obj = res;
        mHandler.sendMessage(m);
    }
public void onResponse ( String res ) { Log . v ( "@M_" + TAG , "Enter getResponse: " + res ) ; if ( null == res || res . isEmpty ( ) ) { return ; } Message m = mHandler . obtainMessage ( HANDLE_UPDATE_RESULT ) ; if ( res . startsWith ( "$PMTK705" ) ) { m . arg1 = HANDLE_COMMAND_GETVERSION ; } else if ( res . contains ( "PMTK001" ) ) { m . arg1 = HANDLE_COMMAND_JAMMINGSCAN ; } else { m . arg1 = HANDLE_COMMAND_OTHERS ; } m . obj = res ; mHandler . sendMessage ( m ) ; }
Invoked when get GPS server respond.
Invoked when get GPS server respond .