I am developing an android app in eclipse. I thought I named it optimuse, that is also the title of the folder eclipse created.
But when I run the app, the name appears as “MainActivity”. This is also displayed on the top of the window.
How can I change this. I checked my manifest and it said:
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
...
I guess I need to change @string/app_name. But where can I do that?
PS: I did try to fill in a string instead of @string/app_name, but that did not change anything.
Thanks!
EDIT:
For clarity, here is my Manifest:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.dh.optimuse"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="10"
android:targetSdkVersion="15" />
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".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>
</application>
</manifest>
open the
Strings.xmlinvaluesfolder which is located in the res folder.change the app_name to whatever you want
If you don’t know the location.just hold
ctrland move the cursor to the@string/app_nameand click. it will open strings.xml file