2016-11-08 42 views
0

我已经启动了一个Android应用程序进入谷歌播放存储,它目前正在运行。如何,该应用程序没有名称。在商店本身,它有一个名字,但是一旦你下载了它,它就消失了。像所有其他应用程序旁边的图标显示一样,但小图标下方没有名称。如何更改上传的应用程序的名称

有谁知道我可以在这里添加?我在我的AndroidManifest中看到了有关android:标签的信息,但当我更改该信息时,出现错误。这是目前android:label="@string/app_name"

这是我整个的AndroidManifest.xml

<?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

进入你的字符串资源。位于src/main/res/values中。搜索strings.xml。搜索标签app_name并更改值。如果你支持多种语言,那么你的values文件夹将会有一个类似values-ar的后缀(比如阿拉伯语),并且在他们的strings.xml中也改变它们的值。 – JacksOnF1re

+0

我已经在那里命名了。尽管 –

+0

这个名字没有出现,但是您使用了哪个名称作为活动标签title_activity_main? – JacksOnF1re

回答

0

,而不是在application标签的标签,Android是使用你的activity的标签,在它

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

。 Android试图成为最具体的。而且因为,如你所说,你的字符串资源

@string/title_activity_main 

值是空的(所以一个空字符串基本上,这是不是一个空值),你没有看到你的图标下方的任何标签。如果您在设置中打开应用程序管理器并搜索应用程序,则可以检查该问题。它应该以您的app_name资源命名。

您现在可以更改活动标签的值,或者改为(并且我认为这是您想要执行的操作),请删除<activity ... />之间的标签。