Join Todd Perkins for an in-depth discussion in this video Create an Android Studio project, part of Learning Java Applications (2016).
- [Voiceover] When you open up Android Studio, you'll be if you want to import your settings from a previous version of Android Studio, I'm going to just check this bottom box here, say that I don't want to import any settings. You'll note that Android Studio's powered by the IntelliJ platform, we talked about that at the beginning of this course. So this will give you some experience working with IntelliJ IDEA, or at least the Android Studio flavor of that. I'm going to click through the setup wizard and setup using the standard components, and I'll click Finish.
Authenticate while it's going through this, click OK. So now the appropriate archives are installed, I'll click Finish, finish the setup project. And now what I want to do is create a new Android Studio project. I'll name the application HelloWorldAndroid. For company domain I'm going to put my domain, which is toddperkins.com, so the package name is com.toddperkins.helloworldandroid. And then I can specify a project location.
And I am going to go inside My Desktop, Exercise Files, Chapter 7 and in here I'm going to create a new folder and I'll call this new folder create project, click OK. And there I'm going to create another new folder. Now if you have the Exercise Files, you're already going to see this, call this new one Final. Remember, if you have the Exercise Files, just save this inside the Create Project folder and not the Final folder, or create another subfolder and save it in there.
So I'm going to choose that folder and click OK. And we get a warning right now that says project location should not contain white space. For now, I'm going to ignore this and click Next, but when you start making projects that you're going to publish, and if you're going to be using the NDK tools, you want to make sure that you don't have white space. In other words, this exercise, space, files and chapter, space, 07 are what are causing the problem. So if you want to create projects that use the Android NDK which you could learn more about in the Android development courses, you can create your folders in a way that doesn't use any white space.
So I'm going to click Next, and I'm just going to leave Phone and Tablet selected and use the Ice Cream Sandwich APi 15, select it and click Next. And I'm going to create my project based on a new blank activity, but note that you can create it based on an existing template. So you can use one of these templates if you'd like later on but for now choose Blank Activity and click Next. I'm going to leave these settings at the default but we can change the activity. An activity is like a view in Android. So a screen you can think of.
So I'm going to leave Main Activity for the Activity Name, I'm going to leave everything else at the defaults and I'm going to click Finish. Then I'm taken into Android Studio, and shown the Tip of the Day which I'm going to close. So I'll fill up my screen here by stretching this out and now you've successfully created your first Android Studio project.
- Installing Java and Eclipse
- Understanding basic Java syntax
- Handling Java errors
- Creating a UI with Swing
- Creating tables and connecting to data sources for tables
- Publishing a JAR file
- Installing NetBeans
- Creating JSP pages
- Setting up and connecting to databases
- Creating Java-based Android Studio projects