Answer the question
In order to leave comments, you need to log in
How to make a transition from a fragment to an activity using a button?
I have a snippet:
public class ScreenTwo extends Fragment {
public ScreenTwo() {
}
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View rootView = inflater.inflate(R.layout.screen_two, container,
false);
return rootView;
}
}
public void Click(View view) {
Intent intent=new Intent(ScreenTwo.this,mainclass.class);
startActivity(intent);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question