里面有一行这个<application android:icon="@drawable/icon" android:label="@string/app_name">还有一行
<activity android:name=".Hello" android:label="@string/app_name">下面这一行在activity里面的label代表的是显示界面上的提示栏显示的文字,但是我不知道的是上面那一行application里面的label是干什么用的?
求高手指教不胜感激

解决方案 »

  1.   

    android:label 
    A user-readable label for the application as a whole, and a default label for each of the application's components.  
    android:label 
    A user-readable label for the activity. The label is displayed on-screen when the activity must be represented to the user. It's often displayed along with the activity icon. 
    If this attribute is not set, the label set for the application as a whole is used instead (see the <application> element's label attribute). 第一个是application的解释,第二个是activity的。
    application定义的是整个应用每个组件默认标签,当activity的标签没设置则使用application定义的标签