Câu hỏi phỏng vấn Android
Câu hỏi

What is a JobScheduler ?

Câu trả lời

The Android JobScheduler is an API for scheduling various types of jobs that will be executed in your application's own process[1][2][3]. It allows you to schedule tasks while letting the system optimize based on memory, power, and connectivity conditions[1].

Some key features of the JobScheduler:

  • Allows batching of jobs when the device has more resources available[1]
  • Supports scheduling jobs based on device state like being idle, connected to power, or having network connectivity[2]
  • Tries to optimize job execution by shifting to times with more available system resources to lower user impact[2]
  • Holds a wakelock on behalf of your app while a job is running, so you don't need to keep the device awake[2]

To use the JobScheduler, you:

  1. Create a JobInfo object specifying the sche...
middle

middle

Gợi ý câu hỏi phỏng vấn

middle

What are dex files are used for?

middle

What is Parcelable in Android?

senior

Can you manually call the Garbage collector?

Bình luận

Chưa có bình luận nào

Chưa có bình luận nào