Hello,
I am preparing app that will continuously run in background and send data at specific time interval to MySQL database. App user should be able to set time interval from app.
Option#1 - With Media Projection and using Services class - App runs in background even if app is removed / killed from task manager. But user is not able to set time interval of choice to send data to MySQL database.
Option#2 - Using only Media Projection - App runs in background but if app is removed / killed from task manager then App will stop working in background. Here App user is able to set time interval of choice to send data to MySQL database.
So how can I make so App runs in background and can not be killed / removed from task manager and still App user should be able to set time interval of choice to send data to MySQL database at specified time interval.
Thank You.
I am preparing app that will continuously run in background and send data at specific time interval to MySQL database. App user should be able to set time interval from app.
Option#1 - With Media Projection and using Services class - App runs in background even if app is removed / killed from task manager. But user is not able to set time interval of choice to send data to MySQL database.
Option#2 - Using only Media Projection - App runs in background but if app is removed / killed from task manager then App will stop working in background. Here App user is able to set time interval of choice to send data to MySQL database.
So how can I make so App runs in background and can not be killed / removed from task manager and still App user should be able to set time interval of choice to send data to MySQL database at specified time interval.
Thank You.