DEV Community

Cover image for Android Studio: Guide For Beginners
Crazy Codigo
Crazy Codigo

Posted on

Android Studio: Guide For Beginners

By Samrat Chakraborty

When you start Android Studio it provides you with a number of templates that you can use while making your very first Android Studio project.

To create a new project in Android Studio, click on new project. After that, select from the number of predefined templates that you can use in your project without coding for the same. If the desired template is not present then you can select Basic or Empty Activity template.
Selecting Template
After selecting the desired template, click on next and then enter the name of the application, package name, location, the language in which you want to write your code (java/kotlin) and minimum API level (this is the minimum API supported by your app). After this, click on finish.
Starting a new project
Now, after you have completed making the basics of your project, you can run this project on your device by connecting the device with an USB and then run your first android application. Now, below you can see the workspace of android studio to modify your app according to your needs.

Then, coming to the workspace that Android Studio provides here you can see different sections: -

  1. The Top part is also known as the Menu Part. Here you will get various options like File where you can create a new project, open an existing project, etc. You also have an option Build which will build your APK.

  2. In the mid-section on the right you can see the Coding Area where you can actually write code for your kotlin or java file.

  3. The left side of the mid-section is called as Project Structure. This is the part from where you can access all the files present in your project.

  4. The bottom part is called the Terminal or the Current execution part. This is the most import part of Android Studio. Here, you can see the currently executing processes or activity. If your code has errors then it will show up in the Terminal.

First Code

Coming to the Designing part

You can create the UI of your Android application by writing your code in your .xml file. You can access this file in your res>layout>activity_main.xml.

Here, you can design your Apk in two ways, i.e., either the text way or the design way. In text way you can write the .xml code for your android application and you can see the preview on your mobile screen.
Text Code for Making the UI
Android Studio, provides a way to drag and drop various widgets and use it in making your application. This is the Design way.
Design way for Making the UI
To Run the App u can use keyboard shortcut (SHIFT+F10) or press the play button next to your virtual device name.

Conclusion

In this blog, we looked at the basics of Android Studio and learned some features of how to use it. We learnt how to design the UI of our apk and run it.

If you want to discuss your app ideas with me directly, you can join the Crazy Codigo server.

Follow our socials to get updated whenever we post.

Hope you liked this blog :))

~Sam

Top comments (0)