如何在其他活动中停止我的服务?
我在summaryActivity中启动了该服务
SocketServiceIntent = new Intent(this, SocketService.class);
SocketServiceIntent.putExtra("MessageParcelable", mp);
startService(SocketServiceIntent);
Run Code Online (Sandbox Code Playgroud)
从我的summaryActivity开始我的statusActivity
Intent intent = new Intent(SummaryActivity.this,
StatusActivity.class);
intent.putExtra("MessageParcelable", mp);
startActivity(intent);
Run Code Online (Sandbox Code Playgroud)
我的问题是我不知道如何将我的Statusactivity提供给SocketServiceIntent.