Hi Friends, if you like my blog please give your valuable comments it will help to improve my blog content and enthusiasm to write a lot in android World.

Thursday, August 16, 2012

Install Android APK Programmatically


To install app programmatically use following code, you'll need user permissions though.

Intent promptInstall = new Intent(Intent.ACTION_VIEW)
    .setData(Uri.parse("file:///path/to/your.apk"))
    .setType("application/vnd.android.package-archive";
startActivity(promptInstall);

No comments:

Post a Comment