Why is the intent data null on some devices?
<p>I am using this Code to generate an camera intent </p>

<pre><code>    Log.i(TAG, "starting Camera action");
    appData.setApplicationMode( ApplicationModeEnum.PICTURE_FIRST_MODE.name() );
    Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
    intent.putExtra(MediaStore.EXTRA_OUTPUT, this.getApplicationContext().getDir("images", MODE_PRIVATE));
</code></pre>

<p>In the ActivityResult I retrieve the uri of the taken picture</p>

<pre><code>else if (requestCode == TAKE_PICTURE &amp;&amp; resultCode == ActionActivity.RESULT_OK){
        Log.i(TAG, "picture intent gives result ok");
        Bundle b = new Bundle();

        Uri picUri = data.getData();            
        if (picUri != null){
            b.putSerializable("picUri", picUri.toString());         
            b.putSerializable("barcode", data.getSerializableExtra("barcode"));
            String imageFile = getRealPathFromURI(picUri);
            ArrayList&lt;String&gt; item = new ArrayList&lt;String&gt;();
            item.add(imageFile);
            b.putSerializable("pics", item);
            Intent i = new Intent();
            i.putExtras(b);
            i.setClass(this,CommentActivity.class);         
            startActivity(i);
        }
        else{
            DialogHelper.showDialog( this, 
                                     getResources().getString( R.string.no_pic_error_title),
                                     getResources().getString( R.string.no_pic_error_text ));
            startActivity( new Intent().setClass( this, ActionActivity.class ) );               
        }

    }
</code></pre>

<p>In most of my Test-Devices this works properly but on some devices the picUri is null. Can someone explain why this can happen? 
Thanks</p>
