Launching The package installer.
Posted
by rantravee
on Stack Overflow
See other posts from Stack Overflow
or by rantravee
Published on 2010-04-15T18:10:26Z
Indexed on
2010/04/15
18:13 UTC
Read the original article
Hit count: 201
android
Hi,
I'm looking for a way to automatically start the android Package Installer , after the browser finishes downloading an apk file . Any ideas on this ? Currently after the download is over the list of downloaded files is displayed and clicking on the downloaded apk launches the Package installer . (step which I'd like to automatize)
I've thought on launching the instalation manually with code like this :
intent.setAction(android.content.Intent.ACTION_VIEW);
intent.setDataAndType(Uri.parse("file:///sdcard/downloadedApk"),
"application/vnd.android.package-archive");
startActivity(intent);
,but I'm unable to find when the download completes to execute the snipet above.
© Stack Overflow or respective owner