Pass a String from one Activity to another Activity in Android
android
Solution
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");
Problem
This is my string: ``` private final String easyPuzzle ="630208010200050089109060030"+ "008006050000187000060500900"+ "09007010681002000502003097"; ``` I want to show this string on the another activity at the 9*9 sudoku board.