Sohu Tech Products
Sohu Tech Products
Jul 10, 2019 · Mobile Development

Using Annotation Processing Tool (APT) for Automated Code Generation in Android Development

This article explains the concept and practical application of the Annotation Processing Tool (APT) in Android development, demonstrating how to set up an APT project, define annotations, process them with custom processors, and automatically generate Java code for activity navigation using JavaPoet.

AndroidAnnotation ProcessingJavaPoet
0 likes · 15 min read
Using Annotation Processing Tool (APT) for Automated Code Generation in Android Development
Tencent Music Tech Team
Tencent Music Tech Team
Oct 14, 2016 · Mobile Development

Understanding ButterKnife: Dependency Injection in Android with JavaPoet and Annotation Processing

ButterKnife is a compile‑time, annotation‑based dependency injection library for Android that uses JavaPoet‑generated helper classes to replace repetitive findViewById calls, offering faster development and runtime performance while adding a modest number of auxiliary classes and a one‑time reflection cost.

AndroidAnnotation ProcessingButterKnife
0 likes · 20 min read
Understanding ButterKnife: Dependency Injection in Android with JavaPoet and Annotation Processing