The title of my SplashActivity
is quite long, so appears truncated beneath the launch icon on the device's home screen.
I want a shorter title shown beneath the launch icon, but a longer title shown in the Activity's action bar.
So, to try and achieve this I have specified a shorter title in the manifest...
<activity
android:name=".SplashActivity"
android:label="@string/app_name_short"
android:launchMode="singleTop" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
...and I'm using...
setTitle(getString(R.string.app_name));
...in the onCreate()
method of SplashActivity
so that the full title appears in the action bar.
It works, but only after about a 1 second delay. (So when SplashActivity
is displayed, it shows the short title for 1 second before changing to the longer title.)
Is there any way I can fix this or any known workaround?
I've also tried creating a PreSplashActivity
(with a short title) as the launch activity, including code to immediately launch SplashActivity
(with a long title), but PreSplashActivity
is still displayed for 1 second (even though it doesn't call setContentView()
, so I'm a bit stumped.
Any ideas?