0

I want to check version my application then if new version is available ,download this new file and then uninstall old version and install new version. i have a web service witch hosted a 'json' file witch contain version and download path. until now ,i successfully download json and read the version and download path.and i used this link to do it. but i have problem with this code because during download new version a Chooser piker appears with ask me to choose an application with alert title "complete action using" . now after reading this link, i have couple of questions: 1)I'm doubted that did i used correct method or not ? 2) which method should i use? is my application download link a service or not ? 3)after download the new version how can i delete current version and install new version ?

I will appreciate if anyone help me .i worked on this matter for a week and i do not succeed.

Community
  • 1
  • 1
MSepehr
  • 890
  • 2
  • 13
  • 36
  • my problem is ,when i use mentioned link. downloading did not work and "complete action using" dialog appears. i don't know why.I'm confused that according to described situation ,is using mentioned link a right method to my end? – MSepehr Aug 22 '15 at 09:53

1 Answers1

-1

you can not install apk on device if you dont have root access with code. if you have root access then you can install apk silently with code follow below thread Install apps silently, with granted INSTALL_PACKAGES permission

Community
  • 1
  • 1
Kirtan
  • 1,782
  • 1
  • 13
  • 35