I wanted to create an application with a button to uninstall it or completely remove it from my mobile. I looked at many topics but nothing works with Xamarin.Forms, I wanted to know if anyone will have a solution thank you :)
private void ButtonUninstall_Clicked(object sender, EventArgs e)
{
Intent intent = new Intent(Intent.ActionDelete);
intent.SetData(Android.Net.Uri.Parse("com.companyname.calpok"));
Console.WriteLine(intent);
}
we cannot do StartActivities with Xamarin.Forms
Do you have any suggestions? or it is not possible to delete files with xamarin.forms?
question from:
https://stackoverflow.com/questions/65889916/application-that-uninstalls-itself-xamarin-forms-c-sharp 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…