title: Get Exif data from ACTION_SEND intent (TAG_GPS_LATITUDE)
body: <p>It seems like this question is everywhere on SO but <em>nothing</em> is working. I am sending an intent from the Android camera to my app (sharing a image taken with my Android camera to my app).</p>
  
  <p>in my <code>framgent</code>:</p>
  
  <pre><code>// ...
  public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
      View view = null;
  
      Intent intent = getActivity().getIntent();
      String action = intent.getAction();
      String type = intent.getType();
      if (Intent.ACTION_SEND.equals(action) &amp;&amp; type != null) {
          if ("text/plain".equals(type)) {
          // ...
          } else if (type.startsWith("image/")) {
              Uri imageUri = (Uri) intent.getParcelableExtra(Intent.EXTRA_STREAM);
              if (imageUri != null) {
                  Log.v(null, imageUri.getPath());
                  try {
                      ExifInterface exif = new ExifInterface(imageUri.getPath());
                      String str = exif.getAttribute(ExifInterface.TAG_GPS_LATITUDE);
                      Log.v(null, "lat "+str);
                  } catch (IOException e) {
                      e.printStackTrace();
                  }
                  // ...
              }
          }
      } else {
          view = inflater.inflate(R.layout.fragment_main, container, false);
          initComponents(view);
          initListeners();
      }
      return view;
  }
  // ...
  </code></pre>
  
  <p>Log.v(null, imageUri.getPath()); prints out <code>/external/images/media/5670</code></p>
  
  <p>The error appears: <code>E/JHEAD﹕ can't open '/external/images/media/5670'</code> and then <code>Log.v(null, "lat "+str);</code> prints out <code>lat null</code>?</p>