Drahflow/Utilator — pull request #3 by defel (2012-09-26 22:03:29+00:00)
Title: Dev 1

Hi Drahflow,

this are the changes I had to made to get the Utilator compiled on my android device and to get it sync.

There are references in AndroidManifest.xml to get values for @string/app_name and @drawable/icon. For this the files res/values/string.xml, res/values/drawable.xml and res/drawable-hdpi/icon.png were added.

The icon is copied from gnome-human icon set, from the file alacarte.png, which was designed by Ilya Yakubovich (@Yakubovich) and is licensed under GPL.

The change on Synchronization.java was required, because the Content-Length of the Sync-Request was not setted, as you can see in the following log:

```
POST /cgi-bin/server HTTP/1.1
Accept: application/json
Content-Type: application/json
User-Agent: Dalvik/1.6.0 (Linux; U; Android 4.0.4; Nexus S Build/IMM26)
Host: yxz
Connection: Keep-Alive
Accept-Encoding: gzip
Transfer-Encoding: chunked

4f
{"start_date":"1970-01-01","secret":"xyz","task":[],"version":1}
0
```

With this changes, and after updating the hard-coded domains (in Synchronization.java) and ssl-certificate fingerprint (in TrustManager.java) the app compiles and syncronize with the server component.

- defel