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.
大家好,我想让我的应用程序始终在后台我用谷歌搜索了很多,但我找不到任何好的东西!我还想在设备启动时自动启动我的应用程序!请有人帮我提供资源代码!
浏览本教程
您需要创建一个IntentReceiver将接收
IntentReceiver
<intent-filter> <action android:name="android.intent.action.BOOT_COMPLETED" /> </intent-filter>
也通过这个答案。