installApp

open fun installApp(filePath: String, authority: String)

Install the app.

Target APIs greater than 25 must hold {@code }

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 installApp(file: File, authority: String)

Install the app.

Target APIs greater than 25 must hold {@code }

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 installApp(activity: Activity, filePath: String, authority: String, requestCode: Int)

Install the app.

Target APIs greater than 25 must hold {@code }

Parameters

activity

The activity.

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.

requestCode

If >= 0, this code will be returned in onActivityResult() when theactivity exits.

open fun installApp(activity: Activity, file: File, authority: String, requestCode: Int)

Install the app.

Target APIs greater than 25 must hold {@code }

Parameters

activity

The activity.

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.

requestCode

If >= 0, this code will be returned in onActivityResult() when theactivity exits.