Lazarus

Programming => Operating Systems => Android-JVM => Topic started by: Luigi on March 24, 2018, 07:01:38 pm

Title: app to works 24/7 even it is close
Post by: Luigi on March 24, 2018, 07:01:38 pm
Hello
  i tried to write app that works 24/7 to notify to user every day at certain time to take a medicine.
My app works fine but is quite simple to stop working by closing it from "recent apps" (task Manager?).
From "recent apps" all the apps can be terminated by o.s. or by user simply by pressing a X button.

How i write my app to works 24/7 even it is killed from "recent apps"?

Thanks.
Title: Re: app to works 24/7 even it is close from "Recent app"
Post by: Luigi on March 24, 2018, 07:05:58 pm
I used simply jTimer to do the work
Title: Re: app to works 24/7 even it is close
Post by: bigeno on March 24, 2018, 11:09:22 pm
When user need to take a medicine why he demand killing your app by task manager ?
Title: Re: app to works 24/7 even it is close
Post by: kupferstecher on March 24, 2018, 11:26:13 pm
Are you talking about LAMW?

I don't know about it, but as far as I know, android apps with "always running" behaviour have to be listed as autostarted. E.g. I don't allow whatsap to autostart by settings and that results in the same effect as you described, I don't receive messages anymore until I deliberaly start the app.
Title: Re: app to works 24/7 even it is close
Post by: Luigi on March 25, 2018, 12:13:57 pm
When user need to take a medicine why he demand killing your app by task manager ?
The user kills app for a mistake but android o.s. can decide to kill app because it needs ram.
Title: Re: app to works 24/7 even it is close
Post by: Luigi on March 25, 2018, 12:19:55 pm
Are you talking about LAMW?
Yes, app created with lams.

Quote
I don't know about it, but as far as I know, android apps with "always running" behaviour have to be listed as autostarted.
With lamw how I can create apk to deploy and install apps in autostarted?

Thanks
TinyPortal © 2005-2018