Android

Android Fundamentals

The 4 core components (Activity, Service, BroadcastReceiver, ContentProvider), Intent and Manifest

24 câu hỏi phỏng vấn·
Junior
1

What is an Activity in Android?

Câu trả lời

An Activity represents a single screen in an Android application. It's a fundamental component that manages the user interface and interactions. It must be declared in the AndroidManifest.xml to be used.

2

What is the main difference between Activity and Fragment?

Câu trả lời

A Fragment is a modular and reusable sub-component that must be hosted within an Activity. An Activity is a standalone component representing a complete screen. An Activity can contain multiple Fragments, but a Fragment cannot exist without an Activity.

3

What is the AndroidManifest.xml file used for?

Câu trả lời

The AndroidManifest.xml file is essential for every Android application. It declares all app components (Activities, Services, Receivers, Providers), defines permissions, intent-filters, specifies metadata and the minimum supported Android version.

4

How do you declare an Activity in AndroidManifest.xml?

5

What is an Intent in Android?

+21 câu hỏi phỏng vấn

Nắm vững Android cho lần phỏng vấn tiếp theo

Truy cập tất cả câu hỏi, flashcards, bài kiểm tra kỹ thuật, bài tập code review và mô phỏng phỏng vấn.

Bắt đầu miễn phí