2016-11-08 4 views
0

Ich habe eine Android-Anwendung in den Google Play Store gestartet und es ist derzeit live. Wie auch immer, die App hat keinen Namen. Im Store selbst hat es einen Namen, aber sobald Sie es heruntergeladen haben, ist es weg. So wie das Symbol neben allen anderen Apps angezeigt wird, befindet sich unter dem kleinen Symbol kein Name.Wie ändere ich den Namen der hochgeladenen Anwendung

Weiß jemand, wo ich das hinzufügen kann? Ich habe etwas über das Android-Label in meinem AndroidManifest gesehen, aber ich bekomme Fehler, wenn ich das ändere. Es ist zur Zeit android:label="@string/app_name"

Das ist meine ganze AndroidManifest.xml ist

<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
    package="com.informatie.rodekruis" 
    android:versionCode="2" 
    android:versionName="1.1" > 

    <uses-sdk 
     android:minSdkVersion="8" 
     android:targetSdkVersion="21" /> 

    <application 
     android:allowBackup="true" 
     android:label="@string/app_name" 
     android:supportsRtl="true" 
     android:theme="@style/AppTheme" 
     android:icon="@mipmap/app_logo" > 
     <activity 
      android:name="com.example.rodekruis.MainActivity" 
      android:label="@string/title_activity_main" > 
      <intent-filter> 
       <action android:name="android.intent.action.MAIN" /> 

       <category android:name="android.intent.category.LAUNCHER" /> 
      </intent-filter> 
     </activity> 
     <activity 
      android:name="com.example.rodekruis.BezoekActivity" 
      android:label="@string/title_activity_bezoek" > 
      <intent-filter> 
       <action android:name="android.intent.category.DEFAULT" /> 

       <category android:name="com.example.rodekruis.BEZOEKACTIVITY" /> 
      </intent-filter> 
     </activity> 
     <activity 
      android:name="com.example.rodekruis.AfspraakActivity" 
      android:label="@string/title_activity_afspraak" > 
      <intent-filter> 
       <action android:name="android.intent.category.DEFAULT" /> 

       <category android:name="com.example.rodekruis.AFSPRAAKACTIVITY" /> 
      </intent-filter> 
     </activity> 
     <activity 
      android:name="com.example.rodekruis.ContactActivity" 
      android:label="@string/title_activity_contact" > 
      <intent-filter> 
       <action android:name="android.intent.category.DEFAULT" /> 

       <category android:name="com.example.rodekruis.CONTACTACTIVITY" /> 
      </intent-filter> 
     </activity> 
     <activity 
      android:name="com.example.rodekruis.MeningActivity" 
      android:label="@string/title_activity_mening" > 
      <intent-filter> 
       <action android:name="android.intent.category.DEFAULT" /> 

       <category android:name="com.example.rodekruis.MENINGACTIVITY" /> 
      </intent-filter> 
     </activity> 
     <activity 
      android:name="com.example.rodekruis.RouteActivity" 
      android:label="@string/title_activity_route" > 
      <intent-filter> 
       <action android:name="android.intent.category.DEFAULT" /> 

       <category android:name="com.example.rodekruis.ROUTEACTIVITY" /> 
      </intent-filter> 
     </activity> 
     <activity 
      android:name="com.example.rodekruis.SpecialistenActivity" 
      android:label="@string/title_activity_specialisten" > 
      <intent-filter> 
       <action android:name="android.intent.category.DEFAULT" /> 

       <category android:name="com.example.rodekruis.SPECIALISTENACTIVITY" /> 
      </intent-filter> 
     </activity> 
     <activity 
      android:name="com.example.rodekruis.BWCActivity" 
      android:label="@string/title_activity_bwc" > 
      <intent-filter> 
       <action android:name="android.intent.category.DEFAULT" /> 

       <category android:name="com.example.rodekruis.BWCACTIVITY" /> 
      </intent-filter> 
     </activity> 
     <activity 
      android:name="com.example.rodekruis.AgendaActivity" 
      android:label="@string/title_activity_agenda" > 
      <intent-filter> 
       <action android:name="android.intent.category.DEFAULT" /> 

       <category android:name="com.example.rodekruis.AGENDAACTIVITY" /> 
      </intent-filter> 
     </activity> 
     <activity 
      android:name="com.example.rodekruis.InfoActivity" 
      android:label="@string/title_activity_informatie" > 
      <intent-filter> 
       <action android:name="android.intent.category.DEFAULT" /> 

       <category android:name="com.example.rodekruis.INFOACTIVITY" /> 
      </intent-filter> 
     </activity> 
     <activity 
      android:name="com.example.rodekruis.VriendActivity" 
      android:label="@string/title_activity_vriend" > 
      <intent-filter> 
       <action android:name="android.intent.category.DEFAULT" /> 

       <category android:name="com.example.rodekruis.VRIENDACTIVITY" /> 
      </intent-filter> 
     </activity> 
     <activity 
      android:name="com.example.rodekruis.FoldersActivity" 
      android:label="@string/title_activity_folders" > 
      <intent-filter> 
       <action android:name="android.intent.category.DEFAULT" /> 

       <category android:name="com.example.rodekruis.FOLDERSACTIVITY" /> 
      </intent-filter> 
     </activity> 
     <activity 
      android:name="com.example.rodekruis.NieuwsActivity" 
      android:label="@string/title_activity_nieuws"> 
      <intent-filter> 
       <action android:name="android.intent.category.DEFAULT" /> 

       <category android:name="com.example.rodekruis.NIEUWSACTIVITY" /> 
      </intent-filter> 
     </activity> 
    </application> 

</manifest> 
+0

Gehen Sie in die Zeichenfolge Ressourcen. Das Hotel befindet sich in src/main/res/values. Suche nach strings.xml. Suchen Sie das Tag app_name und ändern Sie den Wert. Wenn Sie mehrere Sprachen unterstützen, wird Ihr Wertordner ein postfix wie values-ar (wie arabic) haben und die Werte auch innerhalb ihrer strings.xml ändern. – JacksOnF1re

+0

Ich habe es dort schon genannt. Dieser Name wird jedoch nicht angezeigt –

+0

Welchen Namen haben Sie für das Aktivitätenlabel title_activity_main verwendet? – JacksOnF1re

Antwort

0

Statt Ihr Etikett im application Tag, Android wird das Etikett des activity verwenden, die

<intent-filter> 
<action android:name="android.intent.action.MAIN" /> 
<category android:name="android.intent.category.LAUNCHER" /> 
</intent-filter> 

in sich hat . Android versucht, am spezifischsten zu sein. Und weil, wie Sie sagten, Ihr Wert für die Zeichenfolge-Ressource

@string/title_activity_main 

leer ist (also eine leere Zeichenfolge im Grunde, die nicht ein leerer Wert ist) Sie sehen keine Label unter Ihrem Symbol. Sie können dies überprüfen, wenn Sie den Anwendungsmanager in den Einstellungen öffnen und nach Ihrer Anwendung suchen. Es sollte nach Ihrer app_name Ressource benannt werden.

Sie können jetzt entweder den Wert für Ihre Aktivitätsbeschriftung ändern, oder stattdessen (und ich nehme an, dass dies das ist, was Sie tun möchten), entfernen Sie die Beschriftung zwischen <activity ... />.

Verwandte Themen