Change the Application name in Xamarin Forms - Problem

Asked

Viewed 744 times

0

I am trying to change the name of my application created in Xamarin Forms, but I can’t. I have already found these two links that explain how to do this:

App name does not appear in emulator equal appears when I’m fiddling with code

You can edit the name of a project?

I know you have to edit Androidmanifest the android:label="" field, but when I do this and put my app to run I keep watching this field and before "climbing" the application name back to what it was. For example, assuming that the name that is there is "Application" I go and change to "Meuapp" I put to run, just before starting the application the field changes again to "Application". Does anyone know how to solve this? Thanks in advance.

1 answer

2


Aletere 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 the "Name" for what you will use in your application.

  • Thanks Bruno, problem solved.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.