Created
January 8, 2015 17:36
-
-
Save chris-piekarski/45882033c4e3604e28a9 to your computer and use it in GitHub Desktop.
Install APK on Android w/Activity prompt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File f = new File(filePath); | |
Intent intent = new Intent(Intent.ACTION_VIEW); | |
intent.setDataAndType(Uri.fromFile(f), "application/vnd.android.package-archive"); | |
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); | |
startActivity(intent); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment