I want to prompt a message with YES and NO buttons before installing an App. Suppose if I have an App "MyWorld" installed in my phone and I want to install its latest version, So on installing, I want to prompt a message "MyWorld App of version 1.1.2 is already installed, Do you want to install its latest version 1.1.3?". If user clicks on yes button, latest App should start installing else installation is terminated.
How do I achieve this?