Question: Q1) (8m) Suppose you are developing an application that uses the 'Room' database to manage its local database. The app also exports its data using
Q1) (8m)
Suppose you are developing an application that uses the 'Room' database to manage its local database. The app also exports its data using a 'Content Provider'. Briefly explain how does the Content Provider class use the Room database layers to achieve its tasks.
Q2) (15m)
Develop a piece of code that inserts a new record in a database that is available in another application and can be accessed via the authority "fit2081.week8.workshopq2". The new record, which is detailed below, must be saved in a table named 'cars'.
- 'maker':'BMW'
- 'model':'X7'
- 'year':2018
Q3) (5m)
Briefly explain the role of the 'UriMatcher' class in an application that needs to share its data with other apps.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
