Android Day 1
Android Day 1
Android Day 1
What is database?
What is data structure?
What is OS?
Installation done?
STACKOVERFLOW
OOPS
PIA
ANDROID
What is Android
Android Architecture
1) Linux kernel
2) Native Libraries
3) Android Runtime
4) Android Framework
What is IDE?
Benefits
1. Activity
2. Services
3. Broadcast Receiver
4. Content Provider
Examples?????
1. Activity
What is activity?
So called definition
An activity is a class that represents a single
screen. An activity is a single, focused thing that the
user can do. Almost all activities interact with the user,
so the Activity class takes care of creating a window for
you in which you can place your UI .
Activity Lifecycle
Activities in the system are managed as an activity stack. When
a new activity is started, it is placed on the top of the stack and
becomes the running activity -- the previous activity always
remains below it in the stack, and will not come to the
foreground again until the new activity exits.
1. Running
• If an activity is in the foreground of the screen (at the top
of the stack), it is active or running.
2. Paused
If an activity has lost focus but is still visible (that is, a new non-
full-sized or transparent activity has focus on top of your
activity), it is paused.
3. Stopped
4. Killed
• If an activity is paused or stopped, the system can drop
the activity from memory by either asking it to finish, or
simply killing its process. When it is displayed again to the
user, it must be completely restarted and restored to its
previous state.
EOD