-1

I am using the below code for updating the apk for my application on the Login button. The code works as follows :

I have a text file in a folder on the server which maintains the apk version number and the apk also in the same folder. The apk first downloads the text file and then reads the contents in the file, if the version is greater than the current apk version it downloads the apk from the server and installs it. During the installation process i get dialog box as enter image description here

There is nothing that i have written in the code that will invoke this dialog box..Is it possible to change the message as Update Application instead of Replace Application ????? I am aware that this is a device generated message. But is there a possibility to change it??? Please help!!!

Thanks in advance.!

shivani
  • 746
  • 3
  • 22
  • 40
  • One way to overcome this would be to change the package name in either one of the .apk's. However then you are not essentially updating but replacing. – Skynet Aug 13 '14 at 11:42
  • @ByzantineFailure i dont want to install another apk. The apk should be replaced but i just want to change the message of the dialog box. – shivani Aug 13 '14 at 11:45
  • That wont be possible then unfortunately. (under normal circumstances) – Skynet Aug 13 '14 at 11:50

1 Answers1

1

You cannot change this message. It is part of Android framework and will pop up each time you install application with the same package id as already installed one (updating).

Marcin Orlowski
  • 72,056
  • 11
  • 123
  • 141