title: Manifest with fileprovider compatible with old Android version
body: <p>To maintain compatibility with <strong>Android 8</strong> for my app I had to add the "provider" tag in the manifest. This is the tag:</p>
  
  <pre><code>   &lt;provider
          android:name="android.support.v4.content.FileProvider"
          android:authorities="xxx.xxx.fileprovider"
          android:exported="false"
          android:grantUriPermissions="true"&gt;
          &lt;meta-data
              android:name="android.support.FILE_PROVIDER_PATHS"
              android:resource="@xml/provider_paths" /&gt;
      &lt;/provider&gt;
  </code></pre>
  
  <p>I have implemented everything and <strong>everything is working on android 7/8/9</strong>.</p>
  
  <p>Today a try to install APP on old device (<strong>ANDROID 4</strong>) and this is a error message:</p>
  
  <pre><code>  java.lang.RuntimeException: **Unable to get provider android.support.v4.content.FileProvider**: 
  java.lang.ClassNotFoundException: Didn't find class "**android.support.v4.content.FileProvider**" on path: 
  DexPathList[[zip file "/data/app/mywork.activity-4.apk"],nativeLibraryDirectories=[/data/app-lib/mywork.activity-4, /vendor/lib, /system/lib]]
  </code></pre>
  
  <p><strong>I understood that the problem is due to the fact that on Android4 is not present that library</strong> but I do not want to make two versions of the APP absolutely have two different manifest files.</p>
  
  <p>What solutions can there be? Can you add the library (which andorid4 does not have) manually? Does it conflict with something?</p>
  
  <p>Otherwise I do not understand the sense of <strong>entering the code</strong></p>
  
  <p><code>(Build.VERSION.SDK_INT&gt; = Build.VERSION_CODES.N</code>) </p>
  
  <p>when I decide whether to use <strong>fileprovider</strong> or the old type of <strong>intent</strong>. </p>
  
  <p>If I have manifest that is <strong>not compatible with versions prior to Build.VERSION_CODES.N</strong>....conditional statement in the code does not make sense.</p>
  
  <p>How could I solve?</p>