【发布时间】:2014-02-28 16:11:45
【问题描述】:
在我正在制作的应用程序中,我想在一个活动中启动一个意图
Intent toonService = new Intent(Login.this, ToonService.class);
toonService.putExtra("toonName", result.getName());
Login.this.startService(toonService);
下面的代码会关闭我刚刚打开的意图吗?如果没有,我怎么能得到它?
Intent toonService = new Intent(MainActivity.this,ToonService.class);
MainActivity.this.stopService(toonService);
第二段代码将在与第一段代码完全无关的时间被调用。
【问题讨论】:
标签: java android android-intent android-service