Android reinstall the same program -


i update program. when start program check if available updates. if download , try install these:

intent intent = new intent(intent.action_view);         intent.setdataandtype(uri.fromfile(new file(environment.getexternalstoragedirectory() + "/download/" + "own.apk")), "application/vnd.android.package-archive");         startactivity(intent);  

the program reach install dialog when click program shutdown. think cause reinstall same program. solutions reinstall or changed new updates?

don't ruin pattern android costructed. if there available update , user wants update send them google play.


Comments