title: How to get the date when an image was taken from MediaStore if I have the file path?
body: <p>I know that I can retrieve the id of image using the following code:</p>
  
  <pre><code>    String[] projection = { MediaStore.Images.Media._ID };
  
      String selection = MediaStore.Images.Media.DATA + " = ?";
      String[] selectionArgs = new String[] { mediaFile.mediaFile().getAbsolutePath() };
  
      Uri queryUri = MediaStore.Images.Media.EXTERNAL_CONTENT_URI;
      ContentResolver contentResolver = context.getContentResolver();
      Cursor cursor = contentResolver.query(queryUri, projection, selection, selectionArgs, null);
      if(cursor!=null) {
          if (cursor.moveToFirst()) {
              long id = cursor.getLong(cursor.getColumnIndexOrThrow(MediaStore.Images.Media._ID));
          }
          cursor.close();
      }
  </code></pre>
  
  <p>I wonder, if there is any possible way to <code>MediaStore.Images.Media.DATA_TAKEN</code>, <code>MediaStore.Images.Media.LONGITUDE</code>, and<code>MediaStore.Images.Media.LATITUDE</code> using the same approach?</p>