Issue
I am trying to run an app with the code on my android studio there is no error the app runs on the device doesn't show output I have shared a screenshot of it
src="https://i.stack.imgur.com/pngkO.png" alt="java file" />
Solution
It seems you're not Overriding the onCreate
method. Try this:
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.relative_layout);
Answered By - Hamed
Answer Checked By - Mary Flores (JavaFixing Volunteer)