2014-02-27 26 views

回答

2

您可以在manifest文件做到這一點:

<application 
    android:icon="@drawable/application_icon" 
    android:label="@string/your_app_name" 
> 

而且在strings.xml中可以設置名稱:

<resources> 
    // other strings 
    <string name="your_app_name">Name of your App </string> 
</resources> 
+0

這是正確的答案。我必須更改名稱是res/value/strings中的app_name,否則快捷方式名稱將保持不變。非常感謝你! – aarelovich

+0

不客氣:) –

2

manifest文件中,您可以在application標籤下設置應用程序名稱,如下所示。

<application 
    android:icon="@drawable/application_icon" 
    android:label="@string/app_name" 
    > 

那麼你需要在strings.xml添加app_nameres/values/目錄。

這樣

<string name="app_name">myappname</string> 

,或者你可以直接設置

<application 
    android:icon="@drawable/application_icon" 
    android:label="myappname" 
    > 
0

在改變或有在Android清單文件中啓動意圖過濾/活動/應用標籤不同的短標籤參數會爲你

工作
android:label="short !!" 

通過意味着你需要寫

<application 
    android:icon="@drawable/application_icon" 
    android:label="@string/application_name" 
    > 

和應用程序名稱應在strings.xml中

<resources> 
    <string name="application_name">Short!!</string> 
</resources> 

訪問更多

http://developer.android.com/guide/topics/manifest/manifest-intro.html

相關問題