How to create an app in Android Studio


Welcome to my new Post on 
How to create an app in Android Studio

Android Studio is the official IDE to create Android apps for phones, tablets, TVs, and Wear devices etc.

This post explains how to start a new Android app project or import an existing project using Android Studio.

If you don't have a project opened

Create a new project by clicking Start a new Android Studio project on the Android Studio Welcome screen.


OR

If you have a project opened a project, create a new project by selecting File > New > New Project from the main menu.



In the New Project screen that appears like below



You can select the type of project you want to create from categories of device form factors, shown in the Templates pane.

For the beginners I suggest you to select Empty Activity and click on Next. 


In the New Project window, complete the following:


1. Name - Specify the Name of your project which you want. 

You should keep it identical if you want to publish your app on Play Store.

2. Package name - Specify the Package name. By default, this package name becomes your project's namespace (used to access your project resources) and your project's application ID (used as the ID for publishing). Again if you want to publish your app make it different if it match with any others your app will not publish Google will reject your app.

3. Save location - Specify the Save location where you want to locally store your project.

If you'd like to place the project in a different folder, you can change its location

For the beginners I suggest you to keep it by default don’t change it.

4. Language - Select the Language, Kotlin or Java, you want Android Studio to use when creating sample code for your new project. Keep in mind that you aren't limited to using only that language in the project.

As my posts are based on Kotlin so I recommend you to select Kotlin.

5. Minimum SDK - Select the Minimum API level you want your app to support. When you select a lower API level, your app can't use as many modern Android APIs. However, a larger percentage of Android devices can run your app. The opposite is true when selecting a higher API level.

Here I use API 24 Android 7.0 (Nougat) which support  94.4 % of devices.

6. Click Finish.

After some processing you will navigate to your app like below


👉😊😊There are two file named 

1. MainActivity.kt and 

2. activity_main.xml.
We will discuss about these two files in Our Next Post..........


👉How to import an existing project 

To import an existing local project into Android Studio, proceed as follows:

  1. Click File > New > Import Project. 
In the window that appears, navigate to the root directory of the project you want to import.

     2. Click OK.





👉If you are importing a project from version control, 

Select File > New > Project from Version Control. 





Thanks for reading!😊😊😊😊😊😊
If you enjoyed reading , Show some Love by
 clapping 👏 on this post!
If you have any suggestion share with me.