I have a fragment with a custom view in it. This custom view is a Sudokuboard.
SInce the view needs the starting numbers my thought was to give this from the fragment onCreate using a view method i added ( public void add_numbers(String) )
But when I call this method in the fragment onCreate the app crashes with android.permission.INTERACT_ACROSS_USERS_FULL exception.
Anyone got any ideas what I'm doing wrong here ?
Code below is the fragments onCreate method. The strings and sudokuview is declaed at the very top.
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
View view = inflater.inflate(R.layout.fragment_game, container, false);
// Get arguments
Bundle args = getArguments();
boardID = args.getString("BoardID");
boardNumbersOriginal = args.getString("boardNumbers");
boardSolution = args.getString("BoardSolution");
sudokuView = (SudokuView) view.findViewById(R.id.sudokuview);
sudokuView.setBoardNumbers(boardNumbersOriginal);
return view;
}