Update to Android api level 18, set dependencies, formatting