Using Android Studio, I have my MainActiviy class with a Placeholder fragment. This fragment has buttons, but one has to load an Activity. How does one do this? I was tol
If you have to use it inside onBindViewHolder, you may do this:
@Override public void onClick(View view) { Intent intent= new Intent(view.getContext(), MainActivity.class); view.getContext().startActivity(intent); }