← Back to team overview

dhis2-devs team mailing list archive

Re: Is the Android app working right now?

 

I am running the APK I downloaded from
https://www.dhis2.org/download/android/data-capture-apk.zip

  -jeff

On Wed, Sep 16, 2015 at 1:22 PM, Araz Abishov <araz.abishov.gsoc@xxxxxxxxx>
wrote:

> Hello Jeff,
>
> Which version of data capture application are you running? (From google
> play or launchpad)
>
> Best Regards,
> Araz
>
> On Wed, Sep 16, 2015 at 8:29 AM, Jeff R. Allen <jra@xxxxxxxxx> wrote:
>
>> Hello guys,
>>
>> I started playing with the Android app today, and couldn't get it to work.
>>
>> Briefly what I did was login to apps.dhis2.org as user "android" (I had
>> to change the password to be able to do so). The Android app gave an error
>> (the traceback from adb is below).
>>
>> I see that the last released version of the Android app is 2.16, so I'm
>> wondering if maybe the demo server (2.20) is out of sync. I also see
>> there's a branch called lwuit-tracking which is slightly more active than
>> tip, wondering if I should build an APK from there?
>>
>>   -jeff
>>
>> I/org.dhis2.mobile.WorkService( 1148): onCreate()
>>
>> I/org.dhis2.mobile.WorkService( 1148): Service started
>>
>> I/org.dhis2.mobile.WorkService( 1148): loginUser
>>
>> I/GET     ( 1148): https://apps.dhis2.org/demo/api/me/user-account
>>
>> I/200     ( 1148):
>> {"username":"android","firstName":"John","surname":"Barnes","email":"
>> jra@xxxxxxxxx
>> ","settings":{"keyDbLocale":null,"keyMessageSmsNotification":null,"keyUiLocale":"en","keyAnalysisDisplayProperty":null,"keyMessageEmailNotification":null}}
>>
>> I/ActivityManager(  348): START u0
>> {cmp=org.dhis2.mobile/.ui.MenuActivity} from uid 10058 on display 0
>>
>> V/WindowManager(  348): addAppToken: AppWindowToken{38e7325d
>> token=Token{61ee434 ActivityRecord{3b76b07 u0
>> org.dhis2.mobile/.ui.MenuActivity t6}}} to stack=1 task=6 at 1
>>
>> I/org.dhis2.mobile.WorkService( 1148): onDestroy()
>>
>> I/AggregateReportForm - startUpdate()( 1148): Starting update of datasets
>>
>> V/WindowManager(  348): Adding window Window{2e00fa0 u0
>> org.dhis2.mobile/org.dhis2.mobile.ui.MenuActivity} at 3 of 6 (after
>> Window{37460cb8 u0 org.dhis2.mobile/org.dhis2.mobile.ui.LoginActivity})
>>
>> I/Choreographer( 1148): Skipped 58 frames!  The application may be doing
>> too much work on its main thread.
>>
>> W/EGL_emulation( 1148): eglSurfaceAttrib not implemented
>>
>> W/OpenGLRenderer( 1148): Failed to set EGL_SWAP_BEHAVIOR on surface
>> 0xa5d47260, error=EGL_SUCCESS
>>
>> I/org.dhis2.mobile.WorkService( 1148): onCreate()
>>
>> I/org.dhis2.mobile.WorkService( 1148): Service started
>>
>> I/org.dhis2.mobile.WorkService( 1148): updateDatasets
>>
>> I/ActivityManager(  348): Displayed org.dhis2.mobile/.ui.MenuActivity:
>> +1s730ms
>>
>> I/GET     ( 1148): https://apps.dhis2.org/demo/api/me/assignedDataSets
>>
>> I/art     ( 1148): Background sticky concurrent mark sweep GC freed
>> 580(36KB) AllocSpace objects, 1(16KB) LOS objects, 6% free, 2MB/2MB, paused
>> 18.234ms total 336.173ms
>>
>> I/art     ( 1148): Background partial concurrent mark sweep GC freed
>> 2619(160KB) AllocSpace objects, 2(32KB) LOS objects, 25% free, 2MB/3MB,
>> paused 1.501ms total 233.244ms
>>
>> I/art     ( 1148): Background partial concurrent mark sweep GC freed
>> 2323(164KB) AllocSpace objects, 6(544KB) LOS objects, 24% free, 2MB/3MB,
>> paused 6.043ms total 195.089ms
>>
>> W/art     ( 1148): Suspending all threads took: 6.933ms
>>
>> I/art     ( 1148): Background sticky concurrent mark sweep GC freed
>> 29(1264B) AllocSpace objects, 0(0B) LOS objects, 0% free, 4MB/4MB, paused
>> 10.661ms total 78.987ms
>>
>> I/200     ( 1148):
>> {"organisationUnits":{"DiszpKrYNg8":{"id":"DiszpKrYNg8","label":"Ngelehun
>> CHC","level":4,"parent":"YuQRtpLP10I","dataSets":[{"id":"pBOMPrpg1QX","label":"Mortality
>> < 5
>> years"},{"id":"eZDhcZi6FLP","label":"Morbidity"},{"id":"EDzMBk0RRji","label":"HIV
>> Peadiatric monthly summary"},{"id":"lyLU2wR22tC","label":"ART monthly
>> summary"},{"id":"PLq9sJluXvc","label":"Inpatient Morbidity/Mortality
>> Summary"},{"id":"V8MHeZHIrcP","label":"Facility
>> Assessment"},{"id":"EKWVBc5C0ms","label":"MNCH Quarterly
>> Report"},{"id":"TuL8IOPzpHh","label":"EPI
>> Stock"},{"id":"ULowA8V3ucd","label":"Life-Saving
>> Commodities"},{"id":"QX4ZTUbOt3a","label":"Reproductive
>> Health"},{"id":"Rl58JxmKJo2","label":"PMTCT monthly
>> summary"},{"id":"BfMAe6Itzgt","label":"Child
>> Health"},{"id":"N4fIX1HL3TQ","label":"Staffing"},{"id":"aLpVgfXiz0f","label":"Population"},{"id":"SF8FDSqw30D","label":"TB
>> Facility reporting Form"},{"id":"VTdjfLXXmoi","label":"Clinical Monitoring
>> Checklist "},{"id":"OsPTWNqq26W","label":"TB/HIV (VCCT) monthly
>> summary"}]}},"forms":{"BfMAe6Itzgt":{"label":"Child
>> Health","subtitle":"Child
>> Health","options":{"periodType":"Monthly","openFuturePeriods":0,"expiryDays":0},"groups":[{"label":"Immunization","dataElementCount":15,"fields":[{"label":"BCG
>> doses given (Fixed,
>> <1y)","dataElement":"s46m5MS0hxu","categoryOptionCombo":"Prlt0C1RF0s","type":"INTEGER"},{"label":"BCG
>> doses given (Fixed,
>> >1y)","dataElement":"s46m5MS0hxu","categoryOptionCombo":"psbwp3CQEhs","type":"INTEGER"},{"label":"BCG
>> doses given (Outreach,
>> <1y)","dataElement":"s46m5MS0hxu","categoryOptionCombo":"V6L425pT3A0","type":"INTEGER"},{"label":"BCG
>> doses given (Outreach,
>> >1y)","dataElement":"s46m5MS0hxu","categoryOptionCombo":"hEFKSsPV5et","type":"INTEGER"},{"label":"Fully
>> Immunized child (Fixed,
>> <1y)","dataElement":"UOlfIjgN8X6","categoryOptionCombo":"Prlt0C1RF0s","type":"NUMBER"},{"label":"Fully
>> Immunized child (Fixed,
>> >1y)","dataElement":"UOlfIjgN8X6","categoryOptionCombo":"psbwp3CQEhs","type":"NUMBER"},{"label":"Fully
>> Immunized child (Outreach,
>> <1y)","dataElement":"UOlfIjgN8X6","categoryOptionCombo":"V6L425pT3A0","type":"NUMBER"},{"label":"Fully
>> Immunized child (Outreach,
>> >1y)","dataElement":"UOlfIjgN8X6","categoryOptionCombo":"hEFKSsPV5et","type":"NUMBER"},{"label":"LLITN
>> given at Penta3 (Fixed,
>> <1y)","dataElement":"z7duEFcpApd","categoryOptionCombo":"Prlt0C1RF0s","type":"NUMBER"},{"label":"LLITN
>> given at Penta3 (Fixed,
>> >1y)","dataElement":"z7duEFcpApd","categoryOptionCombo":"psbwp3CQEhs","type":"NUMBER"},{"label":"LLITN
>> given at Penta3 (Outreach,
>> <1y)","dataElement":"z7duEFcpApd","categoryOptionCombo":"V6L425pT3A0","type":"NUMBER"},{"label":"LLITN
>> given at Penta3 (Outreach,
>> >1y)","dataElement":"z7duEFcpApd","categoryOptionCombo":"hEFKSsPV5et","type":"NUMBER"},{"label":"OPV0
>> doses given (Fixed,
>> <1y)","dataElement":"x3Do5e7g4Qo","categoryOptionCombo":"Prlt0C1RF0s","type":"NUMBER"},{"label":"OPV0
>> doses given (Fixed,
>> >1y)","dataElement":"x3Do5e7g4Qo","categoryOptionCombo":"psbwp3CQEhs","type":"NUMBER"},{"label":"OPV0
>> doses given (Outreach,
>> <1y)","dataElement":"x3Do5e7g4Qo","categoryOptionCombo":"V6L425pT3A0","type":"NUMBER"},{"label":"OPV0
>> doses given (Outreach,
>> >1y)","dataElement":"x3Do5e7g4Qo","categoryOptionCombo":"hEFKSsPV5et","type":"NUMBER"},{"label":"OPV1
>> doses given (Fixed,
>> <1y)","dataElement":"pikOziyCXbM","categoryOptionCombo":"Prlt0C1RF0s","type":"NUMBER"},{"label":"OPV1
>> doses given (Fixed,
>> >1y)","dataElement":"pikOziyCXbM","categoryOptionCombo":"psbwp3CQEhs","type":"NUMBER"},{"label":"OPV1
>> doses given (Outreach,
>> <1y)","dataElement":"pikOziyCXbM","categoryOptionCombo":"V6L425pT3A0","type":"NUMBER"},{"label":"OPV1
>> doses given (Outreach,
>> >1y)","dataElement":"pikOziyCXbM","categoryOptionCombo":"hEFKSsPV5et","type":"NUMBER"},{"label":"OPV2
>> doses given (Fixed,
>> <1y)","dataElement":"O05mAByOgAv","categoryOptionCombo":"Prlt0C1RF0s","type":"NUMBER"},{"label":"OPV2
>> doses given (Fixed,
>> >1y)","dataElement":"O05mAByOgAv","categoryOptionCombo":"psbwp3CQEhs","type":"NUMBER"},{"label":"OPV2
>> doses given (Outreach,
>> <1y)","dataElement":"O05mAByOgAv","categoryOptionCombo"
>>
>> I/art     ( 1148): Background partial concurrent mark sweep GC freed
>> 1349(59KB) AllocSpace objects, 6(2MB) LOS objects, 24% free, 2MB/3MB,
>> paused 4.160ms total 252.915ms
>>
>> I/art     ( 1148): Background partial concurrent mark sweep GC freed
>> 4669(165KB) AllocSpace objects, 0(0B) LOS objects, 24% free, 3MB/4MB,
>> paused 2.435ms total 373.253ms
>>
>> I/art     ( 1148): Background sticky concurrent mark sweep GC freed
>> 20216(856KB) AllocSpace objects, 0(0B) LOS objects, 18% free, 3MB/4MB,
>> paused 5.079ms total 168.120ms
>>
>> I/GET     ( 1148):
>> https://apps.dhis2.org/demo/api/optionSets/SokRAajDrRz?links=false
>>
>> I/200     ( 1148):
>> {"created":"2013-05-29T20:40:52.849+0000","lastUpdated":"2013-05-29T20:40:52.849+0000","name":"Score
>> 1 to 5","id":"SokRAajDrRz","displayName":"Score 1 to
>> 5","version":1,"externalAccess":false,"access":{"read":true,"update":true,"externalize":false,"delete":true,"write":true,"manage":true},"userGroupAccesses":[],"options":[{"id":"XdZk00kIoEf","name":"5","code":"5","created":"2014-08-18T10:39:16.000+0000","lastUpdated":"2014-08-18T10:39:16.000+0000"},{"id":"x7H1HjJ0R64","name":"4","code":"4","created":"2014-08-18T10:39:16.000+0000","lastUpdated":"2014-08-18T10:39:16.000+0000"},{"id":"xyLZfdOzmT6","name":"3","code":"3","created":"2014-08-18T10:39:16.000+0000","lastUpdated":"2014-08-18T10:39:16.000+0000"},{"id":"gh7UOetaEsR","name":"2","code":"2","created":"2014-08-18T10:39:16.000+0000","lastUpdated":"2014-08-18T10:39:16.000+0000"},{"id":"uITJhISRxcz","name":"1","code":"1","created":"2014-08-18T10:39:16.000+0000","lastUpdated":"2014-08-18T10:39:16.000+0000"}]}
>>
>> W/System.err( 1148): com.google.gson.JsonSyntaxException:
>> java.lang.IllegalStateException: Expected STRING but was BEGIN_OBJECT
>>
>> W/System.err( 1148): at
>> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:176)
>>
>> W/System.err( 1148): at com.google.gson.Gson.fromJson(Gson.java:803)
>>
>> W/System.err( 1148): at com.google.gson.Gson.fromJson(Gson.java:868)
>>
>> W/System.err( 1148): at com.google.gson.Gson.fromJson(Gson.java:841)
>>
>> W/System.err( 1148): at
>> org.dhis2.mobile.ui.fragments.FormsDownloadProcessor.updateOptionSets(FormsDownloadProcessor.java:365)
>>
>> W/System.err( 1148): at
>> org.dhis2.mobile.ui.fragments.FormsDownloadProcessor.downloadDatasets(FormsDownloadProcessor.java:141)
>>
>> W/System.err( 1148): at
>> org.dhis2.mobile.ui.fragments.FormsDownloadProcessor.updateDatasets(FormsDownloadProcessor.java:86)
>>
>> W/System.err( 1148): at
>> org.dhis2.mobile.WorkService.runMethod(WorkService.java:145)
>>
>> W/System.err( 1148): at
>> org.dhis2.mobile.WorkService.access$000(WorkService.java:54)
>>
>> W/System.err( 1148): at
>> org.dhis2.mobile.WorkService$1.run(WorkService.java:92)
>>
>> W/System.err( 1148): at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
>>
>> W/System.err( 1148): at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
>>
>> W/System.err( 1148): at java.lang.Thread.run(Thread.java:818)
>>
>> W/System.err( 1148): Caused by: java.lang.IllegalStateException: Expected
>> STRING but was BEGIN_OBJECT
>>
>> W/System.err( 1148): at
>> com.google.gson.internal.bind.JsonTreeReader.nextString(JsonTreeReader.java:154)
>>
>> W/System.err( 1148): at
>> com.google.gson.internal.bind.TypeAdapters$13.read(TypeAdapters.java:358)
>>
>> W/System.err( 1148): at
>> com.google.gson.internal.bind.TypeAdapters$13.read(TypeAdapters.java:346)
>>
>> W/System.err( 1148): at
>> com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40)
>>
>> W/System.err( 1148): at
>> com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:81)
>>
>> W/System.err( 1148): at
>> com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:60)
>>
>> W/System.err( 1148): at
>> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:93)
>>
>> W/System.err( 1148): at
>> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:172)
>>
>> W/System.err( 1148): ... 12 more
>>
>> W/System.err( 1148): org.dhis2.mobile.io.json.ParsingException: The
>> incoming Json is bad/malicious
>>
>> W/System.err( 1148): at
>> org.dhis2.mobile.ui.fragments.FormsDownloadProcessor.updateOptionSets(FormsDownloadProcessor.java:370)
>>
>> W/System.err( 1148): at
>> org.dhis2.mobile.ui.fragments.FormsDownloadProcessor.downloadDatasets(FormsDownloadProcessor.java:141)
>>
>> W/System.err( 1148): at
>> org.dhis2.mobile.ui.fragments.FormsDownloadProcessor.updateDatasets(FormsDownloadProcessor.java:86)
>>
>> W/System.err( 1148): at
>> org.dhis2.mobile.WorkService.runMethod(WorkService.java:145)
>>
>> W/System.err( 1148): at
>> org.dhis2.mobile.WorkService.access$000(WorkService.java:54)
>>
>> W/System.err( 1148): at
>> org.dhis2.mobile.WorkService$1.run(WorkService.java:92)
>>
>> W/System.err( 1148): at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
>>
>> W/System.err( 1148): at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
>>
>> W/System.err( 1148): at java.lang.Thread.run(Thread.java:818)
>>
>> I/org.dhis2.mobile.ui.fragments.FormsDownloadProcessor( 1148): Download
>> finished
>>
>> I/org.dhis2.mobile.WorkService( 1148): onDestroy()
>>
>>
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~dhis2-devs
>> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>

Follow ups

References