Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
The Android Architecture
Search
မျိုးလွင်ဦး
July 09, 2019
Programming
160
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
The Android Architecture
Slides for DroidYangon2019
မျိုးလွင်ဦး
July 09, 2019
Transcript
18 slides
The Android Architecture @myolwin00
Why do we need this?
Separation of concerns(SoC) • Don’t write all your code in
an Activity or a Fragment • Separate into sections • Encapsulate informations
Issues • Limited resource • UI controllers are not for
business logic • You don't own implementations of Activity and Fragment • Destroyed after configuration changes • Potential memory leaks • Hard to test • Hard to maintain • And extending your app is more difficult
If you shouldn't use app components to store app data
and state, how should you design your app?
Clean Architecture, Chapter 15 “A good software architecture allows the
system to be easy to understand, to develop, to maintain and to implement.”
Common Architectures • MVC • MVP • MVVM • MVI,
Clean Architecture and more…
Model-View-Controller(MVC)
• Describe business logic • Data operation • Define data
manipulation Model • Represent UI components • Display the data from Controller View • Coordinate between View and Model Controller
MVP(Model-View-Presenter)
MVVM(Model-View-ViewModel)
Loaders • AsyncTaskLoader • CursorLoader
Loaders
MVVM with AAC Source: https://developer.android.com/jetpack/docs/guide
ViewModel From AAC • Replace loaders • Manage UI-related data
in a lifecycle conscious way • Survive configuration changes
ViewModel Lifecycle
Useful links • https://github.com/googlesamples/android-architecture • https://github.com/googlesamples/android- architecture-components • https://developer.android.com/jetpack/docs/guide
Thank You ! It’s question time ! @myolwin00
More Decks by မျိုးလွင်ဦး
See All by မျိုးလွင်ဦး
Android Media3: The Next Generation of Media Playback on Android
myolwin00
1
340
Whats new in Android Media?
myolwin00
2
360
MasteringDaggerWithHiltOnAndroid
myolwin00
0
210
BritishUniversityCollegeEventSlides.pdf
myolwin00
0
52
Road to become an Android Developer
myolwin00
1
380
Other Decks in Programming
See All in Programming
Getting Started with Vibe Coding
miccheng
0
250
Engineering Biometric UX Across Android Versions | DroidKnights 2026
ryunen344
1
220
そのデザイントークン、Flutterでも同じ見た目になりますか?
nakamizu
0
490
Crash Auto Pipelines
veronikapj
1
450
How SRE Grew Out of Server-Side Work and Became the Team's Own / サーバサイドから始まったSREを チームに渡すまで
maaaato
1
370
数行の変更でDockerビルドを最大91%高速化~GitLab CIの実行基盤を社内40リポジトリに展開するまで~
picopico
3
1.1k
[DroidKnights 2026] Workflow AX: From Auto-Documented Policies to E2E Testing
raeminkang
0
610
例外からRich Errorsまで Kotlinエラーハンドリングの進化を読み解く
shiita0903
0
250
Rails初心者がパスキーを実装してみて大変だったこと
ktombow
0
240
Debian JP Projectのサーバー構成
uwabami
1
190
Stage 3でも仕様は変わる。アプリケーション開発者のためのTC39プロセスの読み方
bicstone
1
1k
Kotlin Fest 2026: Kotlin コンパイラに Contribute してみよう! - Kotlin/Wasm で深い再帰を書けるようにした話
ternbusty
1
430
Featured
See All Featured
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
340
It's Worth the Effort
3n
188
30k
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
2
3k
4 Signs Your Business is Dying
shpigford
187
23k
The untapped power of vector embeddings
frankvandijk
2
2k
Chasing Engaging Ingredients in Design
codingconduct
0
410
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
18k
Paper Plane (Part 1)
katiecoart
PRO
3
12k
エンジニアに許された特別な時間の終わり
watany
109
250k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
390
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
440
Building AI with AI
inesmontani
PRO
1
1.4k