I have a question. I was coding some help pages using Fragment.
public HelpFragment(int i) {
Bundle args = new Bundle();
args.putInt("page", i);
setArguments(args);
}
In test case, I got this error.
"make sure class name exists, is public, and has an empty constructor that is public"
So that, I added empty constructor.
public HelpFragment() {
Bundle args = new Bundle();
args.putInt("page", 0);
setArguments(args);
}
But still that error is producing. What should do I? Thanks in advance.