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
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
レガシーコードに対する loop engineering的なAI開発プロセス導入について
kubell_hr
0
180
IBC 2026 動画技術関連レポート / IBC 2026 Report
cyberagentdevelopers
PRO
2
160
200人の配信コメント、 全部Jevが仕分けます 〜 マサカリガードを作ってみた 〜
katayamatg
1
530
FinOpsを導入してマルチプロダクトのコスト最適化を実現する
kworkdev
PRO
0
120
新米を「売り越さない」、Aurora DSQLで作る在庫ゼロ死守の限定ドロップEC
yama3133
0
170
今から始めるAWS環境の暗号移行 - ポスト量子時代に備える
sato4mi
0
150
WireGuard for Apache NuttX - Bringing Secure Remote Access to embedded Devices -
aki310ooooo
0
140
増え続けるプロダクトの品質をどう担保するか。ProductSpecとTypeScriptによる取り組み
joere
3
380
re:Invent2026 事前勉強会 歴史と愉しみ方10分LT編
toshi_atsumi
0
120
生き様としてのSRE
hokkai7go
1
170
Devin プロモコードの受け取りと適用(2026.10.27)
kinopeee
1
860
Strands Decider 2BでAWSアップデートの目利きをしてみた
sato4mi
1
100
Featured
See All Featured
Context Engineering - Making Every Token Count
addyosmani
9
1.3k
Building an army of robots
kneath
307
47k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
370
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
520
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.5k
Designing for Timeless Needs
cassininazir
1
550
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
830
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
3
1.4k
Heart Work Chapter 1 - Part 1
lfama
PRO
10
37k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
23k
The Spectacular Lies of Maps
axbom
PRO
1
1.1k
Design in an AI World
tapps
1
380
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