android fundamental

25
mBEDAH Buku 24JAM!! Pintar Pemrograman Android AKAKOM #Jogja | 21/3/13

Upload: arif-akbarul

Post on 25-Apr-2015

2.288 views

Category:

Technology


1 download

DESCRIPTION

Android fundamental, slide presentasi dalam acara bedah buku "24JAM!! Pintar Pemrograman Android" di STMIK AKAKOM Yogyakarta

TRANSCRIPT

Page 1: Android Fundamental

mBEDAH Buku24JAM!! Pintar Pemrograman Android

AKAKOM #Jogja | 21/3/13

Page 2: Android Fundamental

@omayib

[email protected]

Facebook.com/omayib

2971F7CB

[email protected]

[email protected]

Arif Akbarul HudaPenulis | Freelance Programmer | Trainer

Page 3: Android Fundamental

Promo …

Page 4: Android Fundamental

Promo …

www.omayib.com www.indocode.net

Page 5: Android Fundamental

Promo …

www.omayib.com

Page 6: Android Fundamental

www.omayib.com

Promo …

www.indocode.net

Page 7: Android Fundamental

*Lets begin

Page 8: Android Fundamental

Version & Target Device…

Page 9: Android Fundamental

Version & Target Device…

Page 10: Android Fundamental

Komponen Android

Activity Views Intent

Broadcastreceiv

erService Content

provider

Komponen android…

Page 11: Android Fundamental

activity

Acvitivy

“User interface yang bisa digunakan untuk berinteraksi antara user dengan aplikasi”

Komponen android…

Page 12: Android Fundamental

views

views

basic building block for user interface components

 a rectangular area on the screen and is responsible for drawing and event handling

Example Button, EditText, Listview,CalendarView,Checkbox,ImageView,TextView etc

Komponen android…

Page 13: Android Fundamental

intent

intent

• a facility for late run-time binding between components in the same or different applications

• Example 1 : from Login page to dashboard page

• Example 2: from whatsapp -> activating camera

Komponen android…

Page 14: Android Fundamental

BroadcastReceiver

BroadcastReceiver

• a component that responds to system-wide broadcast announcements

• Example 1 : Batteray low• Example 2 : screen has turned off• Example 3 : picture was captured

Komponen android…

Page 15: Android Fundamental

Service

Service

• a component that runs in the background to perform long-running operations or to perform work for remote processes

• No need User Interface• Example 1 : music player• Example 2 : Tweeter App when

fetching new tweet• Example 3 : perform file I/O

Komponen android…

Page 16: Android Fundamental

Content Provider

Content Provider

• A content provider manages a shared set of application data

• No need User Interface• Example 1 : manage User Contact• Example 2 : manage SQLite

database

Komponen android…

Page 17: Android Fundamental

DDMS android…

Page 18: Android Fundamental

DDMS android…

Page 19: Android Fundamental

Lifecycleapp (DEMO)

Lifecycle App android…

Page 20: Android Fundamental

Multiple screen

Supporting different device

Multiple Screen

Page 21: Android Fundamental

layout

DRAG & DROP !

Page 22: Android Fundamental

Tips bikin layout

Komponen Properti value

RelativeLayout

Layout_width Match_parent

Layout_height Match_parent

backgorund #ff0000

Textview id textView2

Layout_width Wrap_content

Layout_height Wrap_content

text username

EditText id inUser

Layout_width Wrap_content

Layout_height Wrap_content

...

layout

Klik Kanan > Properties

Page 23: Android Fundamental

Tips clientserver

layout

Page 24: Android Fundamental

Client Server

Asyntaks

AsyncTask enables proper and easy use of the UI thread. This class allows to perform background operations and publish results on the UI thread without having to manipulate threads and/or handlers.

no Asyntaks vs asyntaks

process process

time time

p1p1

p2

Page 25: Android Fundamental

Push Notification