Simple solution: you can create a Windows service or just publish a .xml file containing a checksum <checksum>3203025</checksum>
http://prueba.agenciareforma.com/appiphone/android/checksumdb.xml
<?xml version="1.0" encoding="UTF-8"?>
<mobiledb>
<nombre>Stiri IASI</nombre>
<urlDB>http://jorgesys.com/appiphone/android/stiridb.db</urlDB>
<checksum>3203025</checksum>
</mobiledb>
the checksum changes with changes to db http://jorgesys.com/appiphone/android/stiridb.db.
Then check if the current checksum is different to the last, so download db with the new changes.
example:
String checksumDB = readUrlDatabaseChecksum();
String lastDBChecksum = readDBChecksum();
if(!checksumFeed.equals(checksumDB)){
Log.i(TAG, "*** Downloading new Database!");
downloadDatabase();
saveDBChecksum();
}else{
Log.i(TAG, "*** Database hasn´t changed!");
}
source
share