Permissions and Device Features
Runtime permissions, Camera, Location, Sensors, Bluetooth, NFC, Telephony and device feature detection
1What is the difference between Normal and Dangerous permissions?
What is the difference between Normal and Dangerous permissions?
Resposta
Normal permissions are automatically granted at install time (e.g., INTERNET, VIBRATE). Dangerous permissions require explicit user consent at runtime since Android 6.0 (e.g., CAMERA, LOCATION) because they affect privacy.
2How to request a runtime permission in Android?
How to request a runtime permission in Android?
Resposta
First check with checkSelfPermission(), then request with requestPermissions() or the modern Permission Launcher (registerForActivityResult). Handle the response in onRequestPermissionsResult() or in the launcher callback.
3What is ActivityCompat.checkSelfPermission() used for?
What is ActivityCompat.checkSelfPermission() used for?
Resposta
The checkSelfPermission() method checks whether a permission is currently granted. It returns PERMISSION_GRANTED if granted, PERMISSION_DENIED otherwise. Always check before using a permission‑protected feature.
What are permission groups?
What is shouldShowRequestPermissionRationale() used for?
+18 perguntas de entrevista
Outros temas de entrevista Android
Android Fundamentals
Android UI and Resources
Android Lifecycle
Android Navigation
Android Data Management
Android Networking
Android Testing
Android Gradle
Kotlin Language Essentials for Android
Room Database
Background Work
Jetpack Compose
Firebase for Android
Android MVVM Architecture
Advanced Android Networking
Kotlin Collections and Operators
Kotlin Coroutines and Flow
Android Dependency Injection
Android MVI Architecture
Android Clean Architecture
Android Compose Advanced
Android Performance and Monitoring
Android Security and Privacy
Android CI/CD and Release
Android UX and Form Factors
Android Testing Advanced
Domine Android para sua proxima entrevista
Acesse todas as perguntas, flashcards, testes tecnicos, exercicios de code review e simuladores de entrevista.
Comece gratis