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
Basics of Android MVP
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Dinkar Kumar
May 29, 2018
Technology
41
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Basics of Android MVP
Dinkar Kumar
May 29, 2018
Other Decks in Technology
See All in Technology
日本語に強いオープンな大規模言語モデル「LLM-jp」
odashi
4
1.1k
パッチ更新でterraform initが落ちた日
grimoh
1
140
WasmをRustにする
sansantech
PRO
0
250
触りたくないデータに、どう触るか AI時代のRBACアクセスガバナンス
ivry_presentationmaterials
0
260
会社説明資料
persolserverworks
0
9.8k
Claude の新機能を、 出た日に触って社内に届けるまで
rfdnxbro
1
180
Benchmarking Disaggregated Serving on vLLM + Dynamo with a Real Coding-Agent Workload
nttcom
1
190
Optunaの最新リリースv5.0について
pfn
PRO
0
120
『SAR衛星データ解析入門』のご紹介とその応用
syuchimu
0
120
その Valkey 使いこなしていますか?
onk
PRO
5
1.5k
しろおびから始める!ログ活用の第一歩
shumei_ito
0
950
脆弱性診断って、何をしているの? 〜弱点を見つけて、会社の改善につなげるまで〜
keeg
0
920
Featured
See All Featured
Product Roadmaps are Hard
iamctodd
55
13k
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
2
2.2k
A designer walks into a library…
pauljervisheath
211
25k
WENDY [Excerpt]
tessaabrams
14
40k
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
540
Color Theory Basics | Prateek | Gurzu
gurzu
1
490
Faster Mobile Websites
deanohume
310
32k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
3
1.3k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
50
10k
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
890
Build your cross-platform service in a week with App Engine
jlugia
234
19k
Art, The Web, and Tiny UX
lynnandtonic
304
22k
Transcript
Copyright ©2016 Talentica Software (I) Pvt Ltd. All rights reserved.
C2M - Mobile App Architecture Android & iOS - Dinkar Kumar - Suyash Gupta
Copyright © 2016 Talentica Software (I) Pvt Ltd. All rights
reserved. Copyright ©2016 Talentica Software (I) Pvt Ltd. All rights reserved. 2 Agenda • Basics of MVP • Responsibilities of each layer • Implementing MVP in android apps • Demo • How it addresses separation of concerns and testability
Copyright © 2016 Talentica Software (I) Pvt Ltd. All rights
reserved. Copyright ©2016 Talentica Software (I) Pvt Ltd. All rights reserved. 3 Why any architectural pattern • Modular • Testable • Maintainable • Separation of concern • Documentable
Copyright © 2016 Talentica Software (I) Pvt Ltd. All rights
reserved. Copyright ©2016 Talentica Software (I) Pvt Ltd. All rights reserved. 4 MVP • Model: It is responsible for handling the data part of the application. • View: It is responsible for laying out the views with specific data on the screen. • Presenter: It is a bridge that connects a Model and a View. It also acts as an instructor to the View.
Copyright © 2016 Talentica Software (I) Pvt Ltd. All rights
reserved. Copyright ©2016 Talentica Software (I) Pvt Ltd. All rights reserved. 5
Copyright © 2016 Talentica Software (I) Pvt Ltd. All rights
reserved. Copyright ©2016 Talentica Software (I) Pvt Ltd. All rights reserved. 6 MVP - Model • Data provider • Network call • DB fetch • Shared Preferences
Copyright © 2016 Talentica Software (I) Pvt Ltd. All rights
reserved. Copyright ©2016 Talentica Software (I) Pvt Ltd. All rights reserved. 7 MVP - View • Activity • Fragment • Custom View
Copyright © 2016 Talentica Software (I) Pvt Ltd. All rights
reserved. Copyright ©2016 Talentica Software (I) Pvt Ltd. All rights reserved. 8 MVP – View Responsibility • Permissions • Event listeners • Showing dialogs, Toasts, Snackbars • Working with Android View and Widget • Starting activities • All functionality which is related to the Android Context
Copyright © 2016 Talentica Software (I) Pvt Ltd. All rights
reserved. Copyright ©2016 Talentica Software (I) Pvt Ltd. All rights reserved. 9 MVP - Presenter • Act as instructor • Retrieves data from the Model • Returns Formatted data to View • Should not have Android SDK dependency
Copyright © 2016 Talentica Software (I) Pvt Ltd. All rights
reserved. Copyright ©2016 Talentica Software (I) Pvt Ltd. All rights reserved. 10 Demo
Copyright © 2016 Talentica Software (I) Pvt Ltd. All rights
reserved. Copyright ©2016 Talentica Software (I) Pvt Ltd. All rights reserved. 11 MVP : Testability • MVP make the code more testable by making it more decoupled • We can easily mock model to validate UI rendering for different response
Copyright © 2016 Talentica Software (I) Pvt Ltd. All rights
reserved. Copyright ©2016 Talentica Software (I) Pvt Ltd. All rights reserved. 12