applies rules for Java compiler and lint

Applies Java compiler rules (for Eclipse IDE) as well as some lint rules for Android. Team can adjust as is seen to be reasonable.