Unit1 (Mad)
Unit1 (Mad)
HTC G1,
Droid, Motorola Droid (X)
Tattoo
➢Compilation
Compiled in Java
Linux OS
✓ Network Stack
✓ Drivers
✓ Security
Click on Save file button in the appeared prompt box and the file will start
downloading .
Click on next .
In the next prompt it’ll ask for a path for installation. Choose a path and hit next.
Note :The installation path should have the required minimum space.
Click on Finish .
First, be sure the Project window is open (select View > Tool Windows >
Project) and the Android view is selected from the drop-down list at the
top of that window.
You can then see the following files:
app > java > com.example.myfirstapp > MainActivityThis is the main
activity. It's the entry point for your app. When you build and run your app,
the system launches an instance of this Activity and loads its layout.
app > res > layout > activity_main.xmlThis XML file defines the layout for
the activity's user interface (UI). It contains a TextView element with the
text "Hello, World!"
Introduction to This work is licensed under a Creative
Android Developer Fundamentals Commons Attribution-NonCommercial 52
Android
4.0 International License
First Android Application:
app > manifests > AndroidManifest.xmlThe manifest file describes the
fundamental characteristics of the app and defines each of its
components.
Gradle Scripts > build.gradleThere are two files with this name: one for
the project, "Project: My First App," and one for the app module, "Module:
app." Each module has its own build.gradle file, but this project currently
has just one module. Use each module's build.file to control how
the Gradle plugin builds your app. For more information about this file,
see Configure your build.
This folder will contain a manifest file (AndroidManifest.xml) for our android
application.
This manifest file will contain information about our application such as android
version, access permissions, metadata, etc. of our application and its components.
The manifest file will act as an intermediate between android OS and our
application.
v. Permissions:
Android apps must request permission to access sensitive user data (such as contacts
and SMS) or certain system features (such as the camera and internet access). Each
permission is identified by a unique label.
...
}
}
Introduction to This work is licensed under a Creative
Android Developer Fundamentals Commons Attribution-NonCommercial 71
Android
4.0 International License
Android Manifest file
File conventions:This section describes the conventions and rules that
generally apply to all elements and attributes in the manifest file.
Except for some attributes of the root <manifest> element, all attribute names
begin with an android: prefix. For example, android:alwaysRetainTaskState
<!-- Beware that these values are overridden by the build.gradle file -->
Introduction to This work is licensed under a Creative
<uses-sdk android:minSdkVersion="15"
Android Developer Fundamentals android:targetSdkVersion="26"
Android
/>
Commons Attribution-NonCommercial 74
4.0 International License
Android Manifest file
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">