Android

Firebase for Android

Essential Firebase services: Authentication, Firestore, Realtime Database, Cloud Messaging, Analytics, Crashlytics, Storage, and Remote Config

23 คำถามสัมภาษณ์·
Mid-Level
1

Which Firebase configuration file must be placed in the app/ folder of an Android project?

คำตอบ

The google-services.json file contains all Firebase configurations (API keys, project ID, etc.) and must be placed in the app/ folder. This file is generated from the Firebase console when adding the Android app to the Firebase project.

2

How do you create a user account with email and password in Firebase Authentication?

คำตอบ

The createUserWithEmailAndPassword() method of FirebaseAuth creates a new user account with the provided credentials. It returns a Task that, on success, contains an AuthResult with the created user's information.

3

How do you retrieve the currently logged-in user in Firebase Auth?

คำตอบ

The currentUser property of FirebaseAuth returns the currently logged-in user as a FirebaseUser object, or null if no user is logged in. This object contains information like uid, email, displayName, photoUrl, etc.

4

What is the syntax to add a document in Cloud Firestore?

5

Which Firestore method allows updating only certain fields of a document?

+20 คำถามสัมภาษณ์

เชี่ยวชาญ Android สำหรับการสัมภาษณ์ครั้งถัดไป

เข้าถึงคำถามทั้งหมด flashcards แบบทดสอบเทคนิค แบบฝึกหัด code review และตัวจำลองสัมภาษณ์

เริ่มใช้ฟรี