传递字符串 Intent intent = new Intent(); intent.setClass(MainActivity.this,NewActivity.class); intent.putExtra(