Android Question Installing App in Background

walterf25

Expert
Licensed User
Longtime User
Hello Erel, I know there have been a few posts about whether is possible to install an apk in the background without any user interaction, and all the answers i've seen so far in this forums, are a big "NO", however i've been doing some research online and I came across this post that some guy did some time ago, I would like to see if you or someone else who is more familiar with Java can take a look at and see if it can be ported to B4A, the post can be found here http://paulononaka.wordpress.com/2011/07/02/how-to-install-a-application-in-background-on-android/.

I know an easy way to do it would be if the device is rooted, I really need to figure something out, I'm working on an app for a client and the app will run on an Android Stick, and it won't have any user interface output, meaning that the user won't be able to see the GUI while the application is running, the application is basically just a service that reads data from a USB device, sends the data to a server.

The problem is that my client needs the application to be updated remotely, since the device running the app won't have a screen then it is only obvious that when the application gets updated it doesn't require any user interaction to get installed.

Please let me know what you think, and if you have some time to take a look at the linked posted above.

Thanks,
Walter
 

walterf25

Expert
Licensed User
Longtime User
See the comments of this blog. It doesn't look like it really work.
Some say it works, some have some issues, it looks like you need a special keystore certificate to do this as well. Is there any other way without being rooted to do this Erel? I think i know the answer, but i can only hope for a good solution.

Thanks,
Walter
 
Upvote 0

walterf25

Expert
Licensed User
Longtime User
Android OS doesn't allow you to make silent installs. The only exception is with ADB (USB debugging).
uhmm, Ok, and i assume there's no way to use ADB (USB debugging) programatically to install an app?
 
Upvote 0

walterf25

Expert
Licensed User
Longtime User
If the device is connected to a computer then you can automate it from the computer.
No, this android stick will be connected to a Pulse Rate Meter all the time.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…