Android installs apk programmatically

Is it possible to install apk programmatically in the background or should the user accept the installation.

My scenario is that I want all my employees to have the same set of installed applications.

Of course, they can install applications on their own, but I want all of them to have at least several applications.

I'm not talking about installing applications from the market.

+7
source share
5 answers

in this link

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); 
+11
source

Let me understand this, do you want to remotely place the application on a large number of phones and install it yourself? I do not think that's possible. If so, think about the possibilities of the virus!

I think you can send APKs to phones and use something like Apps-Installer for this user, but I heard about problems with this method. However, for your situation, I would recommend trying it.

The only alternative that I can see next to the placement on the market is to manually collect all the phones you want on and manually place them on each with ADB, but that will be a huge pain.

+1
source
 adb install <apk name> 

using the above operator, we can install apk in devices. Install apk for more information.

0
source

some additional requirements would be helpful. should the user have these applications? Do you want applications to be updated through the market? here are my thoughts instead of this information ...

The problem with the fact that the market does not go through is that they will not receive notification of updates and will not see these applications in the list of โ€œmy applicationsโ€ in the market. I would change my mind that ... this is probably not what the user wants if you do not install, for example, corporate applications that are not yet available on the market.

You can create, for example, the Recommended Applications application. he can display a list of applications and indicate which ones are installed, and link to the installation page on the market. this, of course, does not force them to install the application, but in fact it is a friendlier thing.

there is also nothing stopping you from creating your own application in the market. all tools in the SDK. personally, I would hate this as a user and would prefer easier weight integration over the existing market mentioned above.

0
source

This is a huge security issue, and I don't think Android allows it!

At least I would not allow anyone or a service to install any application without telling me.

The best way is to install the console using the adb install <apk name> command. You can have the APKs on a remote server, and all employees must install them and send you console output.

0
source

All Articles