title: How do I share a database between an Activity and a ContentProvider?
body: <p>I have an Android Activity, and a ContentProvider that (as I understand it) gets instantiated automatically because I've associated it with a search intent in <code>res/xml/searchable.xml</code>.</p>
  
  <p>I've also created a SQLiteOpenHelper which I'd like to use from the Activity and the Content provider, but I don't know how to make it accessible to both of them.</p>
  
  <ul>
  <li>If I create the helper in the Activity's onCreate, I don't know how
  to get a reference to the Activity from the ContentProvider.</li>
  <li>If I instantiate the helper from the ContentProvider's onCreate method, I
  don't know how to get a reference to the ContentProvider instance
  from the Activity.</li>
  </ul>
  
  <p>Which object should own the SQLiteOpenHelper, and how can I access it from the other one?</p>