I am currently checking the application version in background every 24 hours once in my web server not in android market. If update available that it prompt the user to download the new apk.
Uri uri = Uri.parse(downloadURL);
Intent intent = new Intent(Intent.ACTION_VIEW,uri);
startActivity(intent);
The above code open the user browser and start downloading.
I want without opening the browser i need to download the apk file or i need to install the latest apk directly without opening and other application (like browser)
Do something like this
// First you need to download apk file.
// the DownloadFile function is
and after downloading the apk file write this code
// and give permission in manifest
it might help you, i used this for same as your need.