0

I have an android application that needs to be automatically updated as soon as new version is available. I have referred the following link for updating the application:

Updater

But then it asks before updating that whether i want to replace application. I don't want that warning i want that application should automatically be updated without asking for permission. What can i do for that? Please help me..

Sanober Malik
  • 2,765
  • 23
  • 30

1 Answers1

2

I think this is not possible. Else it would be a security hole because you can force to user to install an unknown application (with malware code). All you can do is asking your users to update (and confirm the dialog) or close the app if they do not.

Terel
  • 3,857
  • 1
  • 25
  • 28
  • But its my application version update .. can't it be done without user intervention using some sort of permission or so?? – Sanober Malik Jan 29 '13 at 09:37
  • Hmm I just checked to permissions and found following one: android.permission.INSTALL_PACKAGES So maybe this will help you: http://stackoverflow.com/questions/5803999/install-apps-silently-with-granted-install-packages-permission But keep in mind that you may scare some users if they see this permision prompting while installing your app the first time. – Terel Jan 29 '13 at 09:43
  • i think its not possible to install without asking for permissions from the user. Thanks for your prompt reply. If u get something new please do inform me. – Sanober Malik Jan 29 '13 at 10:27