List - > details flow. Best practices Android -


i wondering, best practices or preferred way handle list , details flow in android.

example:

a) have fragment list of items.

b) when user select item, show item details in screen (activity or fragment, question purpose doesn't matter).

all data stored database, using content provider.

question:

should item id in fragment a, pass screen b , select entire data using cursor loader in screen b

public void onitemclick(adapterview<?> parent, view view, int position, long id) {     // launch intent id param. } 

or select entire data in fragment , pass screen b?

public void onitemclick(adapterview<?> parent, view view, int position, long id) {     // todo selected item.     parking parking = (parking) parent.getadapter().getitem(position);      // launch intent parking extra. } 

best practices?


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -