Creating My First Android Application Using Android Studio

As we have already learned how to download and install the Android Studio in previous blogs, we are going to create our first Android application, using Android Studio, in this blog.

At first, open the Android Studio software.

Android studio

Click on File >> New and then click on New Project.

Android studio

You will get a new Dialog box. Type your project name and project location where you want to save your project and then click on Next.

Android studio

You can now select the API levels which will be supported in your device. I have selected API 15 as it will run on approximately 94 percent of devices that are active in Google Play Store. Then,click on Next.

Android studio

As we are going to create first app, select Blank Activity and click on Next.

Android studio

You can give your desired Activity name and click Finish to finish Setting up the new project.

Android studio

Your project setup part is over. Now, let's work with the designing and coding part.

Android studio

You have Layouts and Widgets in the Pallete. All you have to do is drag and drop the layouts and widgets. Let us drag a large Text. Double click on the widgets that you have dragged and dropped. Type the Desired Text you want in your app.



Press Enter and adjust the text size, background color, height, width etc.
 
Android studio

Press Enter and you will get your text in apps.



Now, let us generate the apk file which can be installed in your device and use it as an application. Click on Build and generate signed APK.



Android studio

Android studio

Click on Next and then Finished. Now, your apk file is generated. Copy the generated file in your Android device and install it. You will be able to use  it in your device.

Android studio