• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Android Media Projection with Services class

Groovay

Lurker
Oct 14, 2017
3
0
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.
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones