I am trying to create an app that installs another .apk file from assets.
var tmpPath = Android.OS.Environment.ExternalStorageDirectory.Path + "/tmp_app.apk";
using (var asset = Assets.Open("Test/Cnd.apk")) using (var dest = File.Create (tmpPath)) asset.CopyTo (dest);
Intent setupIntent = new Intent(Intent.ActionView);
setupIntent.SetData(Android.Net.Uri.FromFile(new Java.IO.File(tmpPath)));
setupIntent.SetType("application/vnd.android.package-archive");
StartActivity(setupIntent);
But If I run it at emulator I got "No activity found to handle intent" exception. If I run it at mobile device I got "Java.Lang.Throwable" exception. I checked sdcard at device, so file was successfully copied from assets and exists.