Android Question Service Question

Shadow&Max

Active Member
Licensed User
Longtime User
I'm a bit confused by the service thing, but know I have to use it for what I'm doing. Yet, I'm just a tad lost on a few points.

I want this thing to open the datafile and check fields to trigger notifications every 15 minutes. I'll start the service upon boot, but will also have to start it when the app is first installed. Can other components be added to a service? A Timer for example? And if so, can I put all of my execution code in the timer event?

And, if so, as long as not much code is executed in that timer, would the every 15 minute checking from the service be a big drain to the device?

One last service thing... is the service basically it's own activity without screens? In other words, would it run separately from the app itself and if the service is running but the app isn't, are the app's resources still being used, even if the app isn't showing?
 

Shadow&Max

Active Member
Licensed User
Longtime User
Thanks Dude... (FYI, in NY here)... Yes, I had read those threads before... all pages no less lol... guess I just got overwhelmed by it all.

So, if I start the service on boot, I should do what I need to do, schedule another service in 15 minutes, and then destroy the current service?
 
Upvote 0

Shadow&Max

Active Member
Licensed User
Longtime User
I think I've got it... But I'm sure I'll ask questions again.. this is one of the last parts of the app I've been working on for a few months and I'm a bit fried... I'll holler again if I can't get it working (I had already done most of this with the exception of the code execution) and had the service starting on boot. I'm sure I'll run into a wall or two, but I now think I was on the right path...

Thanx again Dude!
 
Upvote 0
Top