Intent filter được khai báo trong manifest để chỉ định loại implicit intent mà Activity có thể xử lý.
- Chúng định nghĩa action, category, và kiểu dữ liệu.
- Khi bạn gửi implicit intent, hệ thống tìm tất cả app có Intent filter phù hợp.
Ví dụ Intent với action ACTION_VIEW và data http:// có thể mở browser.
Intent filters are declared in the manifest to specify what implicit intents an Activity can handle.
- They define action, category, and data types.
- When you send an implicit intent, the system finds all apps with matching Intent filters.
- For example, an Intent with action
ACTION_VIEWand datahttp://might open a browser. - You must include
android.intent.category.DEFAULTfor implicit intents to work.