Content Provider – Part 3 – insert, delete, update, getType

Content Provider – Part 3 – insert, delete, update, getType

Please read the Part 1 and Part 2 insert First, create the variables needed for an insert get the code from the Urimatcher and create a switch statement for every kind of URI. Then insert the new row Create the rowUri with the help of ContentUris class and its method withAppendId To execute it: delete The same as insert, but change the switch statement And you can execute it: update and execute it : getType It returns the mime type of the data in the Content Provider. And because maybe…

Content Provider – Part 3 – insert, delete, update, getType Read More