The Basic Activity project
The next simplest project type with an autogenerated UI is the Basic Activity project. This is the same type of project that we created in Chapter 1, Getting Started with Android and Kotlin. Feel free to open that project up now, but it is recommended to generate a new one so that we can examine it without any of our alterations and additions clouding the discussions.
Let's create a Basic Activity project, as follows:
- In Android Studio, select File | New | New Project….
- On the Choose your project screen, select the Basic Activity template and click on Next.
- Change the Name field to
Basic Activity App
. - Choose the same package name and save the location as in the previous project.
- Be sure to select Kotlin as the language.
- Check the Use AndroidX artifacts checkbox as we did previously.
- The rest of the settings can be left at their defaults, so just click on Next.
Now we can dig into the files. We won't look at everything in the same detail that we did for...