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 6254415
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T14:10:32+00:00 2026-05-24T14:10:32+00:00

Ok guys, I did ask before on how to create a way to run

  • 0

Ok guys, I did ask before on how to create a way to run a code always in my app. It’s similar to how say iMobeter or something like that check your hp, if it’s less than max it’ll add to it every 5 mins.

Some people told me to use service which sounded good. Problem is, I need a service that is always running in the background. Plus, I could not create a service that can access the database. I cant use the cursor there as in it does not support the method.

I would appreciate pointing me to a good example or a better way to do it.

  • 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-24T14:10:33+00:00Added an answer on May 24, 2026 at 2:10 pm

    Problem is, I need a service that is always running in the background.

    That is not possible. Users can stop your service whenever they want, and Android will stop your service if it lives too long.

    Plus, I could not create a service that can access the database. I cant use the cursor there as in it does not support the method.

    Yes, it does. Use SQLiteOpenHelper, the same way you would with an activity, content provider, etc.

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

Sidebar

Related Questions

guys, I would like to you evaluate next code below. As you see, I
Did any of guys run into this error where the search crawler is ignoring
I've not done any thread programming before, so i wanted to ask you guys
guys. I have a strange problem. I try to write unit-tests to web-app. I
Can you guys give me some good references on Oracle SQL loader. I did
(Sorry for long post) Ok guys, so I'm having some issues with something I'm
The GitHub guys recently released their background processing app which uses Redis: http://github.com/defunkt/resque http://github.com/blog/542-introducing-resque
Hey guys I'm trying to create a horizontal navigation on the footer of a
Before you read on I just want to make something perfectly clear, Im not
I'm looking at someone's code and they did: if ( myNum > (num1 &&

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.