A lot of that feels like it comes down to what deg...
# android
a
A lot of that feels like it comes down to what degree you isolate yourself from the system. How you construct your intent extras, what architectural implementation you utilize (MVP / MVVP, is Activity/Fragment/ConductorController/etc P or V, etc). For example, in an app I’m currently working on, we’ve made the decision that views should remain as dumb as possible, and that the Conductor Controller for a given screen represents the View. Thus, the Presenter is responsible for creating and filling out the bundle which will be passed to the next controller (imagine clicking on a Note in a list, and then opening a new screen with details). In this case, we would want to ensure that the right data was set upon the Bundle. However, what we for this situation was to create a ScreenBundleHelper class, which would fill out the bundle in a more predictable, consistent way. For example, you could call helper.setNoteId(bundle, noteId), and then the resulting notes detail screen could then call helper.getNoteId(bundle) to get the data back out. That way you don’t pass keys around, and all you need to do is verify that helper.setNoteId was called appropriately.