LoginSignup
22
24

More than 5 years have passed since last update.

Launcher に表示されるアプリ名は intent-filter で設定する

Last updated at Posted at 2012-09-19

Launcher っていう呼び名が既に分かりづらい(のでアプリのアイコン名と呼ぶことにします)ですが、ホームアプリとかの事です。

AndroidManifest.xml
<application
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_label" >

    <activity
        android:name=".MainActivity"
        android:label="@string/activity_label_main" >
        <intent-filter
            android:label="@string/launcer_label"> ←────ここ!
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>

<intent-filter android:label= を省略すると、起動する Activity の label がアプリのアイコン名になります。

参考

22
24
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
22
24