android - How to manage a multitable database? -
i got done reviewing notepad tutorial , looking @ how database. if wanted expand multi-table database, add new provider class did possibly needed table?
second if don't mind answering second related question, uri , how use them android? searched around , came "universal resource identifier".
thank ~aedon
the idea of provider deals type of public resource. have contact provider or note provider. provider isn't tied database in way. note provider might accessing dozens of tables behind provider interface.
you can think of provider interface being being public api resources. available applications on phone mechanism sharing common resource. method of implementing api implementation detail provider itself. provider might not use database @ (perhaps uses web service only) or might use multitable/multidatabase design.
a uri universal resource indicator. cliff's notes of this: uri has scheme , locator. in android, scheme, portion of uri before :, used determine intended uri do. uri sms://5555555551 registered requesting text sent 555-555-5551. 555-555-5551 referred 'data'.
there more read , understand here. suffice say, in android, uri's used loosely couple activities together. instance, in previous example, care sms sent, not how sent. allows many apps register able send sms messages, apps better, perhaps, ones android has built platform.
Comments
Post a Comment