Search code examples
javaandroidandroid-studiogoogle-now

Can you abbreviate an app title for viewing in app drawer, but still launch it from its full name using google now?


For example if my app name was Really Long App Name the complete name might not be shown under the app icon. Say I wanted to condense that to RLAN under the app icon, but make it still accessible through a google now command like launch Really Long App Name. Is there a way to do that?


Solution

  • try this

    <activity
      android:name="come.example.MainActivity"
      android:label="@string/activity_title"<!--activity title : your short title-->
      android:icon="@drawable/ic_launcher">
      <intent-filter android:label="@string/app_name"> <!--application name : your long title-->
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
      </intent-filter>
    </activity>