How do I start with Android Studio? What are the requirements
Android Studio is a powerful IDE which is used to develop applications for Google’s Android Operating System. It is completely free to use. This is a link you can know a lot of things about Android Studio. Start from building small apps and run it on your device. If you know either Java (or) Kotlin language it is easy to build applications.
- Minimum: 4GB Ram
- Screen Resolution: 1280 x 800
- Disk Space: 4GB Recommended
Steps to Android App With Android Studio
Start a new project (Android App With Android Studio)
Android Studio makes it easy to create Android apps for various form factors, such as phone, tablet, TV, Wear, and Google Glass. The New Project wizard lets you choose the form factors for your app and populates the project structure with everything you need to get started. Use the following steps to create a new project.
Step 1: Start and configure the project
If you didn’t have a project opened, Android Studio shows the Welcome screen. To create a new project, click Start a New Android Studio project.
If you had a project opened, Android Studio shows the development environment. To create a new project, click File > New > New Project.
The next window lets you configure the name of your app, the package name, and the location of your project.
Figure 1. The Configure your new project screen.
Enter the values for your project then click Next.
Step 2: Select form factors and API level
The next window lets you select the form factors supported by your app, such as phone, tablet, TV, Wear, and Google Glass. The selected form factors become the app modules within the project. For each form factor, you can also select the API Level for that app. To get more information, click Help me choose.
Figure 2. Chart of the current Android version distributions, shown when you click Help me choose.
The Android Platform Distribution window shows the distribution of mobile devices running each version of Android, as shown in figure 2. Click on an API level to see a list of features introduced in the corresponding version of Android. This helps you choose the minimum API Level that has all the features that your apps needs, so you can reach as many devices as possible. Then click OK.
Figure 3. The Target Android Devices screen.
Then, on the Target Android Devices window, once you’ve selected your form factors and API versions, click Next.
Step 3: Add an activity
The next screen lets you select an activity type to add to your app, as shown in figure 4. This screen displays a different set of activities for each of the form factors you selected earlier.
Figure 4. The Add an Activity screen for a mobile form factor.
Choose an activity type then click Next.
Note: If you choose “Add No Activity,” click Finish to create the project.
Step 4: Configure your activity
The next screen lets you configure the activity to add to your app, as shown in figure 5.
Figure 5. The Customize the Activity screen.
Enter the activity name, the layout name, and the activity title. Then click Finish.
Step 5: Develop your app
Android Studio creates the default structure for your project and opens the development environment. If your app supports more than one form factor, Android Studio creates a module folder with complete source files for each of them as shown in figure 6.
Figure 6. Project structure for a newly created app.
Import an existing project
To import an existing project into Android Studio, proceed as follows:
- Click File > New > Import Project.
- In the Select Eclipse or Gradle Project to Import window that appears, navigate to the root directory of the project you want to import.
- Click OK.
Android Studio then opens the project in a new IDE window.
If you are importing a project from version control, use the File > New > Project from Version Control menu. For more information about importing projects from version control.