×

Discussion Board

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

    Question save power while in background

    Hello,

    my application consumes a lot of power since it calculates gps updates frequently. I want to cut this high power usage down as far as possible if the application is not activly used by the user. This means that I could set the update frequency down to a minimum if the application is in the background or the screensaver is active.

    From other postings in this forum I learned that it is not possible to determine whether the screensaver is on or not.

    So I would like to try if it is possible to enter a "power saving mode" by listening to the keystrokes. If there are no keystrokes for a minute -> enter power saving mode and if there are keystrokes -> end power saving mode.
    The problem with this approach in my application is, that I am using the high level API and I am not notified about every single keystroke. So here is the question:

    Can I somehow use the high and low level api at the same time and still be able to use commandlisteners?

    Thanks in advance for your answers

  2. #2
    Regular Contributor
    Join Date
    Jan 2005
    Location
    Malmö, Sweden
    Posts
    157

    Re: save power while in background

    I think you will find the function User::InactivityTime() useful.

    You could poll it at the same time you do a GPS poll, and then decide on how long time until you want to do the next one.

  3. #3
    Registered User
    Join Date
    Mar 2008
    Posts
    16

    Re: save power while in background

    Quote Originally Posted by olhed View Post
    I think you will find the function User::InactivityTime() useful.

    You could poll it at the same time you do a GPS poll, and then decide on how long time until you want to do the next one.
    Thanks for your answer olhed.
    I forgot to mention, that I am using Java. You seem to refer to a C++ function? Is this inactivity timer also available for MIDlets?

  4. #4
    Regular Contributor
    Join Date
    Jan 2005
    Location
    Malmö, Sweden
    Posts
    157

    Re: save power while in background

    oops, I'm sorry.
    Seems I stumbled into the wrong sub forum.

    I have no idea about Java, sorry

  5. #5
    Registered User
    Join Date
    Dec 2007
    Posts
    3

    Re: save power while in background

    Hi,

    Do you need to show the high level interface (GPS data, tracking, maps, whatever) while the device is in standby mode?

  6. #6
    Registered User
    Join Date
    Mar 2008
    Posts
    16

    Re: save power while in background

    No, actually I could switch to low level api mode after a minute or so. Then I would be able to get all the key events. Is that what you meant?

Similar Threads

  1. power save mode of n-95 phone
    By soni_neeraj in forum Symbian
    Replies: 0
    Last Post: 2008-07-11, 16:19
  2. python prog in background - save battery
    By kawan95 in forum Symbian
    Replies: 7
    Last Post: 2008-02-26, 10:49
  3. Power Save mode problem
    By AvIsHaY in forum Wired and Wireless interfaces (Closed)
    Replies: 3
    Last Post: 2007-08-26, 20:06
  4. Power save problem on nokia 6230i
    By joserino in forum General Development Questions
    Replies: 0
    Last Post: 2006-03-23, 15:13
  5. Power save and background execution (Nokia 6230)
    By ripiajo in forum Mobile Java General
    Replies: 0
    Last Post: 2005-02-16, 22:00

Posting Permissions

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