chosenOne Thabs
chosenOne Thabs

Reputation: 1640

How to hide or mnimize a xamarin app

Does any one know how to hide or minimize a xamarin app ? I have an exit button on my app, i want to hide the app when the user clicks this exit button, just like Skype exit button.

In windows forms i use this command to hide an app :

 this.WindowState = FormWindowState.Minimized;

Upvotes: 2

Views: 3653

Answers (2)

Pankaj Singh
Pankaj Singh

Reputation: 1

Intent main = new Intent(Intent.ActionMain);
main.AddCategory(Intent.CategoryHome);
main.SetFlags(ActivityFlags.NewTask);
StartActivity(main);

Upvotes: 0

Jason
Jason

Reputation: 89082

Intent main = new Intent(Intent.ActionMain);
main.AddCategory(Intent.CategoryHome); 
StartActivity(main);

Upvotes: 4

Related Questions