Statkart in MOBAC

After installing Android on my HD2 I was left with the task of finding another offline map application for the Android as my favourite app for Windows Mobile (NaviComputer) isn't available. I ended up with oruxmap an excellent map application for Android, and it is free but I strongly recommend anyone that uses the application on a regular basis to donate. The Oruxmaps application uses Mobile Atlas Creator (MOBAC) to download maps on your PC and transfer them to the phone for later use (you can also do this on the phone but it is by far better to do it on you regular computer in my opinion). The only problem then is that the later versions of MOBAC do not support Statkart as a map source so you are left with the option of adding this as a custom map source on your own. After searching the internet for the xml-code, finding nothing, I thought I could make it on my own. Just posting it here to save others the trouble. See MOBAC readme for instructions on how to add custom map sources in MOBAC.

<?xml version="1.0" encoding="UTF-8"?>
<customMapSource>
  <name>Statkart</name>
  <minZoom>0</minZoom>
  <maxZoom>17</maxZoom>
  <tileType>jpg</tileType>
  <tileUpdate>IfNoneMatch</tileUpdate>
  <url>http://opencache.statkart.no/gatekeeper/gk/gk.open_gmaps?layers=topo2&amp;zoom={$z}&amp;x={$x}&amp;y={$y}</url>
  <backgroundColor>#000000</backgroundColor>
</customMapSource>