×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Mar 2010
    Posts
    16

    MNC , MCC and Locale

    Hi All,

    I am trying to get mnc and mcc in wrt 1.1.However i am not getting the same with the system object entity and key obj.I searched through the forum and found some similar thread where the user said that he was able to get the value.
    In my case i am getting undefined for both.Below is the code snippet.Can somebody plz point out whats wrong.

    I am using aptana with nokia wrt plugin.

    function getNetworkCode(){
    try {
    var so = device.getServiceObject("Service.SysInfo", "ISysInfo");
    var criteria = new Object();
    criteria.Entity = "Network";
    criteria.Key = "CurrentNetwork";
    var result = so.ISysInfo.GetInfo(criteria,networkInfoCallback);
    } catch (ex) {
    alert(ex);
    return "";
    }
    }

    function networkInfoCallback(transId, eventCode, result)
    {
    try {
    CountryCode = result.ReturnValue.CountryCode;
    alert("CountryCode::" + CountryCode);
    }catch(ex){alert(ex);}
    }


    Also is there any function in wrt eqivalent to System.properties("microedition.Locale") in wrt.
    Last edited by amitku; 2010-03-30 at 04:11.

  2. #2
    Registered User
    Join Date
    Nov 2009
    Posts
    3

    Re: MNC , MCC and Locale

    Hello,

    I was wondering if anyone has also been able to solve this.

    Thanks

  3. #3
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: MNC , MCC and Locale

    Hi almendoza25,

    on which devices/firmwares are you getting this issue?

    Pit

  4. #4
    Registered User
    Join Date
    Nov 2009
    Posts
    3

    Re: MNC , MCC and Locale

    I am currently trying it on a Nokia N97

  5. #5
    Registered User
    Join Date
    Nov 2009
    Posts
    3

    Re: MNC , MCC and Locale

    Will this be affected if I am using a WLAN network for testing or would I need to be connected to my carrier's data network? thx!

  6. #6
    Super Contributor
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,552

    Re: MNC , MCC and Locale

    Well... MNC and MCC are SIM card properties, and have nothing to do with whether you're actually connecter or not, or how.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×