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
In case of fragment, write getActivity() to get activity context instead of giving the name of activity explicitly.
For example, if you want to open SecondActivity from a fragment,