Preference is a project mainly written in Java, it's free.
this is android code and Preference TEST Code.