0

I have an android app which is check is there any updates are available. If I have a new version number, the program should open a link and install an apk:

This would be a link:

http://sample.com/sample.apk

How can I do this?

meklod400
  • 129
  • 1
  • 2
  • 12
  • Take a look at [this question](http://stackoverflow.com/questions/4604239/install-application-programmatically-on-android), it might help you out. – mthmulders Jul 11 '13 at 08:10
  • Ive tired that but doesnt work I have just could download the file, but I need to install programatically – meklod400 Jul 11 '13 at 08:32
  • https://github.com/commonsguy/cwac-updater still it will ask user to install it ... there is no way to do this without user interaction on non rooted devices – Selvin Jul 11 '13 at 08:33
  • What doesn't work? If you downloaded the file and you know where it is stored, you can follow the procedure explained in that question, right? – mthmulders Jul 11 '13 at 08:37
  • Cause this example for local apk. But I need from external server – meklod400 Jul 11 '13 at 08:44
  • So then Why it open a webbrowser I would like to just download and ofcourse with user permission install the apk – meklod400 Jul 11 '13 at 09:00

0 Answers0