Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
404 views
in Technique[技术] by (71.8m points)

Application that uninstalls itself Xamarin.Forms C#

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...