Top Banner
Introduction to Android Murat AYDIN STM - GDG Ankara
37
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Introduction to Android

Introduction to AndroidMurat AYDIN

STM-GDG Ankara

Page 2: Introduction to Android

About Me

• Android Developer and blogger in his free time

www.ottodroid.net

• Senior Software Developer at work

• GDG Ankara member

www.gdgankara.org www.androiddeveloperdays.com

• Author

Page 3: Introduction to Android

www.androiddeveloperdays.com

Page 4: Introduction to Android

History

• Android Inc. founded by Nick SEARS, Andy RUBIN, Rich

MINER, Chris WHITE in 2003

• Google acquired Android Inc. in 2005

• OHA (Open Handset Alliance) consortioum was formed in

2007

• Android Beta SDK Released 2007

Page 5: Introduction to Android
Page 6: Introduction to Android

Market Share

Page 7: Introduction to Android

Android Versions

Page 8: Introduction to Android

Android Dashboardhttps://developer.android.com/about/dashboards/index.html

Page 9: Introduction to Android

Android Where?

• Smartphones

• Wearables

• TV

• Auto

Page 10: Introduction to Android
Page 11: Introduction to Android
Page 12: Introduction to Android

ART

• AOT VS JIT

• Performance

• Battery Life

Page 13: Introduction to Android

Choose Your IDE

Page 14: Introduction to Android

Source

• developer.android.com

• androidweekly.net

Page 15: Introduction to Android

What is the difficulty?

Page 16: Introduction to Android

How?

• Supporting different languages

• Supporting different screens

• Supporting different versions

• Use Android Support Library

Page 17: Introduction to Android

Every screen is generally an Activity

Page 18: Introduction to Android

There are many Activities in an App

Page 19: Introduction to Android

A Sample Activity

Page 20: Introduction to Android

Activity Life Cycle

Page 21: Introduction to Android

Screen Designs by Layout XML Files

Page 22: Introduction to Android

Intents are used for starting an Activity

Page 23: Introduction to Android

You can also call predefined functionalities with Intents

Page 24: Introduction to Android

AndroidManifest.xml

• Package Name

• Activities

• Intents

• Permissions

• App versions

• App target and minimum SDK

• …

Page 25: Introduction to Android

Sample AndroidManifest.xml

Page 26: Introduction to Android

Permissions

Page 27: Introduction to Android

Resources

• Animations res/anim

• Colors res/color

• Drawables res/drawable

• Layouts res/layout

• Menu res/menu

• Strings res/values

• Styles res/values

Page 28: Introduction to Android

Layouts

Page 29: Introduction to Android

Shared Preferences

Page 30: Introduction to Android

Background Jobs

Page 31: Introduction to Android
Page 32: Introduction to Android

Logcat

Page 33: Introduction to Android
Page 34: Introduction to Android

Gradle

Page 35: Introduction to Android

Proguard

• Shrinking

• Optimization

• Obfuscation

Page 36: Introduction to Android

What Else?

• BroadcastReceivers

• Services

• SQLite

• Media

• Location

• Sensors

• App Widgets

Page 37: Introduction to Android

Questions?

[email protected]

• @maydintr

• +MuratAydin