第二个sevice如何获取其他activity输入框数据

在第一个布局中有一个输入框,加载完成,点击按钮startsevice(service)跳转到另外一个布局了,如何获取上一个布局中的输入框的数据。

通过Intent可以把数据传过去的
传值:
Intent intent=new Intent();
intent.putExtra("extra", "这是页面一传来的值!");
intent.setClass(Test_for_intentActivity.this, actpage2.class);
startActivity(intent);
取值:
Intent intent=getIntent();
String StringE=intent.getStringExtra("extra");
TextView text2=(TextView)findViewById(R.id.textView2);
text2.setText(StringE);

不要获取输入框,要获取输入框的数据