Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xamarin Android App update

I've been developing android apps on Xamarin for 3months now, but I am facing a problem to update the application when a new release is available. The application is not published to any app store(as we use it internally), I know Play store can do automatic updating, but I need to look for an update on our server, I would prefer if all this can be done silently(in the background). here is my current code, this copy's the app to the device:

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

this installs the app onto 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 this way it asks to install (and I don't think this is the correct way), and doesn't start my app automatically after it was installed. And I am not sure how to wait until the app finished downloading before it tries to install.

like image 849
JP Veldtman Avatar asked Apr 23 '13 15:04

JP Veldtman


People also ask

Is Xamarin being discontinued?

iOS projects should update to the latest release of . NET in order to remain on a supported version of . NET. Xamarin support will end on May 1, 2024 for all Xamarin SDKs.

Is .NET Maui replacing Xamarin?

Forms. . NET Multi-platform App UI (MAUI) is a multi-platform technology for developing mobile (iOS and Android) and desktop (Windows and Mac) applications.

How do I manually update Xamarin?

To update the Forms version, you just need to update the Forms NuGet packages. Right click on the solution and pick Manage NuGet Packages for Solution to update, updating across all the projects so they are consistent.

How do I update Xamarin project?

Go to Tools > Extensions and Updates... and click on the Installed list to check that the NuGet Package Manager for Visual Studio is at least version 2.8. 5. If it is older, click on the Updates list to download the latest version. Once you've updated the NuGet package to Xamarin.


1 Answers

I had a similar issue with an app which only gets used internally in my company. I didn't want the app going to the big wide world as the general public wouldn't have any use for it.

So, what we've done is publish the final product as 'Alpha release' in Google Play. You set up a Google Group with a set of e-mail addresses of devices that can access it, and once the app has been downloaded it will update just like any other app from Google Play.

There's an option to 'Promote' it to Beta or Production, but given that it never gets promoted it is never searchable on Google Play.

like image 128
Dave Avatar answered Sep 21 '22 12:09

Dave