Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
RuntimePermissionChecker
Search
taptappun
February 22, 2018
Technology
0
87
RuntimePermissionChecker
RuntimePermissionCheckerというAndroidのライブラリを作成したのでその紹介。
taptappun
February 22, 2018
Tweet
Share
More Decks by taptappun
See All by taptappun
勢いで作った便利ツールのご紹介
takukobayashi
1
500
Other Decks in Technology
See All in Technology
Amazon ECS & AWS Fargate 運用アーキテクチャ2025 / Amazon ECS and AWS Fargate Ops Architecture 2025
iselegant
16
5.5k
製造業からパッケージ製品まで、あらゆる領域をカバー!生成AIを利用したテストシナリオ生成 / 20250627 Suguru Ishii
shift_evolve
PRO
1
140
How Community Opened Global Doors
hiroramos4
PRO
1
120
「Chatwork」の認証基盤の移行とログ活用によるプロダクト改善
kubell_hr
1
150
解析の定理証明実践@Lean 4
dec9ue
0
180
Prox Industries株式会社 会社紹介資料
proxindustries
0
290
Кто отправит outbox? Валентин Удальцов, автор канала Пых
lamodatech
0
340
【5分でわかる】セーフィー エンジニア向け会社紹介
safie_recruit
0
26k
Liquid Glass革新とSwiftUI/UIKit進化
fumiyasac0921
0
210
_第3回__AIxIoTビジネス共創ラボ紹介資料_20250617.pdf
iotcomjpadmin
0
150
第9回情シス転職ミートアップ_テックタッチ株式会社
forester3003
0
230
生成AIで小説を書くためにプロンプトの制約や原則について学ぶ / prompt-engineering-for-ai-fiction
nwiizo
4
1.6k
Featured
See All Featured
Gamification - CAS2011
davidbonilla
81
5.3k
Build your cross-platform service in a week with App Engine
jlugia
231
18k
Automating Front-end Workflow
addyosmani
1370
200k
Typedesign – Prime Four
hannesfritz
42
2.7k
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
Docker and Python
trallard
44
3.4k
How to Think Like a Performance Engineer
csswizardry
24
1.7k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
8
790
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
252
21k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
181
53k
Visualization
eitanlees
146
16k
What's in a price? How to price your products and services
michaelherold
246
12k
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
Ͷ?؆୯Ͱ͠ΐ?
Έͳ͞Μ͍ͬͯͩ͘͞ ελʔͱ͔͍͍Ͷ͍ͩ͘͞