Background Work
Services, WorkManager, BroadcastReceiver, AlarmManager, Foreground Service and background work management
1What is a Service in Android?
What is a Service in Android?
Jawaban
A Service is an Android component that runs in the background without a user interface. It allows performing long-running operations like downloading files or playing music. It must be declared in the Manifest.
2What is the difference between a Started Service and a Bound Service?
What is the difference between a Started Service and a Bound Service?
Jawaban
A Started Service is launched with startService() and continues running in the background independently of the component that started it. A Bound Service is connected to one or more components via bindService(), and stops automatically when all clients unbind. A service can be both Started and Bound.
3How to start a Started Service?
How to start a Started Service?
Jawaban
Use startService(Intent) or startForegroundService(Intent) for Android 8+. The service receives onStartCommand() and continues running. It must stop itself with stopSelf() or be stopped with stopService().
What is a Foreground Service?
How to create a Foreground Service?
+15 pertanyaan wawancara
Topik wawancara Android lainnya
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
Jetpack Compose
Permissions and Device Features
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
Kuasai Android untuk wawancara berikutnya
Akses semua pertanyaan, flashcards, tes teknis, latihan code review dan simulator wawancara.
Mulai gratis