Need Help: Capture App v2.9 – Error Not Resolved by "Show Percentage" Parameter Fix

Hi everyone :waving_hand:,

I’m currently maintaining a DHIS2-based Android app built using the Capture App v2.9.
While running the app, I encountered an issue that I noticed others in the community have also faced.

I came across a suggested solution which involves modifying a setting in the Android Settings Web App:

Solution Tried:

  1. Open the Android Settings Web App from the App Center.
  2. Go to Appearance > Program.
  3. Change the state of the parameter:
    Global Settings > Show Percentage (%) complete in program toolbar
    4.(This is supposed to force a parameter update)*
  4. Click Save.
  5. Revert the parameter to the original state.
  6. Click Save again.

Unfortunately, this workaround didn’t resolve the issue in my case.

:puzzle_piece: Request:

Has anyone else encountered this problem with Capture App 2.9 and found an alternative fix?

I’m attaching screenshot of the error for better clarity.
Any help or pointers would be greatly appreciated! :folded_hands:

Thanks in advance!
Mohd Nawaz
Android Developer at HSIP India

@Daniel_Tari @nancyesp

Hi @Mohd_Nawaz

May I ask where and when does this error message show up? Thanks!

Hello @Mohd_Nawaz ,

Concerning the other error you mentioned and the steps to solve it, it doesn’t seem to me that it’s the same you are facing. The exception registered is indeed a NullPointerException, but caused by a different issue.

Taking a look at the error message, I’d suggest looking for a “println” function in the code which is not being passed a message as a parameter. I couldn’t find what could be causing the issue in version 2.9 of the Capture App nor in it’s SDK version, so it may be in your custom code.

Please let us know if you need further help. Have a nice day!

Thanks @Daniel_Tari and @Gassim

I’m actually new to the DHIS2 Android Capture App platform, as I’ve recently joined the team. Previously, someone else was handling the project, so resolving a bug in an app built using the Capture App is proving to be a bit challenging for me.

If you have any beginner-friendly resources that could help me understand how to build the Capture App with some custom implementations, I’d really appreciate it. It would be a great help as I try to get up to speed.

Wishing you a great day! Looking forward to your response.

Regards,
Mohd Nawaz

Hello @Mohd_Nawaz,

As your application build version is different, I assume there will be a fork of the capture app with some customization for your organization. The first step would be to locate this source code (if you haven’t done it yet).

There are some resources in the Capture app wiki page (this page) about how to modify and build the standard Android capture app, it might be a starting point for you. And you could try to reach the person that previously managed the project to know more about the modifications and the setup. If this is possible, it will probably be the best approach.