androidandroid-studioandroid-jetpack-compose

What Are the Differences Between Empty Activity and Empty Views Activity in Android Studio Flamingo Version?


Recently, I installed the new version of Android Studio called Flamingo. Prior to that, I used the Empty Activity template to develop Android applications using the Java programming language. However, after installing the new version, I noticed that the default template has changed to Kotlin programming language, and I'm unsure if I can switch it back to Java.

Currently, I'm using the Empty Views Activity template to build my Android applications using Java programming language.There is no detailed documentation available on this topic in the internet.I'm curious to know the differences between the Empty Activity and Empty Views Activity templates


Solution

  • Empty Activity is now a Jetpack Compose template. Empty View Activity is the old one.

    Source: https://developer.android.com/studio/releases#updates-to-npw-nmw

    If you want the template to be in Java or Kotlin, you can select that on the next screen. Note that Compose only works with Kotlin, so there is no Java template option there.

    New project screen