Android页面跳转是如何传递参数的

Intent intent = new Intent();
    Bundle data = new Bundle();
    data.putString("url", url);
    intent.putExtras(data);
    intent.setClass(DodingSmareWebAssistantActivity.this,
      NetActivity.class);
    startActivity(intent);
传递数据;
Intent intent = getIntent();
  Bundle data = intent.getExtras();
  url = data.getString("url");
接收数据

你可能感兴趣的:(android,url)