May 2022
Intermediate to advanced
688 pages
20h 12m
English
Right now, you have the ability to add and update crimes in your database. But once the crime has been solved and justice has been served, it is often best to forgive and forget.
For this challenge, add the ability to delete a selected crime in CrimeDetailFragment. You can add an icon to CrimeDetailFragment’s app bar and hook it up the same way you did in this chapter.
In addition to the @Query, @Insert, and @Update annotations you have used in your CrimeDao, there is one more annotation that might come in handy: @Delete.
Read now
Unlock full access