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
You should use getActivity() to launch an Activity from Fragment.
getActivity()
Activity
Fragment
From a Fragment: Context is parent activity (getActivity()).
Context
(getActivity())
Intent intent = new Intent(getActivity(), AnotherActivity.class); startActivity(intent);