private final String easyPuzzle ="630208010200050089109060030"+
"008006050000187000060500900"+
"09007010681002000502003097";Bundle ePzl= new Bundle();ePzl.putString("key", easyPuzzle);Intent i = new Intent(MainActivity.this,AnotherActivity.class);i.putExtras(ePzl);startActivity(i);
现在转到AnotherActivity.java@Overrideprotected void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentView(R.layout.activity_another_activity);
Bundle p = getIntent().getExtras();
String yourPreviousPzl =p.getString("key");}
现在“yourPreviousPzl”是你想要的字符串。