Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24659] Android: Add support for the roundIcon attribute

GitHub Issuen/a
TypeImprovement
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2019-01-09T23:17:20.000+0000
Affected Version/sn/a
Fix Version/sRelease 6.2.0, Release 8.0.0
ComponentsAndroid, Tooling
Labelsn/a
ReporterLuc-Edmond Gaspard
AssigneeGary Mathews
Created2017-05-05T00:40:23.000+0000
Updated2019-01-09T23:17:51.000+0000

Description

Android 7.1 allow applications to show a circular icon in the launcher, for devices that supports them (ex. Pixel & Pixel XL). Titanium should support the android:roundIcon attribute in AndroidManifest.xml.
 <application android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round" >

Comments

  1. Chris Barber 2017-05-05

    https://github.com/appcelerator/titanium_mobile/pull/9019
  2. Hans Knöchel 2017-05-05

    Thank you [~gaspard.le]! Hey [~gmathews], can you check this? Looks like a simple addition to the manifest.
  3. Lokesh Choudhary 2017-06-26

    Verified the fix. Specifying android:roundIcon="@mipmap/ic_launcher_round" in the tiapp.xml add it to the androidmanifest.xml. Build picks up the correct icons if round icons are included in the platform/android/res/ folder if app is built for android 25 & above. Closing. Studio Ver: 4.9.0.201705302345 SDK Ver: 6.2.0.v20170626084207 OS Ver: 10.12.3 Xcode Ver: Xcode 8.3.3 Appc NPM: 4.2.9 Appc CLI: 6.2.2 Ti CLI Ver: 5.0.14 Alloy Ver: 1.9.11 Node Ver: 6.10.1 Java Ver: 1.8.0_101 Devices: ⇨ google Nexus 5 --- Android 6.0.1 ⇨ google Pixel --- Android 7.1.1 Emulator: Android 4.4.2
  4. Nikos Poulios 2018-08-14

    The fix is valid but it seems it never made it into a release and its mistakenly marked as closed in version 6.2.0 Check https://github.com/appcelerator/titanium_mobile/blob/master/android/cli/lib/AndroidManifest.js. It is not even included in 6.2.0 branch
  5. Hans Knöchel 2018-08-14

    This is interesting. I cannot find it on master and 6_2_X either. But in any case, I think using [adaptive icons](https://developer.android.com/guide/practices/ui_guidelines/icon_design_adaptive) on Android is the way moving forward these days anyway. It adapts the icon (round, square, dynamic) based on the API-level and manufacturer. We use it for our [hyperloop-examples](https://github.com/appcelerator/hyperloop-examples) app and they can simply be created via a sample project in Android Studio and then be copied over to your app. Still, we should check what was going wrong here.
  6. Gary Mathews 2019-01-09

    master: https://github.com/appcelerator/titanium_mobile/pull/10598
  7. Lokesh Choudhary 2019-01-09

    Master PR Merged.

JSON Source