Getting images from system Gallery. Why is not working?
<p>I made a program where user show which picture he want to load in this app. When user want to load picture, he can choose what kind of file explorer he want to use:</p>

<p><img src="http://i.stack.imgur.com/65jSC.png" alt="enter image description here"></p>

<p>Everything works, but if I choose "Gallery" and  mark my image, it doesn't work. It happens only when i choose "Gallery".</p>

<pre><code>@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    // TODO Auto-generated method stub
    super.onActivityResult(requestCode, resultCode, data);

    if(resultCode == RESULT_OK){
                 String path = data.getData().getPath();
                 try {
        loadedimage = BitmapFactory.decodeFile(sciezka_z_obrazem);
          }
                  catch (Exception e) {
                   }
            } [...]
</code></pre>

<p>After picking image from Gallery, loadedimage is null.
When I use Dropbox or "My Files" everything is OK.</p>
