title: How to share cursor between fragments/activities
body: <p>I'm trying to build an application that will have list/detail panes built with fragments. <strike>List is created from the <code>ContentProvider</code>. When clicked on the list the details is populated or activity created. In action similar to gmail application. How the data should be shared/passed between fragments/activities?</p>
  
  <p>Population of the list wasn't that hard, but how can I pass the selection to the details fragment (either in the same activity or another activity)? Should I query again and returned result used in details?</strike></p>
  
  <p>It needs to be like gmail app, so swipe left/right should then change the details accordingly to the same order as the list is either in the single pane layout or dual pane layout.</p>
  
  <p>I think for this I need to share the <code>Cursor</code> returned by the <code>CursorLoader</code> to keep the same order. Then swipes would increase/decrease the index and would display correct item.</p>
  
  <p>Also as I already loaded data, I wanted to reuse it without new queries.</p>
  
  <p>Could someone point me to the right direction, what you would you do to achieve that (no code but algorithm/steps)?</p>
  
  <p>At the moment I have 2 activities <em>list</em> and <em>detail</em>, the <em>list</em> has dual and single panel layout and <em>list fragment</em> with <em>details fragment</em> are used, <em>detail</em> has just single pane with <em>details fragment</em>. I think I could reduce it to be a single activity and juggle the fragments but don't know if it will be good.</p>