Android Question Doubts about scheduled services

Discussion in 'Android Questions' started by Xicu, Jun 26, 2019.

  1. Xicu

    Xicu Member Licensed User

    Hi all,
    someone can answer if these statements are correct?:

    1-There is no command to know directly if the execution of a service has been programmed previously. Is that so?. I must use for example some global variable to control it's state.

    2-If a service was previously scheduled, and I call back 'startserviceatexact' or 'startserviceat', the old scheduled will be overwritten by the new one. Is it like that?

    3-If I call CancelScheduledService and the service has not been programmed before, simply android will ignore the instruction. Correct?

    Thanks in advance!
     
    Last edited: Jun 26, 2019
  2. DonManfred

    DonManfred Expert Licensed User

    1. Yes, you can not check (if i remember correctly).
    2. Correct.
    3. Correct (if i remember correctly).
     
    Erel, José J. Aguilar and Xicu like this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice