What is the incorrect statement about Data Access Object (androidx.room.Dao)?
Answer(s): D
By adding a RoomDatabase.Callback to the room database builder RoomDatabase.Builder (methodaddCallback(RoomDatabase.Callback callback)), we can: (Choose two.)
Answer(s): B,C
By executing an allowMainThreadQueries() method to the room database builderRoomDatabase.Builder, we can:
Room can export your database's schema information into a JSON file at compile time. What annotation processor property you should set in your app/build.gradle file to export the schema?
Answer(s): C
android { ... defaultConfig { ... javaCompileOptions { annotationProcessorOptions { arguments += ["room.schemaLocation": "$projectDir/schemas".toString()] } } }}
Post your Comments and Discuss Google Associate Android Developer exam with other Community members:
To protect our content from bots for real learners like you, we ask you to register for free. Sign in or sign up now to continue with the Associate Android Developer material!