Normally there are three different ways to do this:
- at run time (via annotations per reflection)
- at compile time (via annotations or aspects)
- at development time (via code generators)
A good article to start is Clean Code in Android Applications.
Ad 1) Two solutions, see
- RoboGuice, see http://code.google.com/p/roboguice/
- AndJect, see https://github.com/ko5tik/andject
Ad 2) Android Annotations, see http://androidannotations.org/
Ad 3) Two solutions, see
- the lazy-android plugin as mentioned in this thread, see
http://marketplace.eclipse.org/content/lazy-android - MotoDev Studio (available as standalone and as eclipse plugin), see http://developer.motorola.com/docstools/motodevstudio/
Be a lazy but a productive android developer – Part 7 – Useful tools
http://www.technotalkative.com/lazy-android-part-7-useful-tools/