how to make better synchronization between views and data
<p>Imagine there is a <code>MainActivity</code> in which there is a <code>ListView</code> with an <code>ArrayAdapter</code>. In the views that belong to the <code>MainActivity</code> I update the data directly; for example, in my <code>PageAdapter</code> class: </p>

<pre><code>@Override
public void finishUpdate(View arg0) {
    ViewPager vp = (ViewPager) arg0;
    if (vp.getCurrentItem() != this.current_item){
        this.current_item = vp.getCurrentItem();
        ContentStatus status;
        switch(vp.getCurrentItem()){
        case(0): 
            status = ContentStatus.NOTINTERESTING;
            break;
        case(2): 
            status = ContentStatus.INTERESTING;
            break;
        default: 
            status = ContentStatus.ACTIVE;
        }
        MainActivity.content.setItemStatus(content.identifier, status);
        final Activity act = (Activity) this.context;
        ArrayAdapter adapter = (ArrayAdapter) ((ListView) act.findViewById(R.id.view_sequence)).getAdapter();
        adapter.notifyDataSetChanged();
    }
}
</code></pre>

<p>I need to reproduce this code in another activity which opens from the <code>MainActivity</code> and uses the same data, because if the user changes some data from the other activity and then closes it and returns to the MainActivity I must redraw <code>MainActivity</code>'s views. As a variant, should I use <code>Activity</code>'s <code>onResume()</code> method to update all views that haves bindings to data? </p>
