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

  • SEARCH
  • Home
  • 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 6995109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:58:44+00:00 2026-05-27T19:58:44+00:00

I have developed one application which will have activities and one background service and

  • 0

I have developed one application which will have activities and one background service and all activities will have to bind with service when any request has to be sent to the server and response will be sent back to the register activities.Now there is one requirement where my application can run in foreground as well as in background also so for that i overridden device’s back key and called moveTaskToBack() method and observed that my application is running perfectly when it goes to background, till this point application is working as expected but when device goes to sleep mode after some time application get closed , so we observed that as Wi-Fi is getting turned off so application’s socket connection is also getting closed then we have acquired the partial wake lock of the application and application is working fine when it is running mode and device goes to lock/sleep mode but when application goes to background after 15 to 20 mins it is getting closed and when i see in DDMS it’s displaying “Excessive wake lock in the application” then closing all windows and killed the application process.
I am acquiring partial wake lock in background service’s onCreate() method and releasing it in onDestroy() method.

does anyone help me out why it is happening and how to resolve it.

Regards,
Piks

  • 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-27T19:58:45+00:00Added an answer on May 27, 2026 at 7:58 pm

    Well, apparently OS is smarter than you. It just tries to preent your application from sucking all the battery juice. To resolve this problem, you have to be polite citzizen.
    (and trust me, your application will be thrown off user phone on the spot when it behaves this way.)

    Why it has to run all the time at all?

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

Sidebar

Related Questions

We have developed one android application which will send the request and receive the
We have developed a web application which consumes a web service. The user will
We have a web application which has been developed over the past 7 months.
in my project i have one registration form which is developed in C#.net.to this
I have developed one application in android and now I wish to add one
We have developed a messaging application in j2me which adds text message, gets pictures
Have developed an MVC3 application which monitors when users access static content on the
Actually we have developed one mobile solution, which is used by our customers. But
I have developed an application which can create Xml files from Xml schema with
I have an Excel addin application which I developed with C# and I published

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.