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
For fragment you have to use getactivity().... For Example:
Intent intent = new Intent(getActivity(), AnotherActivity.class); startActivity(intent);