Prepared By:- Tech Altum
Start Android Studio and choose option Start a new Android Studio Project. Give a proper name to the application the domain (it can be anything).
Click on next and you will get the following window. In this window you can choose the devices in which you want to run your app. For this tutorial I am selection mobile and tablet. We have to choose the minimum SDK Version.
After pressing next you will get following window to choose activity. As I already explained in my last article activity is the screen or UI for android. So we need to choose the screen. For the initial stage we will choose the blank activity to work.
After pressing next you will get the following window. Every Activity is associated with two files i.e your java file and your xml file. Activity name is the java file name and layout name is your xml file name. menu_main is our android menu name which is stored inside the menu folder in res.
And click on the finish. After completing the wizard you will get your android project.
You can see two main areas these are app and Gradle Scripts. Gradle is the build tool for android application. When we add new android projects these scrips are added automatically.If you expand the app then you will find the following files
Manifests: - every android app must have AndroidManifests xml files in its root directory. It contains the permissions and component used in the app.
Java: - in this folder we have all the java files of activities and unit testing files. Res: - res is our resources folder. It contains others files like images, videos, xml etc.
Now click on run button on top or press shift+F10 and launch the emulator
Now click ok and your app will be get executed in the following emulator.