Why am I getting only empty activity and basic activity in Android studio?

Asked 28-Dec-2021
Viewed 305 times

0

Why am I getting only empty activity and basic activity in Android studio?



1 Answer


0

  • Select the Basic Activity template in the Add an Activity to Mobile wizard during the project creation process. Then press the Next key.
  • In all subsequent wizards, simply click the Next button and utilise the default parameters until the process is complete. The files and folders created by the basic activity template wizard are listed in the left android Project panel.
  • Click New —> Activity —>Empty Activity menu option in popup menu list after right-clicking the java package.
  • Simply click the Finish button and accept the default settings. When the procedure is finished, you should only have one activity java file and one layout XML file.
  • The difference between basic activity and empty activity is that basic activity generates a best-practiced standard code skeleton for the android developer, whilst empty activity generates only an activity java and layout XML file.


Read More: