a) onResume() b) onStart() c) onRestart() d) onRedraw() ✅
a) SQLite Database b) Internal Storage c) SharedPreferences ✅ d) Room Database mobile application development exam questions and answers
a) startApp() b) main() ✅ c) runApp() d) init() a) onResume() b) onStart() c) onRestart() d) onRedraw()
a) Kotlin b) Java c) Swift ✅ d) Dart
a) Model-View-Controller ✅ b) Module-View-Controller c) Model-View-Component d) Main-View-Controller "Camera permission denied"
// Handle the result override fun onRequestPermissionsResult( requestCode: Int, permissions: Array<out String>, grantResults: IntArray ) super.onRequestPermissionsResult(requestCode, permissions, grantResults) if (requestCode == CAMERA_PERMISSION_CODE) if (grantResults.isNotEmpty() && grantResults[0] == PackageManager.PERMISSION_GRANTED) openCamera() else // Show rationale or disable feature Toast.makeText(this, "Camera permission denied", Toast.LENGTH_SHORT).show()
a) Declare in manifest only b) Request at runtime using requestPermissions() ✅ c) No need to request d) Use uses-permission-sdk only