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
4
votes
7 answers

AndroidAnnotations + Android Studio - The generated null.R class cannot be found

I have setup ActiveAndroid as per the wiki instructions using latest version of AndroidStudio. I am using product Flavours. This is my gradle build file: apply plugin: 'android' apply plugin: 'android-apt' apt { arguments { …
user3707
  • 1,470
  • 2
  • 15
  • 21
4
votes
1 answer

android implement methods to different api levels

I saw in a android video from google developers that they implemented two methods and defined via annotation what method should be called based on the api level. Unfortunatelly, I can`t find the video anymore(I can't remember which video was), so I…
jonathanrz
  • 4,206
  • 6
  • 35
  • 58
4
votes
2 answers

Maven + AndroidAnnotations generated but not reachable classes

Alright. I'm attempting to create a project which is perfectly build able by using maven, and maven only. Currently I'm facing this issue of classes being generated, and working fine, as long as there is no reference in actual java code. Meaning,…
Daneo
  • 508
  • 3
  • 17
4
votes
2 answers

How to cancel a @Background task with AndroidAnnotations

My use case is that whenever an user types something an EditText, the input data is used for performing operations on the background. These operations might take long enough to cause an ANR. @TextChange together with @Background works fine if the…
kaskelotti
  • 4,709
  • 9
  • 45
  • 72
4
votes
2 answers

Building project with android annotations via Maven

I try to make my project with Android annotations build with Maven. Here is my build section: ${project.artifactId}-${project.version} src
darja
  • 4,985
  • 9
  • 33
  • 47
4
votes
2 answers

ClassNotFoundException using AndroidAnnotations

I trying to use AndroidAnnotaions, but getting ClassNotFoundException error in my project. For testing purposes, I created a new project with one Activity and I still getting the error. My files: AndroidManifest.xml
Rodrigo
  • 5,435
  • 5
  • 42
  • 78
4
votes
1 answer

POST request with Android Annotation REST Service

I am using Android Annotation in my project and trying to send POST request through following code, however there is something wrong in following code as I am not getting response as expected: @Rest(rootUrl = "http://xyz.com", converters =…
user760955
4
votes
2 answers

Android Annotation

It's now been around 5-6 month since I am working on android. Gone through few points and still in the process of learning. Few days back I came to know about android annotations. Great way to reduce our code and strictly concentrate on BL. But for…
Android
  • 3,828
  • 9
  • 46
  • 79
4
votes
3 answers

Rest Client with AndroidAnnotations - "no suitable HttpMessageConverter..."

I want to send POST request to server. I have to pass JSON object as a parameter, and get JSON as a response, but I am getting this error: org.springframework.web.client.RestClientException: Could not extract response: no suitable…
Piotr
  • 1,743
  • 1
  • 26
  • 40
4
votes
1 answer

How to configure IntelliJ IDEA correctly to process Android Annotations?

How to configure IntelliJ IDEA correctly to process annotations? Using the maven target processor:process works fine, but how do I process without using the maven target in IntelliJ IDEA (using it's Annotation Processing preferences)? Under…
Mathias Conradt
  • 28,420
  • 21
  • 138
  • 192
4
votes
1 answer

@Background and screen rotation when using AndroidAnnotations, how to make sure that the callbacks are received?

When using the @Background annotation we start a new thread. And if we while this thread is executing where to rotate the screen, will we then lose the callback from that thread or how is that handled? With the Loaders this is sorted out behind the…
Carl-Emil Kjellstrand
  • 1,233
  • 1
  • 10
  • 17
3
votes
1 answer

Roboguice, AndroidAnnotations and events between threads

When RoboGuice fires Event, where will my event callback be executed, in which thread? For example, I have an activity which has do(@Observes OnUpdateUiEvent e). I also have a background thread which fires new OnUpdateUiEvent("data"). So, my do()…
naixx
  • 1,176
  • 11
  • 17
3
votes
0 answers

Use auto generated classes from Android Annotations in Kotlin

I want to refactor my code and use Kotlin instead. I used Android Annotations in my project and most of my classes are auto-generated (with underscores). So I tried to use some of my beans in a Kotlin Activity and I get "Unresolved reference ".....…
Zach Bublil
  • 857
  • 10
  • 28
3
votes
1 answer

Annotations: @EViewGroup - annotation argument must be compile-time constant error in Android library module

I'm trying to split some of my existing app code into an android library module. While copying my working code into the module directory I've encountered a problem with annotations where the line @EViewGroup(R.layout.dialog_action_item)casts an…
3
votes
2 answers

Trying to debug Annotation Processor in android studio end up getting exception

Using Android Studio 3.1.3 gradle 3.1.2 Runnung Remote build with default config with 5005 port and in gradle.properties file org.gradle.daemon=false org.gradle.jvmargs= -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 always…