×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Dec 2008
    Posts
    47

    Exclamation Are you providing cellID to developers?

    Hi all,
    I am struggling from 3days to get cellId.please,tell me are you providing cellId to developers? If providing please give me how to retrieve in my application.I tried some many ways.

    plz see my code:

    var so;
    function setup(){
    try {
    so = device.getServiceObject("Service.SysInfo", "ISysInfo");
    console.info("setup: so: %s", so);
    }catch (e) {
    alert('<setup> ' +e);
    }
    }

    function getCELLID(){
    try {
    var so = device.getServiceObject("Service.SysInfo", "ISysInfo");
    var criteria = new Object();
    criteria.Entity = 'Network';
    criteria.Key = 'CurrentNetwork'// and cellID;
    alert("GetCellID");

    var result = so.ISysInfo.GetInfo(criteria, function(transId, eventCode, result){

    if (eventCode == 4) {
    alert("Error " + result.ErrorCode + ": " + result.ErrorMessage);
    return;
    }
    alert(result.ReturnValue);
    var Div = document.createElement("div");
    Div.innerHTML +=showObject(result.ReturnValue);
    Div.innerHTML +="<span>"+result.ErrorCode+"</span></br>";
    Div.innerHTML +="<span>"+result.ErrorMessage+"</span></br>";
    document.getElementById('cellid').appendChild (Div);
    });
    }
    catch (e) {
    alert ("getSysInfo: " + e);
    }
    }
    function showObject( obj ){
    var txt = "";
    try {
    if ( typeof obj != 'object' )
    return "" + obj + '<BR/>';
    else {
    for(var key in obj) {
    txt += key + ":";
    txt += showObject( obj[key] );
    txt += '<BR/>';
    }
    txt += '<BR/>';
    }
    }
    catch (e)
    {
    alert("showObject: " + e);
    }
    return txt;
    }

    I tried both sync and a sync methods.Please,tell me clearly how to get cell id in to my application.

    Please..reply me..

    help.. me..

    Thanks
    Mehraj
    Last edited by mehraj123; 2009-04-09 at 09:45. Reason: wrong

  2. #2
    Registered User
    Join Date
    Dec 2008
    Posts
    47

    Exclamation Re: Are you providing cellID to developers?

    Hi all,
    I got the answer.
    thank you.sorry for this.

  3. #3
    Registered User
    Join Date
    Sep 2008
    Location
    Manaus, Brazil
    Posts
    109

    Re: Are you providing cellID to developers?

    Hi mehraj123,

    Is work the code?

  4. #4
    Registered User
    Join Date
    Dec 2008
    Posts
    47

    Re: Are you providing cellID to developers?

    Hi jzferreira,
    It's works fine.Thank You.first i got confused with your code.after wards i got the picture.Any way thanks a lot.

Similar Threads

  1. cellid data is not comig?
    By mehraj123 in forum Symbian Web Runtime
    Replies: 1
    Last Post: 2009-04-08, 20:22
  2. [moved] Illegal value for cellID
    By juannoguera in forum Symbian Networking & Messaging (Closed)
    Replies: 9
    Last Post: 2009-01-20, 15:45
  3. Eclipse and Nokia Developer's Suite
    By sergiutruta in forum Mobile Java General
    Replies: 2
    Last Post: 2005-02-27, 19:51
  4. The future of mobile developers (Java and Symbian)
    By symbianx in forum Symbian C++
    Replies: 0
    Last Post: 2004-11-27, 17:03
  5. Nokia Developer's Suite 1.1 can't work?
    By henry_wong2k in forum Mobile Java Tools & SDKs
    Replies: 2
    Last Post: 2003-02-19, 08:53

Posting Permissions

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