标题: How to install and run an apk file in android? [打印本页] 作者: DDD888 时间: 28-6-2013 08:54 标题: How to install and run an apk file in android? Good morning,
I am implementing auto update my application in Android using xamarin C#. I can install the application from sd card fine using this code.
Intent intent = new Intent(Intent.ActionView);
intent.SetDataAndType(Uri.FromFile(new Java.IO.File(localFileName)), "application/vnd.android.package-archive");
HomeContext.StartActivity(intent);
But I can not do like google play store once install and allow the end user to run the installed application. How can I do it? Another question is how to add a shortcut to desktop by code?
TIA作者: DDD888 时间: 28-6-2013 09:47
I managed to get open application to run button shown after install. Here is the code.