Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Splash Screen Added - App Name Changed

I'm working on an Android app and have just added the Splash Screen as I will be loading from SQLite on start-up...

After telling the AndroidManifest that I'd like to have my Splash activity as my LAUNCHER, it seems that it's changed the name that my app is downloaded under.

The app is now called Splash, has anyone had this problem before?

<?xml version="1.0" encoding="utf-8"?>

<uses-sdk
    android:minSdkVersion="11"
    android:targetSdkVersion="18" />

<application
    android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" >
    <activity
        android:name="com.example.codedaykcrunningapp.MainActivity"
        android:label="@string/app_name" >
    </activity>
    <activity
        android:name="com.example.codedaykcrunningapp.Workout"
        android:label="@string/title_activity_workout" >
    </activity>

    <receiver
        android:name="com.example.codedaykcrunningapp.Widget"
        android:label="@string/app_name" >
    </receiver>

    <activity
        android:name="com.example.codedaykcrunningapp.Splash"
        android:label="@string/title_activity_splash" 
        android:theme="@android:style/Theme.Black.NoTitleBar" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>

like image 239
Joe Avatar asked Apr 19 '26 05:04

Joe


1 Answers

Android is using the label name of your launcher activity so change that to your app name

change

<activity
    android:name="com.example.codedaykcrunningapp.Splash"
    android:label="@string/title_activity_splash" 
    android:theme="@android:style/Theme.Black.NoTitleBar" >
    <intent-filter>
    ....

to

<activity
    android:name="com.example.codedaykcrunningapp.Splash"
    android:label="@string/app_name" 
    android:theme="@android:style/Theme.Black.NoTitleBar" >
    <intent-filter>
    ....

this will fix your problem

like image 193
dmSherazi Avatar answered Apr 21 '26 22:04

dmSherazi