Setting Up NerdLauncher

In Android Studio, select FileNew Project... to create a new project. Start with the Add No Activity option for Phone and Tablet. Name the app NerdLauncher and give it a package name of com.bignerdranch.android.nerdlauncher. Select the option to Use AndroidX artifacts and leave the rest of the defaults as they are.

Once Android Studio has initialized the project, create a new empty activity using FileNewActivityEmpty Activity. Name the activity NerdLauncherActivity and check the Launcher Activity box.

NerdLauncherActivity will display a list of application names in a RecyclerView. Add the androidx.recyclerview:recyclerview:1.0.0 dependency to app/build.gradle, as you did in Chapter 9. If you would ...

Get Android Programming: The Big Nerd Ranch Guide, 4th Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.