title: Cannot find the "getUriForFile" method in FileProvider
body: <p>I am trying to implement a FileProvider to allow me to share local, private images with email and other apps. I have been following the instructions of the Android Developers Guide and get down to where I have to use the "getUriForFile" function and Eclipse tells me I have to create the method. I was under the impression this should be in the android.support.v4.content package and it is in the Referenced Libraries for the app, but it is not there. </p>
  
  <p>I have added the following to my Manifest:</p>
  
  <pre><code>&lt;provider
  android:name="android.support.v4.content.FileProvider"
  android:authorities="com.gelbintergalactic.fileprovider"
  android:exported="false"
  android:grantUriPermissions="true"&gt;
  &lt;meta-data
  android:name="android.support.FILE_PROVIDER_PATHS"
  android:resource="@xml/my_paths" /&gt;
  &lt;/provider&gt;
  </code></pre>
  
  <p>I have created this xml file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;paths xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  &lt;files-path name="files" path="." /&gt;
  &lt;/paths&gt;
  </code></pre>
  
  <p>But when I get to this point in my code I am stymied:</p>
  
  <pre><code>Uri contentUri = getUriForFile(this, "com.gelbintergalactic.fileprovider", newfile);
  </code></pre>
  
  <p>What step am I missing?</p>