How to create Android project
First Download and Install Android studio before getting started with these Android Tutorials.
Once you have installed Android Studio follow below steps to guide you.
Once you have installed Android Studio follow below steps to guide you.
Creating Android project
Double Click Android Studio to start it.
1.Double click to open android studio and click Start a new Android Studio project.
2.Once the project opens, Click File>New project.
3.In the screen that appears fill your application name and domain of the company.The studio will fill your project location etc.step you, but you can also edit the details.
4.Click Next. Target Android devices leave them default step you
5.This is required to add application Activity.Just select on Empty activity and click next
6.Don’t customize the activity.Leave it blank and click Finish.
Project Files
1.app > java > com.example.myfirstapp > MainActivity.java
This file has the class definition of the activity you just created.This file loads the layout when the application builds and runs.
2.app > res > layout > activity_main.xml
This file contains elements that have been added in the layout.For example in Hello word application, a TextView element which contains “Hello World” string is defined by this file.
3.app > manifests > AndroidManifest.xml
Application characteristics and its component are described in this file.
4.Gradle Scripts > build.gradle
Gradle is used by android studio to compile and build all the applications