如何在Android7.0系统下通过Intent安装apk

参考文章：http://blog.csdn.net/qq_27512671/article/details/70224978

1. 将 file_paths.xml 添加到 res\xml\ 中
2. 在 AndroidManifest.xml 中添加 provider ，结果如下：

    <application android:persistent="False" 
        android:restoreAnyVersion="False" 
        android:label="KP5Cloud" 
        android:debuggable="True" 
        android:largeHeap="False"
        android:icon="@drawable/ic_launcher"
        android:theme="@style/AppTheme"
        android:hardwareAccelerated="true">
        
        <activity  ...
        
        </activity>

        <provider
            android:name="android.support.v4.content.FileProvider"
            android:authorities="com.kp5cloud.fileprovider"
            android:exported="false"
            android:grantUriPermissions="true">
            <meta-data
                android:name="android.support.FILE_PROVIDER_PATHS"
                android:resource="@xml/file_paths" />
        </provider>
        
        ...
        
    </application>
    
