0
public static class PlaceholderFragment extends Fragment {
public PlaceholderFragment() { }
@Override
public View onCreateView(
LayoutInflater inflater,
ViewGroup container,
Bundle saveInstanceState) {
View rootView =
inflater.inflate(R.layout.fragment_main, container, false);
Button btnNumberGuessGame =
rootView.findViewById(R.id.btnNumberGuessGame);
btnNumberGuessGame.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent =
new Intent(getActivity(), NumberGuessGame.class);
getActivity().startActivity(intent);
}
});
return rootView;
}
}
It’s not calling another screen, theoretically the code is "right".
I don’t see any code in the question. Please edit the question to include code.
– Oralista de Sistemas
I added the code there, it does not call the second screen
– Sávio Pantoja
Look at this I think this is it POST
– Shider
Any error appears in the console?
– Pablo Almeida
The Activity Numberguessgame was declared on Androidmanifest.xml?
– ramaral