我正在使用Web Application
,Javascript
和JSP
开发RESTFul Web Services
,URL
查询Browser
而不在AJAX
中打开URL
。所以我想知道我该怎么做。我在网上搜索了我可以进行innertext
调用,它会点击URL
并执行相同的操作,但我无法从中得到任何线索。我只想获得我正在调用的public class Display extends Activity {
private int textCount;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.display);
String username = getIntent().getStringExtra("Username");
TextView tv = (TextView) findViewById(R.id.TVusername);
tv.setText(username);
}
public void onClickNext(View v) {
if (v.getId() == R.id.btNext) {
EditText settings = (EditText) findViewById(R.id.TFsettings);
TextView settings2 = (TextView) findViewById(R.id.TVsettings2);
String settingsstr = settings.getText().toString();
String settingsstr2 = settings2.getText().toString();
if (!settingsstr.equals(settingsstr2)) {
//pop up message
Toast pass = Toast.makeText(Display.this, "What you typed don't match", Toast.LENGTH_SHORT);
pass.show();
} else {
Intent mainwindow = new Intent(Display.this, IntentService.class);
startActivity(mainwindow);
}
}
}
的{{1}}。此外,如果可能通过任何其他技术任何帮助,在此非常感谢。