Add maven build config

I have added a maven build configuration. I also had to change the package for the sample because the R-file would conflict with the library. Android Library R-files don't use constants for its fields so references in switch statements would not work.