Google Related Exams
Associate-Android-Developer Exam
What happens when you create a DAO method and annotate it with @Insert?
Example:
@Dao
public interface MyDao {
@Insert(onConflict = OnConflictStrategy.REPLACE)
public void insertUsers(User... users);
}
If you want get a debuggable APK that people can install without adb, in Android Studio you can:
By adding a RoomDatabase.Callback to the room database builder RoomDatabase.Builder (method
addCallback(RoomDatabase.Callback callback)), we can: (Choose two.)