title: Deprecated ManagedQuery() issue
body: <p>I have this method:</p>
  
  <pre><code>public String getRealPathFromURI(Uri contentUri) {
      String[] proj = { MediaStore.Images.Media.DATA };
      Cursor cursor = managedQuery(contentUri, proj, null, null, null);
      int column_index = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);
      cursor.moveToFirst();
      return cursor.getString(column_index);
  }
  </code></pre>
  
  <p>Unfortunately the compiler show me a problem on:</p>
  
  <pre><code>Cursor cursor = managedQuery(contentUri, proj, null, null, null);
  </code></pre>
  
  <p>Because <code>managedQuery()</code> is deprecated.</p>
  
  <p>How could I rewrite this method without use <code>managedQuery()</code>?</p>