How I can programmatically find the list of appl开发者_JAVA技巧ications that starts on device startup. Is there any way to programmatically disable autostarting applications you don't need.
Thanks
Other than removing the offending applications, there's no way to do that.
The API says the system has to honor requests for the BOOT_COMPLETED
broadcast that any application puts in its manifest. Since there are uses for BOOT_COMPLETED
beyond starting long-running services, shutting off that mechanism would break the API and cause some programs to malfunction.
Edit to answer the first part of the question: The PackageManager
can get you a list of all receivers that can receive the broadcast, but you're still powerless to do anything about it.
精彩评论