java - Setting Wrong Application Name -
i have application named umall replaced slash first activity stuck small problem don't know how handle it.. gave application name directly in application lable manifest.xml
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.ef.umall" android:versioncode="1" android:versionname="1.0" > <uses-sdk android:minsdkversion="15" android:targetsdkversion="19" /> <uses-permission android:name="android.permission.internet" /> <application android:allowbackup="true" android:icon="@drawable/app_logo" android:label="umall" android:theme="@style/apptheme" > <activity android:name=".mainactivity" android:label="" > </activity> <activity android:name=".activity.splashactivity_" android:label="@string/title_activity_splash" > <intent-filter> <action android:name="android.intent.action.main" /> <category android:name="android.intent.category.launcher" /> </intent-filter> </activity> <activity android:name=".activity.homeactivity" android:label="@string/title_activity_home" > </activity> <activity android:name=".activity.productslistactivity_" android:label="@string/title_activity_products_list" > </activity> <activity android:name=".activity.productdetail_" android:label="@string/title_activity_product_detail" > </activity> <activity android:name=".activity.cartactivity_" android:label="@string/title_activity_cart" > </activity> <activity android:name=".activity.productactivity_" android:label="@string/title_activity_product" > </activity> <activity android:name=".activity.umallbaseactivity_" android:label="@string/title_activity_umall_base" > </activity> <activity android:name=".activity.shopingchart" android:label="@string/title_activity_shoping_chart" > </activity> </application> </manifest>
can have label attribute. if it's absent label inherited parent component (either activity or application). using this, can set label launcher icon, while still having activity it's own title.
so change
<activity android:name=".activity.splashactivity_" android:label="@string/title_activity_splash" > <intent-filter> <action android:name="android.intent.action.main" /> <category android:name="android.intent.category.launcher" /> </intent-filter> </activity>
to this
<activity android:name=".activity.splashactivity_" android:label="@string/title_activity_splash" > <intent-filter android:label="umall"> <action android:name="android.intent.action.main" /> <category android:name="android.intent.category.launcher" /> </intent-filter> </activity>
better use @string/app_name
more info here
Comments
Post a Comment