java - Android get multiple content Provider with single cursor -


hello , creating application in have deal multiple content providers. every content have create cursor. example create cursor phone contacts , create call logs etc.i wonder necessary create new cursor every time content.i want know there way multiple contents single cursor code shorten. in advance

it not possible, , if was, that's not way go. imagine got database multiple tables: customers, sales, products; , each time ask customers, brings sales , products too. not efficient, right?

the correct way go use 1 cursor each data set need.

ps: remember shorter code != better. easy maintainable code == better. called scalability. read more here.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -