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
CodePudding user response:
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);
CodePudding user response:
You should try to read the warning of the xml file maybe that will help you to understand your problem, sometimes that's also happened with me but I solve these UI problems by looking and reading warning.
You should also add your code of the activity in the questions its easy to read and understand.