×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Jul 2012
    Posts
    10

    Writing a multi-times ringing alarm clock for Xpressmusic 5130

    Hello,
    I want to establish a thread to poll the time on the phone. One the time is up, it goes to ring.
    But as usual, my concern is the power consumption. Is this phone smart enough to manage power for me?

    I run this JAD file, I get
    Xdescriptor: JAD file doesn't exist.
    Using Nokia IDE for Java ME (Eclipse) v1

    Thanks
    Jack
    Last edited by lucky7456969; 2012-09-17 at 05:14.

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,553

    Re: Writing a multi-times ringing alarm clock for Xpressmusic 5130

    If you run code to poll, the phone will let you run code that polls, and there is no such intelligence in the phone where it'd know that those instructions would somehow be special and no be run to save power.

    So, you shouldn't poll (or at least not frequently). A timer with a callback function is better.

  3. #3
    Registered User
    Join Date
    Jul 2012
    Posts
    10

    Re: Writing a multi-times ringing alarm clock for Xpressmusic 5130

    Thank you petrib. What about the issue of "Xdescriptor: JAD file doesn't exist."?
    Jack

  4. #4
    Super Contributor
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,553

    Re: Writing a multi-times ringing alarm clock for Xpressmusic 5130

    Quote Originally Posted by lucky7456969 View Post
    What about the issue of "Xdescriptor: JAD file doesn't exist."?
    Jack
    What's in your .jad file? What's in the manifest file inside your .jar file? When you say "I run this JAD file", what exactly do you mean (the steps you do in order to "run" it)?

  5. #5
    Registered User
    Join Date
    Jul 2012
    Posts
    10

    Re: Writing a multi-times ringing alarm clock for Xpressmusic 5130

    Here is where I am stuck



    => I also ran the emulator from the SDK, it says Invalid application. Delete?
    => BTW, what is a manifest?
    Code:
    Xdescriptor: JAD file doesn't exist.
    
    Usage: emulator [-options] [Application]
    
    where options include:    
        -help      Display this text
        -version   Display version information about the emulator
        -classpath The class path for the VM
        -Xverbose[:allocation | gc | gcverbose | class | classverbose | verifier 
                  | stackmaps | bytecodes | methods | methodsverbose | frames
                  | stackchunks | exceptions | events | threading | monitors 
                  | networking | all
                   Enable verbose output
        -Xquery    Print SDK option information and immediately exit
        -Xnew      Forces a new emulator instance to be created, even if
                   an existing emulator instance may be available for reuse.
        -Xuse:<phone number>       
                   Specifies a particular emulator instance to be reused, if that emulator
                   instance exists and emulator instance reuse has been enabled.               
        -Xkdpv:<level>
                   Specifies the message tracing level (0 to 9) for the KVM debug proxy.    
        -Xdebug    Use a remote debugger
        -Xrunjdwp:[address=<address>,transport=dt_socket,server=<y>,suspend=<y>]
                   Debugging options
        -Xdevice:<device name>  
                   Name of the device to be emulated
        -Xdescriptor:<jad file name>  
                   The JAD file to be executed
        -Xjam[:install=<jad or jar file url>]      
                   Java Application Manager and support
                   for Over The Air provisioning (OTA)
        -Xheapsize:<size>       
                   (e.g. 65536 or 128k or 1M)
                   Specifies the VM heapsize 
        -Xhttp_proxy:<address>[:<port>]
                   Defines the address and port number of the http proxy.
        -Xinbox:<file path>
                    Specifies the path for the message inbox directory.
        -Xlanguage:<language name>
                   Specifies the language for the SDK to operate in.
        -Xoutbox:<file path>
                   Specifies the path for the message outbox directory.
        -Xontop    If specified the SDK GUI window will always be on top of all
                   other windows.
        -Xsecurity_domain:<domain name>
                   Specifies a security domain for the MIDlet.
                   Domain name can take the one of following values: Trusted, Untrusted, Maximum, Minimum.
    Last edited by lucky7456969; 2012-09-17 at 11:10.

Similar Threads

  1. Xpressmusic 5130 SDK programming and misc questions
    By lucky7456969 in forum General Development Questions
    Replies: 1
    Last Post: 2012-07-28, 12:05
  2. Questions about Nokia 5130 Xpressmusic...
    By alexyh in forum General Development Questions
    Replies: 1
    Last Post: 2010-08-23, 04:28
  3. Clock application: alarm bugs (daylight saving time and deactivate/activate alarm)
    By SMGGM in forum Series 40 & S60 Platform Feedback Archive
    Replies: 1
    Last Post: 2009-10-26, 17:06
  4. VAS - clock & times
    By nire123 in forum VoIP
    Replies: 2
    Last Post: 2009-07-30, 13:48
  5. image Sequence Mode Nokia 5130 xpressmusic
    By magic-2005 in forum General Development Questions
    Replies: 2
    Last Post: 2009-07-28, 06:36

Posting Permissions

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