title: Android Maps V2 MapView inside custom fragment (NPE)
body: <p>I do not want to use or extend <code>SupportMapFragment</code> or <code>MapFragment</code>. I have my own base class with a bunch of code in it.</p>
  
  <p>The documentation clearly states that when someone uses <code>MapView</code> by itself, all corresponding lifecycle methods (<code>onCreate()</code> <code>onResume()</code> etc.) should be called.</p>
  
  <p>Most of the lifecycle methods in a <code>Fragment</code> are similar to an <code>Activity</code> but when I switch back and forth between my <code>Fragment</code> I eventually get an obfuscated NPE in <code>onDestroy()</code> or in <code>onResume()</code> methods.</p>
  
  <p>All the samples provided use an <code>Activity</code> with a <code>MapView</code> but not a custom <code>Fragment</code>.</p>
  
  <p>Has someone done that already? Can you provide sample code of a <code>MapView</code> in your own <code>Fragment</code>class?</p>