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
Android Runtime Permissions
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Jay Newstrom
October 14, 2015
Programming
130
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Android Runtime Permissions
Jay Newstrom
October 14, 2015
Other Decks in Programming
See All in Programming
Building an Out-of-Order CPU
latte72
1
790
UnityでSystem.Net.WebSocketsなWebSocketサーバが動かないのでUnity Monoのコードを覗いてみた / about implementing websocket server with unity mono
drumath2237
1
270
スマートフォンでモールス信号を送受信する 〜スマートフォンのLEDとカメラで作る光通信の設計と実装〜
atsuki_seo
0
160
Go × SIMDで高速化するベクトル検索 ~ルーフラインモデルでSIMDが効く境界を探れ! ~
po3rin
1
2.4k
技術的負債を組織課題として解く-増えすぎたマイクロサービスとの戦い-
reimaru
1
2.2k
AWS DevOps Agentで インシデント対応をAIに任せたい
honmarkhunt
7
3k
Are APIs Still Relevant in the AI Era?
soyuka
0
290
Kiroで創り、AgentCoreで繋ぐ!AWSで実践する「AI-DLC」から「AIエージェント統合」までの最新地図
licux
4
730
AIは賢い。でも実行環境は? CLIおじさんがAI時代に伝えたいこと ~ CLIおじさんがAI時代に伝えたいこと ~
curekoshimizu
1
250
WebMCP Challenge に星空観察アプリで参加した話
okajun35
0
190
wkhtmltopdfの次どうするか問題2026
willnet
2
1.6k
世界の中心で、AI(App Intents)をさけぶ ー App Intents中心設計の実践ガイド
touyou
0
640
Featured
See All Featured
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.4k
エンジニアに許された特別な時間の終わり
watany
109
250k
Accessibility Awareness
sabderemane
1
210
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.8k
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.6k
The Invisible Side of Design
smashingmag
301
52k
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
760
Chasing Engaging Ingredients in Design
codingconduct
0
320
Code Reviewing Like a Champion
maltzj
528
40k
We Have a Design System, Now What?
morganepeng
55
8.3k
The Limits of Empathy - UXLibs8
cassininazir
1
680
It's Worth the Effort
3n
188
29k
Transcript
Android Runtime Permissions Jay Newstrom
Agenda • Workflow differences • How to update your app
• Gotchas • Organizing Code
Installing an App
None
None
None
Installing an App on Marshmallow
None
None
None
None
Benefits • App updates • User trust • User control
Normal and Dangerous Permissions Normal Dangerous Internet Photos Bluetooth Files
Flashlight Location Vibrate Contacts
Permission Groups Calendar Camera Contacts Location Microphone Phone Sensors SMS
Storage
Permission Groups Calendar Contacts READ_CALENDAR READ_CONTACTS WRITE_CALENDAR WRITE_CONTACTS GET_ACCOUNTS
How to Upgrade • build.gradle changes • targetSdkVersion = 23
• Support v4 Library = 23.0.1 • Ask before using dangerous permissions • No manifest changes
How to Upgrade • ContextCompat.checkSelfPermission • ActivityCompat.shouldShowRequestPermissionRationale • ActivityCompat.requestPermissions •
Override onRequestPermissionsResult
Gotchas • Sharing • Permission denied • Know when dangerous
permissions are used • Unknown permissions are denied (old versions of Android)
Required Permissions • Snapchat
Organizing Code • Assume Permission Denied • Ask Android for
permission • When Android says you have permission, perform the operation
More Information • http://developer.android.com/guide/topics/security/permissions.html • https://developer.android.com/training/permissions/ • http://developer.android.com/reference/android/support/v4/content/ ContextCompat.html •
http://blog.danlew.net/2015/10/07/sharing-files-on-android-in-a-world-with-runtime- permissions/ • https://medium.com/ribot-labs/exploring-the-new-android-permissions-model- ba1d5d6c0610 • https://commonsware.com/blog/2015/10/07/runtime-permissions-files-action-send.html • https://github.com/tbruyelle/RxPermissions
Thanks!