0

My application is already installed in the devise and i will get notification that you want to update, at one click i want my application get updated programmatically. Is there anyway to do...

VKJ
  • 417
  • 2
  • 8
  • 17

2 Answers2

0

Third party developers are not able to install .apk files directly without user intervention.

But you can send request to PackageManager to handle installation of new .apk file. This will show "install the app" dialog to user, and if she accepts the installation, your update will go through.

An example of the described scenario: Android: install .apk programmatically

Community
  • 1
  • 1
inazaruk
  • 74,247
  • 24
  • 188
  • 156
0

The only way i'm seeing of doing that, and its NOT a good policy it to have the initial code swapping a specific directory for classes, and if it founds one, load it by reflection on the fly and "replacing" the classe contained in the APK

I don't think this will have a good performance... and should not i repeat NOT be a policy for update.

neteinstein
  • 17,529
  • 11
  • 93
  • 123