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

When to use AIDL v...

Câu trả lời

Here is the answer to the Android interview question "When to use AIDL vs Messenger Queue?":

AIDL is used when you need application-level communication to share data and control between processes. For example, an app requires a list of all contacts from the Contacts app and also wants to display the call duration and be able to disconnect it from that app[1][2][3].

In the case of Messenger Queue, you mainly work on multiple threads and processes to manage the queue containing messages so that there is no interference from external services[1][2][3].

Messenger is needed if you want to bind a remote service (e.g. running in another process)[1].

In summary:

  • Use AIDL when y...
expert

expert

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

expert

What is the relationship between Looper , Handler and MessageQueue in Android?

middle

How could you pass data between activities without Intent ?

junior

What is the most appropriate way to store user settings in Android application?

Bình luận

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

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