Knowing the name of the network operator in J2ME

How do I get the name of the network operator in an application written with J2ME?

I recently tried to develop an application on a Nokia s40 that should have exclusive access to a specific network operator. Is there any API or library of this type?

+3


source to share


1 answer


There is nothing like it. But you can get MNC and MCC information from IMSI. With this information you can get the name of the operator

Example

String imsi = System.getProperty("IMSI"); // Example 234103530089555
String mcc = imsi.substring(0,3); // 234 (UK)
String mnc = imsi.substring(3,5); // 10 (O2)

      

you can send information to your database to get country, network operator, network name and status

More about IMSI



see http://www.numberingplans.com/?page=analysis&sub=imsinr .

======= Update =====

Please note that this depends on the type of phone. Below are the various formats that I know ... there may still be.

        System.getProperty("phone.imei");
        System.getProperty("com.nokia.IMEI");
        System.getProperty("com.nokia.mid.imei");
        System.getProperty("com.sonyericsson.imei");
        System.getProperty("IMEI");
        System.getProperty("com.motorola.IMEI");
        System.getProperty("com.samsung.imei");
        System.getProperty("com.siemens.imei");
        System.getProperty("imei");

      

+3


source







All Articles