24 Sept - 15:00 - Building Custom Mobile Apps with the DHIS2 Android SDK Q&A

In this discussion thread, feel free to ask questions related to the Building Custom Mobile Apps with the DHIS2 Android SDK session of the 2020 DHIS2 Digital Annual Conference. You can post your questions ahead of, during, or after the session. The panellists will check this thread for questions, and select some for responding to in the session, or follow up after the session has ended. Feel free to respond to other questions or add to them if you have something to follow up with.

The recording of this session is available on our YouTube channel.


Is it possible to use the Android SDK within Futtler/DART?

Which chart library was used in Android capture app or dhis2 related android app? I saw a pie chart and bar chart somewhere in your presentation.

How much the db access speed is affected with encryption?


@waviles @RahmanMonjur and @wpepen – the Android team was able to answer your questions live in the presentation. Hopefully you caught the answers there. If not, you can review the recording which will be posted on Youtube later today.

In all our tests no more than a 10% slower. There were some concrete queries that took a bit longer using encryption but be optimized them. So in a regular use, the user won’t notice the penalty due to the encryption.

Thanks Luis, sounds great, keep up with the good work!


Hi Juan,
Yes, it is possible to develop an Android App by using Flutter/DART, but you won’t be able to use the SDK to develop an iOs app within Flutter. The SDK will have to be added as a dependency for Android.

Do not hesitate to reach us if you need help in the community.

1 Like

Hi Monjur,
The pie chart you show in the presentation was only a design prototype, so it’s not developed yet.
Right now the DHIS2 Android app doesn’t use any chart library.

Thanks @marcos.campos. Make sense.

1 Like

Hi Marcos,

I tried the following 2 steps without success:

Step 1. Included in the application build.gradle file (android\app\build.gradle):

dependencies {
implementation “org.hisp.dhis:android-core:1.2.1”

Step 2. Added the maven line in the root build.gradle file (androd\build.gradle):

allprojects {
repositories {
maven { url ‘https://jitpack.io’ }

Message received:
FAILURE: Build failed with an exception.

What went wrong:
Could not determine the dependencies of task ‘:app:compileDebugJavaWithJavac’.
Could not resolve all task dependencies for configuration ‘:app:debugCompileClasspath’.
Could not find org.hisp.dhis.parser:dhis-antlr-expression-parser:1.0.7-SNAPSHOT.
Required by:
project :app > org.hisp.dhis:android-core:1.2.1


Any idea? For now I am just testing.

Best regards

Hi @wpepen,

sorry, you have to add an additional dependency to make it work. It won’t be required in version 1.3.0 and it is not in the documentation, sorry for the misunderstanding.

The dependency is maven { url("https://oss.sonatype.org/content/repositories/snapshots") }. You can see an example here https://github.com/dhis2/dhis2-android-skeleton-app/blob/master/app/build.gradle#L6

1 Like