How can I update my application from my own server by pressing a button? I found this code but it gives an error with the uri
Intent promptInstall = new Intent(Intent.ACTION_VIEW)
.setDataAndType(
Uri.parse("content:///path/to/your.apk"), "application/vnd.android.package-archive"
);
startActivity(promptInstall);