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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.