Xamarin Android App Update

I have been developing Android applications on Xamarin for 3 months now, but there is a problem updating the application before updating the application. The application is not published in any application store (as we use it internally), I know that it is possible to perform an automatic update in the Play Store, but I need to look for an update on our server, I would prefer that all this can be done silently ( into the background). here is my current code, copy the application to the device:

intent.SetData(Android.Net.Uri.Parse(@"http://xxxxx/downloads/app.test-signed.apk"));
StartActivity(intent);

this installs the application on the device:

intent.SetDataAndType(Android.Net.Uri.FromFile(new Java.IO.File(Android.OS.Environment.ExternalStorageDirectory.Path + 
"/app.test-signed.apk")), "application/vnd.android.package-archive");
StartActivity(intent);

but in this way he asks to install (and I don’t think that this is the right way), and does not start my application automatically after installing it. And I'm not sure how to wait until the application finishes downloading before it tries to install.

+5
2

, . , , .

, "Alpha release" Google Play. Google , , , , Google Play.

"" Beta Production, , , , Google Play.

+2

, root.

Xamarin.

, , Google Play. , Google Play , Private Channel .

Private Channel .

0

All Articles