And also we have some panels at the right, okay? That you can open or minimize, okay? And then we have, like in the project, we have a project navigator. So I'm jumping quickly over several stuff. But in case you are coming from VS Code or other IDE, it's like a new IDE. I mean, if you have multiple monitors, you can undock each panel, the same with an intelligent idea, because it's similar to that ID. In the settings of that panel, you can actually undock it. First, we have some panels, we have a panel here from the project that you can click, you can open and close the panel. So I'm going to close MainActivity now, there is a little x, close there. And this is the interface that you're going to see after creating the first project. If you have just installed Android Studio it will be faster, it should be faster, okay? It depends on how fast your computer is or how all your Android Studio installation is? Because, if you have installed your Android Studio a few months ago, sometimes you need to download more libraries and it will take some time. We will see that it takes a couple of seconds, sometimes it may take a couple of minutes, actually, to finish, okay? Finish, and this is going to create the project. And then the minimum SDK, we have already discussed the minimum SDK, I think that for Android 5 is good enough. We cannot use Jetpack Compose with Java. I cannot pick another one because we are using, or we are going to use Jetpack Compose that is Kotlin only. Okay so where are you gonna save this? The language is Kotlin. So pick one ID without a show, go without the trademark that you are not allowed to use or something like that. This is, okay? That's the only place where users will see your ID. If you look in the Play Store for any app, Microsoft Bing, if you look at the URL, the URL includes, I will zoom in here, the ID of that app. ![]() The only moment where you're going to see that ID is in the Play Store website. Because if you change ID it's a different app, so it's not going to be an update. If you publish this to the Play Store that ID will still be there forever. You can change that ID until the moment you publish these to the Play Store. So that's the ID that the unique primary key that will identify our app within the operating system and within the store. I don't know, for example, com.frontendmasters, and then the name of the app. Well, one convention that we have agreed on, is to use the name of our website in reverse order. So how can we, not guarantee, but how can be safe that we're not going to use a string that someone else is using, as well. Every app must have a unique ID within the operating system and within the store, in this case, the Play Store, or any other store. The same happens when you build app for Windows, or for iOS, or for macOS. Then we need a name for the app, I'm going to call this CoffeeMasters. All the other templates that we have here are actually for the old, classic way to create user interface, okay? ![]() So every time you see that logo, it means Jetpack Compose. And remember that logo that's actually the Jetpack Compose logo. ![]() The one that says Empty Compose Activity because we are going to use Jetpack Compose. So it's asking me what kind of screen or window you want, okay? We don't know what an activity is, yet, but let's say for now, that an activity is one screen in the operating system. We will focus on Phone and Tablet, and then we need to pick the kind of activity that we want. We can create the project from Phone and Tablet, Wear OS, those are the watches for Android, Android TV, or Auto, that's on Android Auto apps for the car. First, you will see at the left that we can pick the kind of project for Android that we want to create. Here, we need to be very specific about the template that we're going to use. So back in Android Studio, I'm going to create a project from scratch. So now that we have already covered the basics of Kotlin the language, it's time to create our project and start playing with the user interface.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |