想在activity startService时,想通过putExtra("name","data" )来传递数据,但是在service中并未找到getIntent()的方法,想了很久才发现原来onStartCommand传递的第一个参数就是传递过来的intent.