本文介绍了获取手机ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试过此代码,但未成功:

Tried this code, but unsuccessfully:

String out = "";
        out = System.getProperty("Cell-ID");
        if(out== null || out.equals("null") || out.equals(""))
                out = System.getProperty("CellID");
        if(out== null ||out.equals("null")|| out.equals(""))
                System.getProperty("phone.cid");
        ////#if polish.Vendor == Nokia
        if(out== null ||out.equals("null")|| out.equals(""))
                out = System.getProperty("com.nokia.mid.cellid");
        ////#elif polish.Vendor == Sony-Ericsson
        if(out== null ||out.equals("null")|| out.equals(""))
                out = System.getProperty("com.sonyericsson.net.cellid");
        ////#elif polish.Vendor == Motorola
        if(out== null ||out.equals("null")|| out.equals(""))
                out = System.getProperty("phone.cid");//System.getProperty("CellID");
        ////#elif polish.Vendor == Samsung
        if(out== null ||out.equals("null")|| out.equals(""))
                out = System.getProperty("com.samsung.cellid");
        ////#elif polish.Vendor == Siemens
        if(out== null ||out.equals("null")|| out.equals(""))
                out = System.getProperty("com.siemens.cellid");
        ////#elif polish.Vendor == BlackBerry
        if(out== null ||out.equals("null")|| out.equals(""))
                //#= out = GPRSInfo.getCellInfo().getCellId();
        ////#else
        if(out== null ||out.equals("null")|| out.equals(""))
                out = System.getProperty("cid");




在西门子上测试.
仍然空着.
请帮忙.




Tested on Siemens.
Out still empty.
Please, help.

推荐答案



这篇关于获取手机ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-11 00:29