Changing the Application Name in Xamarin Forms - Problem

0

I'm trying to rename my application created in Xamarin Forms, but I can not. I already found these two links that explain how to do this:

Application name does not appear in the same emulator it appears when I am touching the code

You can edit the name of a project?

I know I have to edit the AndroidManifest field android: label="", but when I do this and put my application to run I keep looking at this field and before "uploading" the application the name goes back to being that was. For example, assuming that the name that is there is "Application" I go and change to "MyApp" I place to run, just before starting the application the field changes again to "Application". Does anybody know how to solve this? Thanks in advance.

    
asked by anonymous 26.06.2018 / 20:16

1 answer

2

Flip the line in your MainActitivity.cs

     [Activity(Label = "Nome", Icon = "@mipmap/icon", Theme = "@style/splashscreen", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
 public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
    {
....

}

[Activity(Label = "Nome" ... replace "Name" for what you will use in your application.

    
26.06.2018 / 21:31