Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1063633
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T18:48:43+00:00 2026-05-16T18:48:43+00:00

Are there any best practices for writing a power-efficient background application in Symbian? Specifically,

  • 0

Are there any “best practices” for writing a power-efficient background application in Symbian?

Specifically, is there any way (i.e. API) for a Symbian app to hint the OS regarding its current state in order to reduce battery consumption?
In Android, for instance, there is the notion of Wake Locks, which prevents the device from going into standby mode – Is there anything similar in Symbian?

EDIT:
Are there any implications when running code as a separate thread with the Open-C library, and not as “native” Symbian C++, using Active Objects etc.? (the Open-C code is blocking on IO most of the time).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T18:48:44+00:00Added an answer on May 16, 2026 at 6:48 pm
    1. You can check user (in-)activity with a RTimer::Inactivity() method. This way is described in Forum Nokia Wiki page. There it’s also described how you can reset inactivity timer.
    2. You can check whether device screen is turned on or off using HAL API. See classes HAL and HALData. You may use such a call:


    TInt displayState;
    HAL::Get(HALData::EDisplayState, displayState);

    And the displayState will hold either 0 if display is turned off or 1 in other case.

    With these APIs you will know whether user is active now, so you’ll be able to change behavior of your background service to reduce its power consumption.

    You can also use Nokia Energy Profiler application to record power consumption of handset, with different power saving options of your background service. Also please refer to Nokia’s document describing best practices to save power of device. This document is quite straightforward, but useful nonetheless.

    Hope this helps.

    EDIT: About separate thread and Open C. As far as I know, Open C is just a plugin and deep down all the implementations are still “native Symbian”. So, as far as you avoid periodic polling of some resource and just use usual blocking IO, your code is quite same economical on power as standard Symbian Active Objects techniques (which use Symbian-specific semaphores to block threads).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Are there any known how-tos or best practices for web service REST API versioning?
Are there any best practices in writing unit tests when 90% of the time
Are there any best practices (or even standards) to store addresses in a consistent
Are there any guidelines/best practices for deciding what type of data should be stored
Are there any best-practices that state custom code shouldn't be placed in a System
I'm wondering if there are any best practices for improving UI responsiveness while doing
There doesn't seem to be any tried and true set of best practices to
Is there any best practice data model for authentication/authorization scheme?
Is there any way to check whether a file is locked without using a
Is there any way to capture the MouseDown even from the .NET 2.0 TextBox

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.