0

In my application, i am installing other apks on the start of the application to create a runtime environment. I have 3 more apks to install on the start of application and i want to do it at the runtime but i dont want any message of installation for apks. Installation should be done on the background automatically. thanks.

Neetesh
  • 917
  • 1
  • 6
  • 16
  • For every apk installation Android checks for the certificate before installation, so do not know if this can be done! – Deepak Dec 27 '11 at 12:09

1 Answers1

0
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(new File(Environment.getExternalStorageDirectory() + "/download/" + "app.apk")),"application/vnd.android.package-archive");
startActivity(intent);

follow the link - Android install apk programmatically

Community
  • 1
  • 1
Neetesh
  • 917
  • 1
  • 6
  • 16
  • I want solution that do not ask for the installation, only install at the background without the installation message. – user1117571 Dec 27 '11 at 12:14
  • I dont think it is merely possible because android do ask for the confirmation. There may be variable result by the user. – Neetesh Dec 27 '11 at 12:24
  • you can go with services either. create a services and write the above code on onCreate method. check and let me know if it works. – Neetesh Dec 27 '11 at 14:01