getInstallAppIntent

open fun getInstallAppIntent(filePath: String, authority: String): Intent

Return the intent of install app.

Target APIs greater than 25 must hold {@code }

Return

the intent of install app

Parameters

filePath

The path of file.

authority

Target APIs greater than 23 must hold the authority of a FileProvider definedin a {@code } element in your app's manifest.

open fun getInstallAppIntent(file: File, authority: String): Intent

Return the intent of install app.

Target APIs greater than 25 must hold {@code }

Return

the intent of install app

Parameters

file

The file.

authority

Target APIs greater than 23 must hold the authority of a FileProvider definedin a {@code } element in your app's manifest.

open fun getInstallAppIntent(file: File, authority: String, isNewTask: Boolean): Intent

Return the intent of install app.

Target APIs greater than 25 must hold {@code }

Return

the intent of install app

Parameters

file

The file.

authority

Target APIs greater than 23 must hold the authority of a FileProvider definedin a {@code } element in your app's manifest.

isNewTask

True to add flag of new task, false otherwise.