# Change the logo of DHIS2 Capture app

**URL:** <https://community.dhis2.org/t/change-the-logo-of-dhis2-capture-app/53952>\
**Category:** SDK - Android Development\
**Tags:** android\
**Created:** [13 July 2023 03:35 UTC](https://community.dhis2.org/t/change-the-logo-of-dhis2-capture-app/53952 "2023-07-13T03:35:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gerald\_Thomas](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/gerald_thomas/32/43379_2.png) [@Gerald\_Thomas](https://community.dhis2.org/u/Gerald_Thomas)\
**Post date:** [13 July 2023 03:35 UTC](https://community.dhis2.org/t/change-the-logo-of-dhis2-capture-app/53952/1 "2023-07-13T03:35:14Z")

</div>

Dear all,

I have three instances where the client needs to capture data using the capture app and receive training simultaneously. The first instance has a customized capture app and training app. The second instance uses the DHIS2 capture app and training app. Now, for the final instance, I would like to utilize the DHIS capture app, but with a modified logo and name to differentiate it slightly from the standard capture app. Will this approach work? I have followed the steps outlined in the provided manual ([Modifying the APK · dhis2/dhis2-android-capture-app Wiki · GitHub](https://github.com/dhis2/dhis2-android-capture-app/wiki/Modifying-the-APK)), but the training logo is still visible. How can I edit this aspect of the logo?

Here is the XML code snippet you shared for the adaptive icon:

xml

```auto
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
    <background android:drawable="@color/ic_launcher_background"/>
    <foreground android:drawable="@drawable/ic_launcher_foreground"/>
</adaptive-icon>

```

 ![Screenshot 2023-07-12 at 16.39.08](https://dhis2.b-cdn.net/uploads/default/original/3X/2/2/22511be2d25be1fc6ed7ff108d8feb66eccccfff.jpeg)

---

<div class="post-metadata">

**Author:** ![Pablo](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/pablo/32/27191_2.png) [@Pablo](https://community.dhis2.org/u/Pablo)\
**Post date:** [13 July 2023 09:25 UTC](https://community.dhis2.org/t/change-the-logo-of-dhis2-capture-app/53952/2 "2023-07-13T09:25:50Z")

</div>

Hi @Gerald_Thomas,

You need to change the xml files named `ic_launcher_foregroung`. The training version uses a file stored in the `debug\res\drawable` folder while the standard version file is in the `main\res\drawable`.  
You may also need to change the png files to support some android versions. You can use the resource manager in Android to add a new _Image Asset_ as shown here:  
 ![image](https://dhis2.b-cdn.net/uploads/default/original/3X/e/6/e609bee09b6828a0a1a6228e28e5e704d27517af.png)

---

<div class="post-metadata">

**Author:** ![Quoda](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/quoda/32/39494_2.png) [@Quoda](https://community.dhis2.org/u/Quoda)\
**Post date:** [21 August 2023 13:25 UTC](https://community.dhis2.org/t/change-the-logo-of-dhis2-capture-app/53952/3 "2023-08-21T13:25:25Z")

</div>

Hi @Pablo @Gassim  
I am currently working on changing the logo of the dhis2 capture app, and stuck!  
Although I loaded/replaced the new logo using the Image Asset as you mentioned here (and therefore, I can now find the loaded image under …main/res/mitmap-X and I still see the dhis2 training logo under …debug/res/mitmap), when I run the app it kind of runs the training application instead and shows the training logos. How can I get the ‘main’ app to be running instead of the ‘training’ app? I am new to android studio, thanks for the help.

---

<div class="post-metadata">

**Author:** ![Quoda](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/quoda/32/39494_2.png) [@Quoda](https://community.dhis2.org/u/Quoda)\
**Post date:** [22 August 2023 10:40 UTC](https://community.dhis2.org/t/change-the-logo-of-dhis2-capture-app/53952/4 "2023-08-22T10:40:22Z")

</div>

@jaime.bosque Any help on this?

---

<div class="post-metadata">

**Author:** ![andresmr](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/andresmr/32/30266_2.png) [@andresmr](https://community.dhis2.org/u/andresmr)\
**Post date:** [1 September 2023 06:12 UTC](https://community.dhis2.org/t/change-the-logo-of-dhis2-capture-app/53952/5 "2023-09-01T06:12:23Z")

</div>

Hi @Quoda , If you want to run the production app instead of the training one, you need to change the build variants (by default it uses to be debug which is the training app), so in the Build Variants panel in Android Studio yo can swipe to “dhisRelease” variant and run the app.  
Let me know if this helps you.  
 ![image](https://dhis2.b-cdn.net/uploads/default/original/3X/e/8/e817d8dbc26a3ddc67e26d18e3c7f151f74de8a0.png)

---

<div class="post-metadata">

**Author:** ![Quoda](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/quoda/32/39494_2.png) [@Quoda](https://community.dhis2.org/u/Quoda)\
**Post date:** [1 September 2023 07:09 UTC](https://community.dhis2.org/t/change-the-logo-of-dhis2-capture-app/53952/6 "2023-09-01T07:09:45Z")

</div>

Hi @andresmr  
Thanks so much for this. This is something I had not been able to figure out, and was working with the debug/training build.

I am new to android studio and this is very helpful! Thank you.
