mpegman / epicollect

Automatically exported from code.google.com/p/epicollect
0 stars 0 forks source link

Can't synchronize #30

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I can't synchronize data from my tablet. I am able to enter data, but can't 
synchronize it.  GPS works.

What is the expected output? What do you see instead?

Which handset or browser did you notice the problem on? On what operating
system? What is the name of the Project that you were trying to use?
Android; TestDataEpi

Please provide any additional information below.
I'm using a Samsung Galaxy Note 8.0.

Original issue reported on code.google.com by Lisa.R.H...@gmail.com on 9 Jul 2013 at 10:47

GoogleCodeExporter commented 8 years ago
Does your tablet have a GSM connection? EpiCollect appears to use the IMEI 
number as an identifier for the photo, and if this is not set (due to the 
device not having a GSM module) the synchronisation fails with a null pointer 
reference.

I've submitted a fix to David which works fine on my ASUS Transformer 101 and a 
colleagues Galaxy tablet. 

The fix is to add teh following lines in the synchronize() method in 
DBaccess.java

if (sIMEI==null) {
sIMEI="null";
}

If you want to risk my self-signed version then point your browser at 
http://www.compbio.dundee.ac.uk/~dmamartin/Epi_collect.apk. Note that because 
this is signed with a different certificate you will have to uninstall your 
existing Epi_collect instance to install this one and that will erase your 
existing data.

Please let me know how you get on.

Original comment by drdmamar...@gmail.com on 15 Aug 2013 at 10:16