title: Android local variable get's lost when using camera intent
body: <p>I'm dealing with a random problem which related to camera usage. Before I call camera intent - I generate UUID to store file with this name. I store this UUID in private variable like so:</p>
  
  <pre><code>private String requestedFileName;
  </code></pre>
  
  <p>When camera done - I'm processing this file, looks something like this:</p>
  
  <pre><code>public void onPictureTaken(int index)
      {
          //First of all - remember picture in database for reference.
          FileData.InsertFile(mContext, UUID.fromString(requestedFileName));
  
          //Reduce taken picture if needed, otherwise let it be original.
          if (Preferences.getImageSize(mContext) &gt; 0)
          {
              Imaging.scaleImageFile(mContext, requestedFileName, Preferences.getImageSize(mContext));
          }
  </code></pre>
  
  <p>I see users report issue exception that boils down to <strong>requestedFileName == null</strong> when <strong>onPictureTaken</strong> called</p>
  
  <pre><code>Caused by: java.lang.NullPointerException
   at java.util.UUID.fromString(UUID.java:210)
   at com.idatt.views.FourImagesView.onPictureTaken(FourImagesView.java:151)
   at com.idatt.views.TrailerUnitView.onPictureTaken(TrailerUnitView.java:233)
  </code></pre>
  
  <p>Everything works good on my phone (Nexus S) and in emulator. But users report this exception and I'm not sure why this is happening..</p>