title: Application restart after taking picture with camera(Titanium android)
body: <p>I am developing android application, In my application I want to take photo from camera and set as image in image view. my code looks like</p>
  
  <pre><code>var img_view = Titanium.UI.createImageView({ 
      image: '/images/default.png',
      height: '100%',
      width: '100%',
  }); win.add(img_view);
  photo_camera_view = Ti.UI.createView(
  {
      height: '20dp',
      backgroundColor:'#fff'
  }); win.add(photo_camera_view); 
  photo_camera_view.addEventListener('click', function(e)
  {
      Titanium.Media.showCamera(
      {
          success:function(event)
          {
              img_view.image =  event.media; 
          },
          cancel:function()
          {
          },
          error:function(error)
          {
              // create alert
          },
  
      });
  });
  </code></pre>
  
  <p>my need is take a pic from camera and set image: 'photo from camera' in img_view. In Android, when I execute Ti.Media.showCamera, after successfully taking a picture and hitting "OK" in the app, the application will restart. I am using titanium sdk 2.0.1 and testing it on android device with android version 2.2. Need Help ..... Thank you........</p>