I have a ContentResolver for all my database operation. The MainActivity contains one fragment and the navigation drawer. This fragment diplay data from database and I need to make some operations on this date (like update, delete...).
My question is, where is the best place to make this operations ? Directly in the fragment with getActivity().getContentResolver() ? Or with a callback to the activity and put all operation in the activity ?
Aucun commentaire:
Enregistrer un commentaire