Android rjd3
Android rjd3
Problem Statement: Build the First Android Application Hello World to understand the
basics of Android.
Objectives: Student should be able to design their own UI for android application using
XML
Hardware requirements: A 64-bit environment, At least 250GB of free disk space, Memory
of 4 GB RAM or more
Software requirements: Android SDK tools 22.0.5, Java Runtime Environment 1.6, Java
SE JDK v6.0, Android Studio
Theory:
The first step is to create a simple Android Application using Android studio.
When you click on Android studio icon, it will show screen as shown below
You can start your application development by calling start a new android studio
project. in a new installation frame should ask Application name, package
information and location of the project.−
After entered application name, it going to be called select the form factors your
application runs on, here need to specify Minimum SDK, in our tutorial, I have
declared as API23: Android 6.0(Mashmallow) –
The next level of installation should contain selecting the activity to mobile, it
specifies the default layout for Applications.
At the final stage it going to be open development tool to write the application
code.
Anatomy of Android Application
Before you run your app, you should be aware of a few directories and
files in the Android project –
Java
1 This contains the .java source files for your project. By default, it
includes an MainActivity.java source file having an activity class
that runs when your app is launched using the app icon.
res/drawable-hdpi
2 This is a directory for drawable objects that are designed for high-
density screens.
res/layout
3
This is a directory for files that define your app's user interface.
res/values
4
This is a directory for other various XML files that contain a
collection of resources, such as strings and colours definitions.
AndroidManifest.xml
5 This is the manifest file which describes the fundamental
characteristics of the app and defines each of its components.
Build.gradle
Conclusion: