在我的应用程序中,我有一个通知按钮,它使用IntentService在后台触发一个简短的网络请求。在这里显示GUI没有意义,这就是我使用服务而不是Activity的原因。请参阅下面的代码。//BuildtheIntentusedtostarttheNotifActionServiceIntentbuttonActionIntent=newIntent(this,NotifActionService.class);buttonActionIntent.setAction(NotifActionService.ACTION_SEND_CONFIRM);buttonActionIntent.