Creating First Application In Android Studio in 2023 - For Beginners

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello welcome back to tutorial Made Simple channel in this video we will learn how to build the simplest Android app hello world using latest version of Android Studio it's a great place to start making Android apps but before we start I want to check first if Android Studio is up to date secondly I will also modify the appearance click this and select the SDK manager we need to ensure the SDK and Android Studio are up to date click this to check Android Studio updates make sure both ID and plug in checkbox are checked click on check updates looks good I have the latest Android studio and plugin you can install this toolbox app to get updates automatically next I will change the appearance [Music] I am selecting IntelliJ Lite as my theme and then click ok next let us proceed to write a simple Android application which will print hello world let's click on this new project button select this empty activity let's name it my Hello app [Music] this package name is like a domain name in reverse order if you are going to publish this app to Android Studio this package name have to be unique select the language as Java and minimum SDK API 26 click finish it's loading you have to be patient at this step and wait until it's finished [Music] it's still loading but we can see the main activity code that is the default code generated by the application wizard this code is a Java file this is the actual application file which ultimately gets converted to a Dalvik executable and runs your application [Music] the loading is completed now we can see on the left side the anatomy of Android application foreign [Music] manifest.xml is the Manifest file which describes the fundamental characteristics of the application and defines each of its components the activity underscore main.xml is a layout file it is available in raise slash layout directory that is referenced by your application when building its interface you will modify this file very frequently to change the layout of your application we will modify this file later in this video you can click this tab to view code only split to see both code and design or click on design to see design only [Music] for example I will add an exclamation point at the end of the sentence hello world you can do this by directly editing the XML file or changing the text attributes here we can see that the XML file is also updated with the change foreign next I will enlarge the text size by directly edit the activity underscore main XML file [Music] [Applause] [Music] I will add a background for this I have prepare a file [Music] thank you just copy this file and then paste it here in drawable folder [Music] let's add the background foreign [Music] is added now let's change the text color to white [Music] actually you can change the text view attribute here but I prefer to directly edit the XML file [Music] next let's set the text style to bold [Music] okay we have modified the default Hello World app now it's time to test it [Music] just click the device manager you can see I have both virtual and physical device but for this time I will Target the physical device in this case Samsung running on Android 11. [Music] to run just click this green play button we can see a message at bottom right that the Gradle build is running we have to wait until it's finished okay the Gradle invocation finish with zero error [Music] great our Hello World app successfully run on my Android phone [Music] to summarize this code represents the main activity of an Android app when the app is launched this activity is created and the oncreate method is called the activity sets its layout based on the activity underscore main.xml file which defines how the user interface should look OK I think we can conclude this video I hope you have learned from this video in the next video we will create a simple user login application [Music] thank you for watching see you soon
Info
Channel: TutorialMadeSimple
Views: 83,135
Rating: undefined out of 5
Keywords: androidstudiotutorialforbeginers, androidstudiojavatutorial
Id: gNO8PwI2arI
Channel Id: undefined
Length: 7min 42sec (462 seconds)
Published: Tue Jul 25 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.