Answer the question
In order to leave comments, you need to log in
What are the errors here and how to fix them?
This is HomeFragment. I transferred this code from another project (where it worked), but from MainActivity. All other classes work fine, but this one has errors. Who can help?
Answer the question
In order to leave comments, you need to log in
Read about Activity and Fragment. There is a big difference between them.
In this case, setContentView and getActionBar are Activity methods, Fragment does not have them. It needs to be done differently. These are generally the basics, without their understanding, there can be no talk of any development.
Emin is right, you are trying to call non-existing methods from the super class. read well about Fragment.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question