Create an Android Project : Android Training in Chandigarh
PreviousNext
You should also read
- Projects Overview
This lesson prove you how to generate a new Android project with Android Studio and describes some of the files in the project.
Let us understand about android project with android training in chandigarh.
Let us understand about android project with android training in chandigarh.
- In the Welcome to Android Studio window, click Start a new Android Studio project.Or if you have a project opened, select File > New Project.
- In the Create New Project window, enter the specified values:
- Application Name: "My First App"
- Company Domain: "example.com"
You might want to change the project location. Also, if you want to write a Kotlin app, check the Include Kotlin support checkbox. Leave the other options as they are. - Click Next.
- In the objective Android Devices screen, keep the imperfect values and click Next.
- In the Add an Activity to Mobile screen, select Empty Activity and click Next.
- In the Configure Activity screen, keep the default values and click Finish.
After some processing, Android Studio opens the IDE.
Now take a moment to review the most important files.
First, be sure the Project window is open (select View > Tool Windows > Project) and the Android view is seen from the drop-down list at the top of that window. You can then see the specified files:
- app > java > com.example.myfirstapp > MainActivity
- This is the main activity (the entry point for your app). When you build and run the app, the system launches an instance of this
Activity
and loads its layout. - app > res > layout > activity_main.xml
- This XML file defines the layout for the activity's UI. It involve a
TextView
element with the text "Hello world!". - app > manifests > AndroidManifest.xml
- The manifest file specify the major responsibilities of the app and defines each of its factors.
- Gradle Scripts > build.gradle
- You'll see two files with this name: one for the project and one for the "app" module. Each segment has its own
build.gradle
file, but this project currently has just one module. You'll mostly work with the module'sbuild.gradle
file to configure how the Gradle tools compile and build your app. For more information about this file, see Configure Your Build.
In the next segment of Android training in Chandigarh we will read more about the creation of android project.
0 comments:
Post a Comment
Note: only a member of this blog may post a comment.