skip to Main Content

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

java file
XML code
manifest file

2

Answers


  1. 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.

    Login or Signup to reply.
  2. 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);
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search