如何獲取GT-N7102 Note2 雙卡雙待 含有兩個IMEI號

    /**獲取卡1的IMEI號 
     */
    public String getDeviceId1() {
        TelephonyManager telephonyManager = (TelephonyManager) getSystemService("phone1");
        return telephonyManager.getDeviceId();
    }


    /**
     * 獲取卡2的IMEI號     
     */
    public String getDeviceId2() {
        TelephonyManager telephonyManager = (TelephonyManager) getSystemService("phone2");
        return telephonyManager.getDeviceId();
    }

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章