I'm trying to implement the new receivers but with little success. I enclose several examples below and illustrate the problems encountered 1) I've implemented a receiver that does something when boot completes. It works with Android 7 (after about 2/3 minutes from full boot) it doesn't work...
Scusa avevo capito che doveva partire all'avvio del dispositivo.
Avevi citato StartBoot che nelle precedenti versioni serviva ad avviare un servizio all'avvio del dispositivo e ho pensato che ti servisse questo.
Per quello che serve a te va bene lo Starter che si avvia automaticamente prima ancora dell'activity.
In generale se vuoi avviare un servizio qualsiasi all'avvio dell'applicazione devi chiamare il servizio in Activity_Create
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.