由网友(人海一粒渣@)分享简介:这是我的字符串:private final String easyPuzzle ="630208010200050089109060030"+"008006050000187000060500900"+"09007010681002000502003097";我想给这个字符串就在9 * 9的数独板的另一个活动。I...
这是我的字符串:
private final String easyPuzzle ="630208010200050089109060030"+
"008006050000187000060500900"+
"09007010681002000502003097";
我想给这个字符串就在9 * 9的数独板的另一个活动。
I want to show this string on the another activity at the 9*9 sudoku board.
推荐答案
您需要把它作为一个额外的:
You need to pass it as an extra:
String easyPuzzle = "630208010200050089109060030"+
"008006050000187000060500900"+
"09007010681002000502003097";
Intent i = new Intent(this, ToClass.class);
i.putExtra("epuzzle", easyPuzzle);
startActivity(i);
然后从你喜欢这个新的活动将其解压缩:
Then extract it from your new activity like this:
Intent intent = getIntent();
String easyPuzzle = intent.getExtras().getString("epuzzle");
相关推荐
最新文章