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
RuntimePermissionChecker
Search
taptappun
February 22, 2018
Technology
94
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
RuntimePermissionChecker
RuntimePermissionCheckerというAndroidのライブラリを作成したのでその紹介。
taptappun
February 22, 2018
More Decks by taptappun
See All by taptappun
勢いで作った便利ツールのご紹介
takukobayashi
1
520
Other Decks in Technology
See All in Technology
OptunaHub: ブラックボックス最適化のためのプラットフォーム
pfn
PRO
0
140
TinyGoでオブザーバビリティ?OpenTelemetryはTinyGoで使えるのか / Is OpenTelemetry available in TinyGo environment?
ymotongpoo
2
140
Classmethod Company Deck
satoshi7
1
690
フロントエンドカンファレンス関西2026 - 速すぎるUIに、待ち時間を
teamlab
PRO
0
130
Local CI × GitHub Actions
gogutan
2
190
1つのリクエストを追って理解する - llm-dのP/D分離
akhino
1
160
無理せず続ける、子育てエンジニアの学び
codmoninc
PRO
0
870
スプシの手作業からの解脱 ~更新はClaude Codeに、見せ方と使い方はGASアプリに任せる~
kentarofujii
0
150
日本語に強いオープンな大規模言語モデル「LLM-jp」
odashi
4
1.1k
hackers_champloo_2026_tidb
makocchi
0
160
How to Design Configuration for Rails Applications
willnet
1
790
Claude Code本は、どのように執筆チームで書かれたか
oikon48
1
380
Featured
See All Featured
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
31k
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
380
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.8k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
580
Bash Introduction
62gerente
615
220k
Raft: Consensus for Rubyists
vanstee
142
7.8k
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
400
Google's AI Overviews - The New Search
badams
0
1.6k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
1
630
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.7k
We Have a Design System, Now What?
morganepeng
55
8.4k
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.5k
Transcript
RUNTIMEPERMISSIONCHECKER ͱ͍͏ϥΠϒϥϦΛ࡞ͬͨ
ࣗݾհ ɾখྛ (@taptappun) Facebookͬͯ·͢ ɾϋοΧιϯδϟϯΩʔ ɾαʔόʔ݉ΫϥΠΞϯτɾήʔϜΤϯδχΞ (ϑϧεελοΫΤϯδχΞ) ɾࠓNCJapanʹॴଐ ɾPS4ΞΧϯτ: tappun
ɾχϯςϯυʔεΠονΞΧϯτ: SW-0178- 9450-2426
RUNTIME PERMISSIONͬͯ? https://qiita.com/caad1229/items/35bab757217b204711df https://developer.android.com/training/permissions/requesting.html?hl=ja ରݖݶ͕ඞཁͳૢ࡞͕ߦΘΕ ΔલʹϢʔβͷڐՄΛΒ͏ػ ೳɻ targetSdkVersion 23Ҏ্ (Android6.0
Lolipop)Ͱඞཁʹͳ ͬͨػೳɻ
͜Μͳ͜ͱͬͯͳ͔ͬͨͰ͔͢? ϓϩάϥϛϯάهड़ྃ ͋Ε?ͳ͔ͥಈ͔ͳ͍… ͋ΕʁͰ͓͔͍͠ͱ͜Ζͳ͍Αͳ͊…
͋!PERMISSIONΛ ฉ͘ͷΕͯͨ!!!
লΛ౿·͑ͯɺ͍࣮͟!! if(Build.VERSION.SDK_INT >= 23) { requestPermissions(new String[]{"android.permission.CAMERA"}, 0); } @Override
public void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults) { switch (requestCode) { case 0: { if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED){ Log.i("permission", "permitted"); } else { Log.i("permission", "not permitted"); } break; } } }
PERMISSIONͷ͜ͱͳΜ͔ͯΜ͕͑ͨ͘Ͷ͐ͬ͢ ॲཧଟ͍ͬ͢… AndroidManifest.xmlʹpermissionهड़ͨ͠Β ࣗಈతʹΑΖͬͯ͘͠΄͍ͬ͢͠ɻ Android2.0ܥ͔Β։ൃ͍ͯ͠Δ͔Β͢Δ ͱɺ ͤΊͯҰߦՃ͢Δ͚ͩͰޙΑΖͬ͘͠ ͯ΄͍ͬ͢͠…
ϥΠϒϥϦ࡞Γ·ͨ͠ https://qiita.com/taptappun/items/7fae4317d751245b2089 https://github.com/TakuKobayashi/RuntimePermissionChecker
Ͷ?؆୯Ͱ͠ΐ?
Έͳ͞Μ͍ͬͯͩ͘͞ ελʔͱ͔͍͍Ͷ͍ͩ͘͞