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
3
votes
2 answers

How to remove warnings of nullable in Android?

I'm using annotations library supported by Android. It is useful for checking NullpointerExceptions. But, it also annoying if I checked the variable if it is null. In this case: @Nullable String value; boolean isValid(String target) { return…
Sohyun Ahn
  • 240
  • 2
  • 9
3
votes
1 answer

AndroidAnnotations - ViewById cannot be used on a private element

AndroidAnnotations version: 4.3.1 Android compile SDK version: 26 Kotlin version: 1.1.3-2 I am trying to build app using Kotlin and AndroidAnnotaions. The build ends with Error:Execution failed for task ':app:kaptDebugKotlin'. > Internal compiler…
kristyna
  • 1,360
  • 2
  • 24
  • 41
3
votes
0 answers

Android annotation generated class are not appearing

This is my build.gradle apply plugin: 'com.android.library' apply plugin: 'android-apt' def AAVersion = '4.2.0' android { compileSdkVersion 25 buildToolsVersion "25.0.1" defaultConfig { minSdkVersion 15 targetSdkVersion…
Chris Gomez
  • 6,644
  • 4
  • 18
  • 39
3
votes
1 answer

How to use Android Annotations and its annotation processor with jack?

Does anybody know how to use Android Annotations with the jack compiler ? Here my app/build.gradle and here my project build.gradle With this configuration, I have this error message when I build my project : Error:Could not get unknown property…
3
votes
1 answer

AfterViews method not called in fragment?

I am using Android annotation in Fragment class but @AfterViews annotated method is not getting called. Here is the code: @EFragment(R.layout.fragment_onboarding_base) public class AddEntityFragment extends Fragment { @ViewById ViewPager…
3
votes
1 answer

Gradle 2.0.0-beta4 makes AndroidAnnotation doesn't work

With 'com.android.tools.build:gradle:1.5.0' and 'com.neenbedankt.gradle.plugins:android-apt:1.8', AndroidAnnotation works well with processing the annotation. But after I update to 'com.android.tools.build:gradle:2.0.0-beta4' for instant run, it…
3
votes
1 answer

@AfterViews is equivalent to onCreate or onPostCreate?

About Android Annotations, @AfterViews is equivalent to onCreate or onPostCreate? or what is the annotation equivalent for each one? can i remove "onCreate" and "onPostCreate" methods and put my whole code of both in the same method with…
Ninja Coding
  • 1,357
  • 1
  • 16
  • 26
3
votes
1 answer

AndroidAnnotations Rest view response data

I am doing an API call using the Android Annotations RestService. The only problem is that I receive a JSON but I don't know how to see that JSON string. Is there a way I can view the response data so I can see the JSON string/content? I tried using…
Bart Bergmans
  • 4,061
  • 3
  • 28
  • 56
3
votes
2 answers

Use Android Annotations with Parceler

I'm using Android Annotations in my Android Project. As implementing Parcelable is a lot of work I want to use Parceler and the @Parcel annotation. The problem is that if I want to use the @FragmentArg annotation by Android Annotations it doesn't…
luckyhandler
  • 10,651
  • 3
  • 47
  • 64
3
votes
1 answer

Bind to existing service with Android Annotations?

Docs enter link description here say how to start and finish service. Is there any way to bind with existing one with android annotation?
Jacob
  • 14,949
  • 19
  • 51
  • 74
3
votes
1 answer

Android annotations gradle warning

I'm using Android Studio 1.1 beta 4 with gradle plugin 1.0.1 and trying to add Android Annotations to my project following the official insturctions. So I get the following build.gradle file: apply plugin: 'com.android.application' apply plugin:…
netimen
  • 4,199
  • 6
  • 41
  • 65
3
votes
1 answer

Android annotations not injecting RestService

Hi I can't inject the RestService anywhere in my code. I'm working test driven so I am using Robolectric to test this code. I hope it isn't a problem with AA+Robolectric, I don't have any experience with this. The weird thing is that in my tests I…
GoGoris
  • 820
  • 8
  • 20
3
votes
1 answer

Android Annotations in Android Studio : can't find an existing file

I am trying to develop an application with AndroidStudio (0.8.9), Gradle (2.1), and Android Annotations 3.0. A normal gradle synchronization happens without problem. But as soon I try to make the project, I get into a strange error : it says that…
loloof64
  • 5,252
  • 12
  • 41
  • 78
3
votes
0 answers

Android Annotations in Android Studio 0.8.9

I'm new to Android Studio and gradle, so I'm not sure on how to configure correctly my project to use android annotatios. I have followed this tutorial, and ended up with this build.gradle file: buildscript { repositories { mavenCentral() …
Kayan Almeida
  • 611
  • 8
  • 15
3
votes
3 answers

Using androidannotations to fire an intent

I have successfully used androidannotations @Extra to decode an intent and get the sent message as this snippet demonstrates: @Extra(MyActivity.MESSAGE) String intentMessage; @ViewById(displayMessage) TextView textView; @AfterViews protected void…
RichieHH
  • 2,116
  • 4
  • 28
  • 30