Intent intent = new Intent();
intent.setComponent(new ComponentName("com.mile.projectorctrl", "com.mile.projectorctrl.OffScreenPowerService"));
startService(intent);
注:其他服务的配置里需要添加export
<service
android:name=".OffScreenPowerService"
android:exported="true" />
博客提到在其他服务的配置中需要添加export,这可能涉及到后端开发或运维等信息技术领域的操作,对服务配置有一定影响。
1967

被折叠的 条评论
为什么被折叠?



