Mobile Final
Mobile Final
Application Types
What is an Activity?
Chapter 3 part 1
VIEWS (INPUT CONTROLS/ WIDGETS)
Status bar notification: is a brief visual alert displayed in the status bar of a
device, providing users with information or updates from an application even
when it's not actively in use.
Example Whatsapp: when you receive a new message, a status bar notification
appears at the top of your phone screen. It typically includes the sender's name
and a snippet of the message, allowing you to quickly see and access the new
message without opening the app.
fi
fi
Chapter 4
Where can save store the data?
• Shared Preferences
• Bundles
• Local files
• Local database (SQLite)
• Remote database
Saving UI State:
Activity should save its user interface state each time it moves to the
background..
• Required due to OS killing processes..
• Even if you think your app will be in the foreground all the
time, you need to do this, because of....
- Phone calls
- Other apps
- The nature of mobile use
Android sensors are virtual devices that provide data coming from a set of
physical sensors:
• accelerometers - vibration, or acceleration of motion
• gyroscopes - orientation and angular velocity
• magnetometers - magnetic field
• barometer - atmospheric pressure
• humidity,
• pressure,
• light,
• proximity,
• heart rate sensors.
fi
Android Sensors Categories:
Chapter 7
Explain the Types of Android Location Access:
• This system consists of three segments: the space segment, the control
segment, and the user segment.
• The GPS user segment consists of the GPS receiver equipment, which
receives the signals from the satellites and uses the transmitted information to
calculate the users three- dimensional position and time.
•
Location Based Services:
Examples:
• Locate the nearest bank, restaurant, gas station, hotel, golf course, hospital,
police station, etc.
• Provide transportation information on how to go from ‘here’ to ‘there’.
• Social networking is used to locate and reach events, friends and family
members.