如何在其他活动中停止我的服务?SocketServiceIntent = new Intent(this, SocketService.class);startService(SocketServiceIntent);Intent intent = new Intent(SummaryActivity.this,
MainActivity的onCreate()中启动的服务:val stopped = stopService但是,当我重新打开并关闭应用程序时,即使已停止: true被打印出来,之前的服务仍在运行,而之前的服务的stopService()也没有被调用。getManager() = getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager
over