Enums and android annotation intDef

The main idea of IntDef annotation is to use set of int constants like an enum, but without enum. In this case you have to declare all constants manually. @IntDef({Status.IDLE, Status.PROCESSING, Status.DONE, Status.CANCELLED}) @Retention(RetentionPolicy.SOURCE) @interface Status { int IDLE = 0; int PROCESSING = 1; int DONE = 2; int CANCELLED = 3; } You … Read more

Dagger and Butter Knife vs. Android Annotations

AndroidAnnotations uses compile time annotation processing. It generates a sub class with an underscore apppended to the original name (MyActivity_ generated from MyActivity). So to have it work you always have to use the generated class for references instead of your original class. It has a very rich feature set, see the list of available … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)