有些人说intent.putExtra(str,key)(https://zhidao.baidu.com/question/488880449.html)
后面看到androidStudio的提示是intent.putExtra(key,str)
Intent startTcpServiceIntent=new Intent(this,TcpCommandService.class);
startTcpServiceIntent.putExtra("tcpHost",host);
有些人说intent.putExtra(str,key)(https://zhidao.baidu.com/question/488880449.html)
后面看到androidStudio的提示是intent.putExtra(key,str)
Intent startTcpServiceIntent=new Intent(this,TcpCommandService.class);
startTcpServiceIntent.putExtra("tcpHost",host);