Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个在 ICS 中启动服务的广播接收器。我没有与代码相关的活动。我面临的问题是我无法在接收器中接收到 BOOT COMPLETED 广播。是否有解决方案?
在较新版本的 Android 中,用户必须至少手动启动一次应用程序,然后才能运行任何后台内容,因此您将需要一个 Activity。