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.
Asked
Active
Viewed 1,644 times
0
-
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 Answers
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
-
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