The main objective of this tutorial is how to create a new project in Android Studio. And this tutorial is for those who are new to Android Studio.
To create a new project perform the following steps:
Step 1: Start and configure the project:
Firstly, open the Android Studio. You will see “Welcome to Android Studio” on your computer screen. After that you click on “Start a new Android Studio project”.
If you do have a project opened, click File > New > New Project.
After that you will see “Create Android Project” on your computer screen. Here enter the “Application name” , the “Company Domain” ( Company domain is used to uniquely identify the App. So two App with same Application name will have different company domain. e.g. I used here “sanikamal.ruatech.com”)and the project location in the text box and then Click Next button. If you want to use C++ and/or Kotlin code in your project, check the corresponding checkboxes to set up your project accordingly. You can always add C++ code and add Kotlin code later.
Step 2: Select form factors and API level:
After that you will see “Target Android Devices” on your computer screen and select the form factors your app will be run on. Select “Phone and Tablet” field and enter the “Minimum SDK” in the text box and then Click Next button. When you select Minimum SDK, Android studio will give you some active android devices percentage that will support your android application. Otherwise, you can also click on “Help me choose” button for more information about android platform versions.
Step 3: Add an activity:
This screen suggests you “Add an Activity to Mobile” first. If you don’t want to add any activity at starting, you can select Add no activity option. We selected Empty Activity.
If you have selected Phone and Tablet in option in the last screen then it will display the only phone related suggestions.
For example, select Google Maps Activity for google map project, Login Activity for User Login project etc.
Step 4: Configure your activity:
Here, you can customize your selected activity. You can change your Activity name from here. Enter the “Activity Name” in the text box and enter the “Layout Name” in the text box and then Click Finish button.
Activity Name – Name of JAVA file for programming
Layout Name – Name of XML file for designing UI
Android Studio now sets up your project and opens the IDE.
I hope you find this blog post very helpful while creating Android Project in Android Studio. Let me know in a comment if you have any questions regarding Android Studio. I will reply you ASAP.