Questions tagged [android-annotations]

AndroidAnnotations is a compile time framework that helps writing simple and clean Android code that is easy to maintain.

AndroidAnnotations is a compile time framework that helps writing simple and clean Android code.

  • This tag should contain questions related to the AndroidAnnotations framework
  • This tag should not contain general java annotation related questions, or annotation processing questions
  • This tag should not contain questions related to the Android Support Annotations library

Please start by reading the wiki and the mailing list

496 questions
5
votes
3 answers

Could not find the AndroidManifest.xml file, using generation folder after Android Annotations

I can't run my project after adding the @EActivity Annotation to my class. This is my Gradle Project: // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { …
5
votes
1 answer

RestrictTo not restricting usage of restricted method

I have annotated one of my library project's method as restricted @RestrictTo(Scope.LIBRARY) even tried @RestrictTo(Scope.LIBRARY_GROUP) but this not prevent the APIs from being used in the other modules of the project. I have even tried setting…
Umang
  • 966
  • 2
  • 7
  • 17
5
votes
1 answer

Android Studio can't find javax.annotation.processing.AbstractProcessor

I want to learn Annotation, and i create a demo project. But when I create a class extends AbstractProcessor, Android Studio can't find this class. How can I add it.
Charon Chui
  • 71
  • 2
  • 8
5
votes
1 answer

Android Annotations could not find AndroidManifest.xml

I've checked a few different questions, but none of them provided a solution which worked for me. I'm developing a project with Android Annotations, and when I attempt to build my project it fails with the following error (Project_Location is simply…
5
votes
2 answers

Can't get @ViewById to work inside an @EBean

@EActivity(R.layout.data_layout) public class MyActivity extendsActivity { @Bean MyEbean bean; @AfterViews public void setupView() { bean.loadData("Test name"); } } @EBean…
Query
  • 625
  • 1
  • 7
  • 22
5
votes
1 answer

How can I send large File to Server from Android with AndroidAnnotation?

I need to send a large file from Android Tablet to a server. So now I'm using Android Annotation to do it, but now I get OutOfMemory Exception becuase my file is bigger than 35MB. I searched and I undesrstand that if I use FileOutputStream with…
PaolaG
  • 814
  • 1
  • 11
  • 27
5
votes
4 answers

AndroidAnnotations and EventBus

I have an annotated Activity in a library, which is a subscriber to an EventBus event from the same library. It looks something like this, greatly simplified: @EActivity(resName = "activity_foo") public class Foo extends Activity { public void…
Herrbert74
  • 2,578
  • 31
  • 51
5
votes
2 answers

add annotation to a field defined in parent class

I have an abstract base class, and two child classes; I have the "same" field in the two child classes, annotated each other with "different" annotations, and I want to put "up" the field into the base class, and add the annotations in the child…
Vito De Tullio
  • 2,332
  • 3
  • 33
  • 52
5
votes
1 answer

androidannotations @AfterViews is not calling and editText is null

I have a class and it extends from Fragment. Inside a class my editText is null and @AfterViews is not calling here is my code: @EFragment public class Search extends Fragment { private final String TAG = Search.class.getCanonicalName(); private…
nAkhmedov
  • 3,522
  • 4
  • 37
  • 72
5
votes
3 answers

Gradle with java 8 for retrolambda - Android cant find annotations TargetApi

I am trying to get retrolambda to work with Android build by gradle. The change to java 8 has caused some problems with android annotations. I have tried almost everything from these posts: (Se update 3 before reading all those…
5
votes
3 answers

Handling timeout with AndroidAnnotations (Spring Rest)

Basically, what I'm facing today is the following: Handle Request time out when doing Rest actions. Seems simple written, but not as easy to code. This is my implementation so far: List interceptors = new…
Reinherd
  • 5,476
  • 7
  • 51
  • 88
5
votes
1 answer

Android REST POST loses Date value

I have an Android App (Spring Android + Android Annotations + Gson) that consume REST services from a Web App (Jersey + Spring + Hibernate / JPA). The problem is that my java.util.Date properties are not serialized: Activity (Android…
falvojr
  • 3,060
  • 4
  • 31
  • 54
5
votes
0 answers

Gradle configuration.apt definition

I'm starting to use Gradle on Android Studio and when I was adding AndroidAnnotations support on my project, I found on google that I had to add the following on my gradle.build file: configurations { apt } - dependencies { apt…
Thiago
  • 337
  • 2
  • 12
5
votes
2 answers

Gradle + AndroidAnnotations generates duplicate class errors - need to clean project before every build

I have a problem with migrating my IntelliJ IDEA project to Android Studio using a gradle build. I have set up the AndroidAnnotations library like recommended in various other posts, and it works just fine. But, when compiling my project multiple…
5
votes
3 answers

Annotation import giving error on clean

I have a weird situation here. My application is using annotation in android. I had to use few of the methods which requires annotated class directly. But when ever I am cleaning my project or starting my eclipse imports is giving me error. import…
Android
  • 3,828
  • 9
  • 46
  • 79