10
Android Native Programming Introduction Learning Android opens many opportunities!

Android Native Programming Introduction

Embed Size (px)

Citation preview

Page 1: Android Native Programming Introduction

Android Native Programming

Introduction

Learning Android opens many

opportunities!

Page 2: Android Native Programming Introduction

Requirements

1. A little background in programming

2. Computer (PC or Mac) with at least an i5 processor.

3. Install Android Studio.

Page 3: Android Native Programming Introduction
Page 4: Android Native Programming Introduction

Development

Building Blocks of an Android Application

Activity

Views

Intents

Services

Content Provider

Broadcast Receiver

Required / must have

in any android app

Page 5: Android Native Programming Introduction

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.

Page 6: Android Native Programming Introduction

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.

Page 7: Android Native Programming Introduction

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

Page 8: Android Native Programming Introduction

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.

Page 9: Android Native Programming Introduction

Development

first Android app

1. Click “Android Studio” icon to

open the editor.

2. Click “Start a new Android Studio

project”.