I want to allow the user to create/delete their own tables on the fly, along with creating their own schema for the table, column names, etc. How do I implement this with a content provider when I don't know what the URIs will be in advance - in addition UriMatcher has no remove method for when a user creates then deletes tables.. is there another class I could use in its place that has similar functionality?
Everything I've read so far about Content Providers makes it sound like they should only be used when the structure of the database is final and known in advance.. in my case I could also just create a bunch of default URIs and just assign them to tables as they are created, although that would be messy and put a limit on the number of tables a user could create..
I don't really need the Content Provider export functionality since this data will not be shared to other apps, but would prefer to use the Content Provider if possible since it comes with Loader functionality.. should I just use a DBAdapter with AsyncTasks for loading and just scratch the Content Provider altogether (which I know how to do already)?
Aucun commentaire:
Enregistrer un commentaire