Use activity-alias to show a separate name/icon in the launcher.

By default android will use the title and icon of the the starting
activity in the launcher. This can be overriden using an activity-alias
as the default activity, with its own title and icon.

Change-Id: I794b6738fdc383879b3c056c61f62fecbb268c5a
This commit is contained in:
Andrzej J.R. Hunt 2012-09-20 20:57:14 +02:00
parent 67cde863f6
commit c630a2458e
2 changed files with 11 additions and 13 deletions

View File

@ -1,9 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry combineaccessrules="false" kind="src" path="/abs-lib"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>

View File

@ -13,22 +13,29 @@
android:targetSdkVersion="10" />
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/Theme.ImpressRemote"
android:title="@string/app_name"
android:icon="@drawable/ic_launcher" >
android:title="@string/app_name" >
<activity
android:name=".SelectorActivity"
android:icon="@drawable/actionbar_icon_computer"
android:label="@string/selector_choose_a_computer"
android:title="@string/app_name"
android:uiOptions="splitActionBarWhenNarrow" >
</activity>
<activity-alias
android:name=".FakeLauncher"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:targetActivity=".SelectorActivity" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</activity-alias>
<activity
android:name=".PairingActivity"
android:icon="@drawable/actionbar_icon_computer"