退出应用服务依然存在

<service
    android:name="com.example.service.MyService"
    android:enabled="true"
    android:process="system" />
Intent startIntent = new Intent(this, MyService.class);
startIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startService(startIntent);


猜你喜欢

转载自blog.csdn.net/yongwoozzang/article/details/80677991
今日推荐