Click here to Skip to main content
15,937,127 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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.
Posted
Updated 11-Jul-10 6:01am
v2

Why is it unsuccessful? What errors does it produce?
 
Share this answer
 
i dose not work to<b></b> n82 !!!!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900