From the course: Java for All Platforms: Desktop, Web, and Mobile Development

Creating an Android project in Android Studio - Java Tutorial

From the course: Java for All Platforms: Desktop, Web, and Mobile Development

Creating an Android project in Android Studio

- [Instructor] And now we're going to use Java to create an Android application using Android Studio. As I mentioned previously, this can be done with IntelliJ and Android Studio is also based off of IntelliJ as well. So you'll notice a lot of similarities as we create our project here. You can download Android Studio at developer.android.com/studio. And of course, if that link ever changes just do a web search for Android Studio download and it should take you to the right place. So from here I'm going to click the download options button to see a list of the Android Studio download. So you can download Android Studio for your appropriate platform. And once it downloads install the application going through the default installation process. And what I mean by that is Android Studio is going to suggest to download a given version of the Android software development kit or SDK. And it's going to suggest to install other tools, whether to do a custom install or the default install. And I recommend going through all the default settings for what we're doing right here, because really all we're doing is making a simple hello world project with Android. So once you've done all of that you should end up on the welcome screen, which should look pretty familiar from when we worked with IntelliJ. We have mostly the same buttons on the left here, including the customized button and the plugins button. So from here, we'll go to the projects button and then create a new project. I'm going to choose phone and tablet under the templates, and then choose empty activity and hit next. And here, what I'm going to do is change the save location into chapter five, Android final and hit open. And I'm just going to leave the default name for my app and a package name. Make sure to change the language to Java. And then I'm going to leave the minimum SDK at the default and then just hit finish. And that's going to create the Android app. Once your project is created, it will open up in the Android Studio interface, which again is almost identical to the IntelliJ interface, including the styling of the code. It's also going to run a Gradle sync operation to make sure all your dependencies are downloaded. Once that is ready, then you're ready to start working with an Android app in Android Studio.

Contents