Getting cell id in java me using System.getProperty

Hi all
I wish to get the cell id of the cell (I know it had been asked for more than a million times) that my nokia phone is currently connected to with the api listed here
[http://wiki.forum.nokia.com/index.php/CS000947_-_Getting_Cell_ID_in_Java_ME|http://wiki.forum.nokia.com/index.php/CS000947_-_Getting_Cell_ID_in_Java_ME]
As stated,
System.getProperty("com.nokia.mid.cellid") works on S60 3rd Ed
System.getProperty("Cell-ID") works on S40 3rd Ed
However, I am unable to do so on N82, anyone have any idea why is that so?
Or is there any kind soul with N95 can tell me whether it works on N95?

yes.. I saw that thread before I posted this.. but the piece of code mentioned in the thread does not make use of the api listed in the wiki right?
In fact, I'm not very clear as to what that mentioned code is doing.
Moreover, my point would be, how come the api is listed in the wiki in that case.. that is, if it does not work.. :/

Similar Messages

  • [svn:bz-trunk] 20505: Bug: Watson #2818669 - AbstractAmfInput uses System. getProperty in Constructor leading to AccessControlException when using in Applet

    Revision: 20505
    Revision: 20505
    Author:   [email protected]
    Date:     2011-03-01 07:31:55 -0800 (Tue, 01 Mar 2011)
    Log Message:
    Bug: Watson #2818669 - AbstractAmfInput uses System.getProperty in Constructor leading to AccessControlException when using in Applet
    QA: Yes
    Doc: No
    Checkintests: Didn't run - the change was to wrap the System.getProperty in a try/catch that would have caused the SecurityException, so no real functionality change that could affect the check-in tests.
    Modified Paths:
        blazeds/trunk/modules/core/src/flex/messaging/io/amf/AbstractAmfInput.java

  • Java 7 u45 System.getProperty returns null

    After upgrade to u45, our web launch application stopped working. it failed at System.getProperty("myproperty").
    "myproperty" is defined as a
    <resources>       
    <j2se version="1.6+" initial-heap-size="64m" max-heap-size="256m"/>
           <jar href="nms_wsclient.jar" download="eager" main="true"/>
           <jar href="commons-httpclient.jar" download="eager"/>      
          <jar href="commons-codec.jar" download="eager"/>       
          <jar href="commons-logging.jar" download="eager"/>       
          <jar href="log4j.jar" download="eager"/>       
          <property name="myproperty"   value="http://138.120.128.94:8085/"/>
        </resources>
    with older version java ,System.getProperty("myproperty") works fine to return the value, but with u45 it returned null.
    Does anyone have the same problem? any idea how to fix it or work around it?
    Thanks,
    Zhongyao

    So did you succeed with the jnlp template ?
    After frustrating hours of that information useless JNLPSigningException trial & error, It seems that as :
    1. You can't make the j2se version variable
    2. You can't have your own variable property/values
    I've opened a bug report...
    The documentation is atrocious, with a vague "we reserve the right to blacklist variable elements, but we will never say which ones".
    The JNLP example in the various example is a joke - Its a hello world jnlp, not a real world one.
    The JNLPSigningException must have been written my the same guys at Microsoft that did the "An Unknown Error As Occurred".
    I've had to clear the cache at every test, seems that the JNLP Template check didn't get the new updated JNLP from the web server.
    /rant over
    I think I'll try to bypass that JNLP property mess and get javaws to download my own "jnlp name".xml.config...

  • Using System.getProperty in the app, but still not signing the jar file

    Is there a way to use the System.getProperty call in the app but not sign the jar? I get the security exception when launched using WebStart?
    Any help appreciated.

    Yes. Don't use Web Start, and you'll have no problems.
    Seriously, the security exception is there by design. If you must call System.getProperty, you need to sign your jars -- though personally, I think there are situations where signing your jars to make Web Start work is a needless complication.
    However, if you still need a tool to deploy updates and such, I recommend Deploy Director from Sitraka.

  • Where does user.name come from when using System.getProperty(user.name)

    Hello,
    Based on the user's requirements, I implemented authentication based on the results of the System.getProperty(user.name) feature. The audit group has some concerns on where the user.name value is coming from.
    Does anyone have any idea where this property is coming from, and if it is coming from a file, whether it is stored as text.

    Environment variable that is read internally by the JRE. If you go to dos (in windows) and type "set" and hit return, you'll see Username=whatever your login name is. If course, someone with the right credentials can change this.
    Unix has a similar feature.

  • Using System.getProperty("myVar")

    How do I pass in the System property within Eclipse to get the above statement to pick it up? I've always used java myApp -dmyVar=someValue from the cmd line.
    I know you add it as an arg to the JVM but what menu/dropdown/option do I use within the IDE
    Thnx

    you have to click RUN and in the scren that appers you have a tab
    Arguments here you can give both program arguments and vm arguments
    you have to choose Run and not Run As

  • Using System.getProperty()

    What is the difference between using
    java.version
    java.specification.version
    java.vm.version
    java.vm.specification.version
    The API's explanation of these keys and the ones similar like
    java.vm.name.....don't really seem to provide a difference.
    Can someone help?

    This is documented under the getProperties() method in the JavaDoc for the System class:
    http://java.sun.com/j2se/1.4.2/docs/api/java/lang/System.html#getProperties()
    java.vm.specification.version     Java Virtual Machine specification version
    java.vm.specification.vendor     Java Virtual Machine specification vendor
    java.vm.specification.name     Java Virtual Machine specification name
    java.vm.version     Java Virtual Machine implementation version
    java.vm.vendor     Java Virtual Machine implementation vendor
    java.vm.name     Java Virtual Machine implementation name

  • How I can get URL to not Java file which in Classpath?

    Somewhere in ClassPath I have xyz.xml file.
    How I can get the URL to this file if I know only name?
    Thanks,
    Jenya

    ???Search the entire file system with a FileSystemView???
    ???Use System.getProperty("java.library.path") to limit the directories you search???
    ???Hope like hell the user doesn't name some random file xyz.xml???

  • Building java applications using UML

    Hi all
    I want to get experience for building java applications using UML.
    Pls advice what is the best text book should I purchase??
    thanks
    madura

    I do not use UML to auto-generate codes either. Take a look at Martin Fowler's bliki on some quite good views about UML: http://www.martinfowler.com/bliki/uml.html
    What I do use UML for:
    1. To visualise the system being built during the analysis and design phases - both to help improve understanding and to keep the stakeholders happy.
    2. To reverse-engineer existing code that's weak on both design documents and code design. Makes understanding the code easier.
    3. To highlight areas in existing code that might benefit from the application of design patterns.
    As for how UML converts to Java code, the main diagrams are the Class Diagram and the Interaction Diagrams - Collaboration and Sequence. These diagrams translate to code very well.
    Hth.

  • Using system properties in config file.

    HI,
    Does anybody know how we can declare System properties in OC4J.
    I am talking about using System.getProperty() in java classes.
    I need to use this to capture my context realtive path in log4j properties file.

    JavaSiva,
    If you are using OC4J stand-alone, there are two ways (I know of) to define "System" properties:
    * Use "-D" option of "java" command when launching OC4J
    * Use "-p" switch recognized by "oc4j.jar" when launching OC4J
    Note that I haven't tried OC4J stand-alone developer's preview 10.1.3.1.0 so I don't know if the above is still correct for that version, but it is for every version prior to that one.
    Good Luck,
    Avi.

  • Getting hostname within a java app

    Folks,
    How can I get the host name or ip address within a java app. System.getProperty() does not help here.
    Saif

    I guess you need to add getHostName() at the end as well??

  • System.getproperty("Var Name") gives null in RedHatLinux5

    Please provide some solution for this strange problem. I am able to get the system property value from terminal but when I use System.getproperty() I am getting null.
    Ex:
    echo $client
    ans: /home/naveen/client/classes
    from java program
    System.getproperty("client"); it gives null

    use getenv(), instead of getProperty()

  • System.getProperty doesnot work

    Hi,
    I have a piece of code where I try to get a env variable VTNAME in my java application. Code snippet below
         //this function creates a session.
         public void setSession(configParams params) throws Exception {
              boolean done = false;
              int retryCount = 0;
              mVTName = params.getFactoryName();
              System.out.println(System.getProperty("VTNAME"));
    It returns me null. And when i do
    :/home/santsat > echo $VTNAME
    dbusd1.srv.uk.deuba.com:8092/tcp:
    Any thoughts o what is wrong in the code?
    Thanks
    Message was edited by:
    chabhi

    Java's system property is not the same as environment variable.
    To get environment variable, use System.getenv().
    If you start your java app with -DVTNAME= then you can use System.getProperty().
    Budyanto

  • System.getProperty("user.home") is giving diferent results on diff versions

    I am working on windows 2000. When I try to get user.home using System.getProperty it gives me c:\documents and settings\my name.
    But the same things when tried on a windows 2003 server tries to look in c:documents and settings\default directory. Why is this?
    Please help.....

    In XP, the environment variable USERPROFILE is set to C:\Documents and Settings\<username>, and that value is picked up for user.home. Since the "user's home directory" varies by os, there will be variations. 98 is different than Linux than XP, etc.

  • Is there a  System.getProperty("user.desktop")

    I am trying to get the path of a user's desktop, regardless of OS.
    I know that I can use
    System.getProperty("user.home")to get the current user's directory, but what about the current user's desktop? is there a call for that?
    if not, i know where the windows desktop folder is located, but I am unfamiliar with Mac, Linux, other Unix OSs...could anyone please share where their desktops are from the root dir?
    thanks.

    Two suggestions so far for Linux:
    * /usr/local/foo
    * user.home
    The first will probably only be writable if your installer* is being run by root / superuser. I'd say that the expected behaviour would be to extract to pwd - i.e. user.dir. However, as already stated I'd quite like to be given the choice first if it's a GUI installer. A console installer which extracts to pwd would seem quite reasonable.
    Of course, you could take the view that most Linux users are used to getting a .tgz which they then extract whereever they want, so if your jar contains the file it extracts it's probably sufficient to put a README.txt in it and prompt the Linux user to read it.
    Under OS X people will probably expect you to use the built-in installer. You might be able to build a suitable package without an OS X box - check Apple's website for documentation. The desktop is ~/Desktop (where ~ is user.home).
    * If it's not an installer, although you seem implicitly to have agreed it is, I'd extract to /tmp/fooRND, making sure that it didn't exist and generating a new RND if it did.

Maybe you are looking for

  • Two Apple IDs, receive the same iMessages?

    Hello Everyone, So I've been using the same Apple ID for a long time now (lets call it A), and that's the one shared with few family members. About 5 months ago I started Using a different account (lets call it B) but still on the same iphone (both a

  • Error when connecting to SQL*PLUS via ODBC to Excel

    OS: Windows 2000 Professional Oracle DB: 9i release 2 SQL*Plus: Release 9.2.0.1.0 MS Excel: 2000 =================== When I try to connect to SQL*PLUS via ODBC to Excel with "connect scott/tiger@odbc:libro" I get the following error: ORA-03121: no in

  • Why only my recent photos transferred from my icloud to my pc.

    JUST SET UP ICLOUD. ONLY MY MOST RECENT PHOTOS DOWNLOADED FROM MY ICLOUD TO MY PC. WHY DID NOT ALL MY OLDER PHOTOS DOWNLOAD? HOW CAN I PHYSICALLY DOWNLOAD THEM. THANK YOU FOR ANYONE WHO CAN HELP....

  • Why all classes in javax.servlet.jsp are abstract?

    Hi all, I have two questions about how the package was designed: 1.) why all the classes in the javax.servlet.jsp are abstract? what is the benefits? 2.) why almost all the methods in the class, such as jspWriter, are abstract too? And we can use the

  • Upgrading 10.4 is it necessary to purchase the 'Box Set'?

    I'm in need of a little information, last night I attempted to install the latest version of iTunes only to find that my laptop's software (Tiger 10.4.11) is no longer compatible with the latest versions. So I have begun looking into upgrading my cur