1. Download our Official Android App: Forums for Android!

Apps Android Media Projection with Services class

Discussion in 'Android Development' started by Groovay, Oct 16, 2017.

  1. Groovay

    Groovay Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    3
    Joined:
    Oct 14, 2017

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

    Advertisement

Share This Page

Loading...