0% found this document useful (0 votes)
135 views23 pages

Akshat Gupta

Android is an open source operating system for mobile devices like smartphones and tablets. It consists of complex frameworks, middleware and applications. Android is developed by Google and the Open Handset Alliance based on the Linux kernel. It allows developers to write code in Java and uses libraries developed by Google. While most of Android is available under an open source license, hardware manufacturers can customize Android for their devices.

Uploaded by

Akshat Gupta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
135 views23 pages

Akshat Gupta

Android is an open source operating system for mobile devices like smartphones and tablets. It consists of complex frameworks, middleware and applications. Android is developed by Google and the Open Handset Alliance based on the Linux kernel. It allows developers to write code in Java and uses libraries developed by Google. While most of Android is available under an open source license, hardware manufacturers can customize Android for their devices.

Uploaded by

Akshat Gupta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 23

Abstract

Android is a cell product suite that consists of complex framework, middleware


and programs.

Android is the product section and cellular platform based totally at the Linux
framework and advanced via google and the open handset alliance. It allows
engineers to jot down code in a java-like language that uses the java library
created by means of google, however does now not help packages constructed
into the neighbourhood code. The android segment changed into unveiled on
November 5, 2007 with the formation of the open handset alliance, a
consortium of 34 hardware, programming and communications organizations
devoted to developing open guidelines for cell telephones. While it became
launched in 2008, maximum of the android stage become available beneath
apache's unfastened and open source programming license.
Methodology

The period of programming improvement is definitely changing at


momentous rates. Stay aware of the latest things, innovations and strategies.
Subsequently one of the significant strides to be taken prior to beginning
any commitment is to settle on the product improvement strategy. There are
a few programming improvement approaches to look over relying upon the
undertaking objectives, prerequisites, size, timetable, colleagues included,
project the executives instruments utilized, and so on. Application
advancement are step improvement exercises in various has its own
suspicions about the truth, implement control, and its own devices to
produce the expectations for exercises. At the end of the day, there are an
assortment of explicit strategies and devices for a specific improvement
system. search of the writing uncovers that despite the fact that there are
many recommended procedures, instruments, and methods for Web
application advancement.
Chapter – 1
Introduction

1.1 What is an app?

The software is an abbreviation for the phrase "application". An software is a


software program program that may be effortlessly accessed without delay by
way of a person for a selected feature.

1.2 What is an Android?


Android is an open supply operating device for mobile gadgets consisting of
smart phones and capsules and computers. Android affords a comprehensive
technique to software improvement for mobile devices, this means that that
builders need to develop only for android and be capable of run their programs
on a diffusion of devices powered by means of android.
Android was advanced by way of the open handset alliance (oha) led with the
aid of google and other agencies. Android relies frequently on direct
manipulation, the use of touch gestures which can be like minded with real-
international moves. It gives a virtual keyboard for on-display item
manipulation for text input.

1.3 History of Android :

Android changed into named after the nickname of Andy Rubin by using their
co-workers for his love for robot.
Google acquired android incorporation on 17th aug,2005.
Android turned into evolved by the open handset alliance for digicam
smartphone, led via google, and different companies.
But shifted to smart-phones due to low market of cameras at that point. Htc
launches the first android cell.
In 2010, google released its nexus collection of gadgets in smart-telephone
global with android OS.
Chapter – 2
KNOWING ANDROID

We will start our Android application development on any of the following


operating systems.
2.1 Android App Development:-
Android app is a mixture of various source code in a unmarried place whose
action can be done simply via a unmarried touch.
Instance:- think if we need to feature two no’s then we simply have to click
on at the calculator app and enter two no’s and the operand that we need to
perform. It makes our work an awful lot less complicated and this are a great
deal user pleasant.
2.2 Java in Android App Development:-
Java is a programming language that is not compiled into the local processor
code, as a substitute it refers to a digital machine that is aware the intermediate
layout; java byte-code. Each platform that makes use of java to run requires a
virtual tool.
The android app makes use of an android app that runs at the android platform.
It's miles constructed on a custom virtual device, which gives its person more
usability and alertness energy and user friendly environment. The real android
virtual device is known as dolby.

2.3 Android Software Development Kit(Android SDK) :

Applications that amplify device capability use the android sdk and frequently
the java programming language. The sdk consists of a hard and fast of
improvement tools including debugger, software libraries, handset emulator,
pattern code and greater.
Google initially supported the incorporated development environment (ide);
eclipse the usage of android improvement tools (adt) plugins. Other
improvement gear consisting of the native improvement package (ndk) also are
available. Android studio primarily based on shrewd concept, which google
advanced as its primary ide for android application improvement. Android is a
ramification of 1/3-birthday celebration programs that users can get entry to
via downloading and putting in the android application package deal (apk)
document.

2.4 What is API Level ?


The Api level is an integer price that mainly identifies the framework api
revision delivered through version of the android platform.

2.5 Features of Android :


• It is an open source user friendly software
• It has beautiful user interface
• It reduced cost of development
• It has rich development environment inter application integration
• It support single and bi-directional text

2.6 Android Application :

They are generally evolved within the java language the use of the
android.There are numerous android packages that we already recognize and
makes use of them few are music,news,weather,etc.Many android software are
also available at no cost most of them are already to be had in play keep.This
apps are like minded with almost each platform but few are also to be had for
the precise platfo
Chapter – 3
OVERVIEW AND STARTING WITH
ANDROID

3.1 Overview

Android studio software is required in the installation of Android


application. This setup is required for the configuration with RAM less
or more than 4gb: Java JDK5 or JDK6. Download the latest version of
Java JDK and install the JDK and set the environmental path for it.

If you install SDK either on Mac OS or Linux, follow the instruction


and setup the environment path. Launch Android SDK Manager using
option All Program>Android SDK Tools > SDK Manager Eclipse IDE
for Java Developers Check for the version that is compatible with your
device and install it. Or, Android Development Tools (ADT) Eclipse
Plugin. This step will help you in setting Android Development Tool
plugin for Eclipse. Let's start with launching Eclipse and then, choose
Help > Software Updates > Install New Software
3.2 Android Virtual Device

We want a virtual android tool to test our android app. We will create an android
digital tool before we start writing our code. The android running device is a
inventory of software program additives which can be more or less divided into five
sections and four main layers:

• Application
o Within the top layer you will find all of the android apps. You write
to install your software only on this layer
• Application Framework
o Application framework layer gives many excessive-stage services
for programs in the form of java training.
• Libraries
o A set of libraries, together with the open supply internet browser
engine web kit, the famous library Libby, the SQLite database,
and extra.
• Linux Kernel
o At the lowest of the layers is Linux, which affords simple gadget
capability which includes procedure management, memory
management, tool management such as digicam, keypad, display.

3.3 Application Component

Application components are the essential building blocks of an Android


application. These components are loosely coupled by the application
manifest file, i.e.: -
-Android
-Manifest.xml
3.4 Additional Component:
There are additional components which will be used in the
construction of above-mentioned entities, their logic, and wiring
between them. They are:
• Fragments: specify a behavior or a part of the consumer interface in an
interest.
• Views: - UI factors drawn at the display screen such as buttons, listing
bureaucracy, and so on.
• Layout: take a look at the stairs that manipulate the shape of the display
and the appearance of the perspectives
• Purpose: - message wiring additives together.
• Assets: outside elements together with strings, constants and drawable
pix
• Manifest: - configuration file for the software.

3.5 Creating our first android app : Displaying “Hello World” :


The first step is to create a simple Android Application using Android
Studio. Follow the option File -> New -> New Project ->Enter
application name in the pop-up window. Then select an Empty
activity->next->Activity name->Finish.
Fig. 3.1 Creating Activity

Java coding for hello world: MainActivity.java


1) MainActivity.java file
Fig. 3.2 File extension for MainActivity is activity_main.xml
Result on the Android Virtual Device is:

Fig. 3.3 Android Virtual Device Showing result


Chapter – 4
SOME INPORTANT CONCEPTS IN ANDROID
Before going to project that I made we need to know some basic concept of
Android for better understanding.
Since every project that we do in android studio must contain this file: -
.java file
.xml file
Android Manifest

4.1 .javaFile :
This file include all the codes and logic written in it. We can open it in
the android project -> app -> java ->
com.example.username.filename -> MainActivity.java . When we run our
program methods that are called:
- onCreate(Bundle) :- It is used to initialize our activity.
- setContentView(int) :- It is a layout resource defining our User Interface.

4.2 .xmlFile :
We can find all the elements or the tools that we want to use in our project. It
has two different layouts i.e.; a coding layout where we can code for our
required elements needed like buttons, text views, etc.
4.3 Manifest File:

Every application must have an AndroidManifest.xml file in its root directory.


It provides an essential information about app to the android system.It provides
us the information about the permission that we hav given the app to access
our device. Number of activities we have use in our app

4.4 Android UI Widgets:

A widget is a simple application extension that is often part of a larger


application that are already inbuilt. It comes in all shapes and sizes, and are
customizable and are available for quick access.

4.5 Some of UI Widget are:


• Spinner: Android Spinner is like the drop-down box of AWT or Swing.
It can be used to display the multiple options to the user in which only
one item can be selected. Android Spinner class is the subclass of
AsbSpinner class.

• CheckBox : Android CheckBox class is also the subclass


of CompoundButton class. Android CheckBox can be
either checked or unchecked. We can use more no. of
CheckBox.

Many Android application uses our device component such as camera,


Bluetooth,etc. For that all we have to give special permission in the manifest
file.
4.6 Permission given:

In the manifest file we give the following permission to the application to


access the hardware component i.e; camera :
<uses-feature android:name="android.hardware.Camera"/>
<uses-permission android:name="android.permission.CAMERA" />
After giving permission to the app we also have to give the special permission
to the app through our device to the location ,
Setting -> apps -> open app -> permission -> camera allow -> close setting.
4.7 EXAMPLE
It consist of seekbar that control volume and a button that give instruction about
the project.
4.7.1 AUDIO AND VIDEO RECORDING
4.7 Methods and function :

As many of the topic has been mention in my project frequently. So to know


more about the topic it has been declared within below :

• onClickListener :- onClickListener is used to assign a button what to


do on clicking using button.setOnClickListener(new onClickListener)
in the activities onCreate - method.

• Intents :- Intents are objects of the android.content.Intent type.It can


be started using startActivity( ) method. It is used to move one activity
to another .It contain the data via a Bundle.

• Syntax :- Toast.makeText(Context context,CharSequence text,int


duration).show( );
CONCLUSION

After completing this project, I concluded that this project was the good
opportunity to implement my information that I have learnt during my
internship program. This undertaking is greater informative and more helpful
for knowledge the concept of the android app development. This challenge is
handiest a small and smooth one however it's miles enough to enforce my idea.
I will in addition strive a great deal tougher to make a great deal more green
and useful app which could advantage to other.

Bibliography

Following are the links from which all the information have been taken :
• https://developer.android.com/training/basics/index.html
• https://developer.android.com/training/basics/concept/creating-
project.html
• http://www.hiddenbrains.com/android-application-development.html
• http://www.letsnurture.com/services/mobile/android-mobile-
application-development.html
• https://www.tutorialspoint.com/android/

You might also like