0% found this document useful (0 votes)
68 views12 pages

Csi 601

Uploaded by

Eman Fatima
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)
68 views12 pages

Csi 601

Uploaded by

Eman Fatima
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/ 12

CSI-601

Mobile App & Development

 What is Android
 History
 Features
 Components of Android Application
What is Android?

• Android is a mobile operating system (OS) developed by Google that runs on devices like
smartphones, tablets, watches, TVs, and cars. It's based on the Linux kernel and is open-source,
which means that many variations of the OS can be developed for other devices. 1st android was
sold in October 2008.
A Brief History…

• The history of Android began in 2003, (Android Inc.) in California. Initially, Android was
developed as an operating system for digital cameras, but the focus quickly shifted to smartphones
due to the growing market potential.
• In 2005, Google acquired Android Inc. and began developing it as an open-source, Linux-based
operating system for mobile devices.
• The first Android-powered smartphone, was released in 2008.
• Due to flexibility and customization, it quickly became the world's most popular mobile OS.
Versions (like Cupcake, Donut, and KitKat).
Features
o Multi-touch
o Multi-tasking
o Banking
o Smart watch
o Open source
o Social media
o Increased marketing
o Large developer & community users
Anatomy-Components of Android
Application
• An Android application is made up of several key components, each serving a distinct function
within the app's structure. Understanding the anatomy of an Android application involves knowing
these essential components:

o Activity
o Services
o Broadcast Receiver
o Content Provider
1. Activity

• An activity represents a single screen with a user interface, in-short Activity performs actions on
the screen.
• An activity is implemented as a subclass of Activity class as follows −

• Public class MainActivity extends activity{


}

• MainActivity: This is a user-defined class.


• Activity: This is a class in the Android framework that represents a single screen in an app.
2. Services

• Services perform background tasks without a user interface. They can run even if the user is not
actively interacting with the app.
Types:
• Foreground services (for tasks the user is aware of, like music playback)
• Background services (for tasks running in the background)
• Bound services (that are bound to other components)

• public class MyService extends Service {
}
3. Broadcast Receiver
• Broadcast Receiver simply responds to Broadcast messages from other applications or from
system.
• They don’t display UI but can create notifications or trigger other components to perform specific
actions.
• public class MyReceiver extends BroadcastReceiver {
public void onReceive(context,intent){}
}
4. Content Provider

• A content provider component supplies data from one application to others on request. Such
requests are handled by the methods of the ContentResolver class.
• A content provider is implemented as a subclass of ContentProvider class

• public class MyContentProvider extends ContentProvider {


public void onCreate(){}
}
Others…

You might also like