title: taking picture from camera gives e a null pointer exception
body: <p>This is my code: </p>
  
  <pre><code> String _path = Environment.getExternalStorageDirectory() + File.separator +  "temp.jpg";
                             File file = new File( _path );
                             Intent cameraIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);             
                             Uri pictureUri = Uri.fromFile(file);
                             cameraIntent.putExtra(MediaStore.EXTRA_OUTPUT, pictureUri);
                             startActivityForResult(cameraIntent, CAMERA_REQUEST);
  
  protected void onActivityResult(int requestCode, int resultCode, Intent data) {       
              switch(requestCode){
                  case CAMERA_REQUEST:{
                      Bitmap bmp = (Bitmap) data.getExtras().get("data");    
  </code></pre>
  
  <p>and I have added in the manifest the:</p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.CAMERA" /&gt;
   &lt;uses-feature android:name="android.hardware.camera" /&gt;
   &lt;uses-feature android:name="android.hardware.camera.autofocus" /&gt;
  </code></pre>
  
  <p>What am I doing wrong? What i want at first is to save the image?</p>
  
  <p>Logcat:</p>
  
  <pre><code>04-20 10:08:38.547: E/AndroidRuntime(219): Uncaught handler: thread main exiting due to uncaught exception
  04-20 10:08:38.557: E/AndroidRuntime(219): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1888, result=-1, data=null} to activity {com.vimateam.android.bestgreekbeaches/com.vimateam.android.bestgreekbeaches.Gallery1}: java.lang.NullPointerException
  04-20 10:08:38.557: E/AndroidRuntime(219):  at android.app.ActivityThread.deliverResults(ActivityThread.java:3329)
  04-20 10:08:38.557: E/AndroidRuntime(219):  at android.app.ActivityThread.handleSendResult(ActivityThread.java:3371)
  04-20 10:08:38.557: E/AndroidRuntime(219):  at android.app.ActivityThread.access$2700(ActivityThread.java:119)
  04-20 10:08:38.557: E/AndroidRuntime(219):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1893)
  04-20 10:08:38.557: E/AndroidRuntime(219):  at android.os.Handler.dispatchMessage(Handler.java:99)
  04-20 10:08:38.557: E/AndroidRuntime(219):  at android.os.Looper.loop(Looper.java:123)
  04-20 10:08:38.557: E/AndroidRuntime(219):  at android.app.ActivityThread.main(ActivityThread.java:4363)
  04-20 10:08:38.557: E/AndroidRuntime(219):  at java.lang.reflect.Method.invokeNative(Native Method)
  04-20 10:08:38.557: E/AndroidRuntime(219):  at java.lang.reflect.Method.invoke(Method.java:521)
  04-20 10:08:38.557: E/AndroidRuntime(219):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
  04-20 10:08:38.557: E/AndroidRuntime(219):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
  04-20 10:08:38.557: E/AndroidRuntime(219):  at dalvik.system.NativeStart.main(Native Method)
  04-20 10:08:38.557: E/AndroidRuntime(219): Caused by: java.lang.NullPointerException
  </code></pre>