View
140
Download
5
Embed Size (px)
Citation preview
Android Native Programming
Introduction
Learning Android opens many
opportunities!
Requirements
1. A little background in programming
2. Computer (PC or Mac) with at least an i5 processor.
3. Install Android Studio.
Development
Building Blocks of an Android Application
Activity
Views
Intents
Services
Content Provider
Broadcast Receiver
Required / must have
in any android app
Development
Android Package (APK) file
Android apps are written in the Java programming language.
The Android SDK tools compile your code—along with any
data and resource files—into an APK: an Android package,
which is an archive file with an .apk suffix.
APK file contains all the contents of an Android app and is
the file that Android-powered devices use to install the app.
Development
Activity
Represents a single screen with a user interface.
Each android app should have at least 1 Activity.
Listing
of Friends
View
ProfileChat
Example of Activities in a Messenger app.
Development
View / ViewGroup
Represents the USER INTERFACE in an android app.
A View draws something on the screen that the user interacts.
A ViewGroup contains other Views and ViewGroups. A
collection of UI elements which conforms to its rules on how the
elements within are displayed on the screen.
Example: LinearLayout vs. RelativeLayout
Development
Intent
An abstract description of the operation to be performed.
Navigate from one activity to another activity.
Transfer or pass data between activities and; much more.
Development
first Android app
1. Click “Android Studio” icon to
open the editor.
2. Click “Start a new Android Studio
project”.
For android coding tutorials
Go to my Android Studio channel
at Youtube, click here.