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
1
vote
2 answers

How can I get extra data by Intent using Android annotation?

I'm really new to Android. I'm trying to pass the data to the text view of another class. But for some reason, it does not appear in the second class / page (the textview didnt change). I was able to do it when I was not using android annotation,…
user7806979
1
vote
1 answer

I getting the following error using Dagger 2, Retrofit2 and AndroidAnnotations

i'm creating a MVP(Model View Presenter) project using Dagger 2(DI), Retrofit2 and AndroidAnnotations. But when injecting this component inside the main function in Activity.class: ((App) getApplication()).getNetComponent().inject(this); I get the…
1
vote
1 answer

MenuItem not visible when using android annotations

When i run the code , menuItem is not visible.I think i am missing something. Below is the details of my code.I have referred android annotation documentation for the same.Thanks build.gradle def AAVersion = '4.3.1' dependencies { …
RK1414
  • 101
  • 1
  • 7
1
vote
0 answers

Method did not work without warning in AndroidStudio

This app using a AndroidAnnotations. I don't get any errors. I try implement loadVariable() in onCreate, but it is not imposible by Framework docs, because onCreate can't have a views. So question is how to show data right after launching…
philips
  • 111
  • 1
  • 8
1
vote
1 answer

How to use AndroidAnnotation @FragmentArg with Kotlin?

How can I use @FragmentArg from AndroidAnnotations within Kotlin fragment? @EFragment(R.layout.debug_empty_fragment) open class EmptyFragment : Fragment(){ @FragmentArg("debugIndex") var debugIndex:Int = 0 } This gives me following gradle…
longi
  • 11,104
  • 10
  • 55
  • 89
1
vote
2 answers

Android + AndroidAnnotations REST API

I am trying to create a simple learning project with AndroidAnnotations, which will work with REST calls. I have followed this tutorial https://github.com/androidannotations/androidannotations/wiki/Rest-API#rest but with no luck. Project builds…
Robert J.
  • 2,631
  • 8
  • 32
  • 59
1
vote
0 answers

Error:Error converting bytecode to dex: Cause: java.util.zip.ZipException: invalid distance too far back

I have the following error: Error:Error converting bytecode to dex: Cause: java.util.zip.ZipException: invalid distance too far back Error:1 error; aborting Error:Execution failed for task…
Miller Mosquera
  • 119
  • 4
  • 14
1
vote
1 answer

Android Annotations does not work in Library projects

I am using Android Annotations framework in a library project and it does not compile. If I remove the code which uses Android Annotations, my project with the library works fine. When I add any annotation it gives me the error Error:Could not find…
1
vote
1 answer

How can I inject Activity instance into my BroadcastReceiver with Android Annotation?

I used to play with simple broadcast listeners into activity, there it is siple to do something like textView.setText("text"); But listener became quite large to stay inside and I carried it a separate class. I like AA, I just want to continue…
Eugene
  • 121
  • 5
1
vote
1 answer

Android App Links not working, is it because of Annotations?

I'm new to Android, still learning it, and I have a project that uses AndroidAnnotations, and want to implement App Links. I read the documentation (here) and even read some questions here on Stackoverflow. Following the documentation, the…
1
vote
1 answer

Inheriting in Android Annotations

I have a problem in inheriting from base class when using AndroidAnnotations. I have a base Activity named BaseActivity: @EActivity public abstract class BaseActivity extends AppCompatActivity { @ViewById Toolbar toolbar; …
coder
  • 3,195
  • 2
  • 19
  • 28
1
vote
1 answer

Class Load Exception when using @RestService - java.lang.ClassNotFoundException (...) at dalvik.system.BaseDexClassLoader.findClass

So my project is compiling and running well unitll I inject AndroidAnnotations @RestService into my MainActivity @EActivity(R.layout.activity_main) public class MainActivity extends AppCompatActivity { @RestService RestInterface…
Phate P
  • 1,572
  • 1
  • 22
  • 31
1
vote
1 answer

Androidannotations EBean annotated class should have a constructor with one parameter of Context type

I use this expandable recycler view library and Androidannotations. And try to use @NonConfigurationInstance annotation. In ItemViewHolder class constructor I need View type argument, but @EBean annotation does not allow to use any parametr in…
1
vote
1 answer

AndroidAnnotations: how to handle "activity is not registered in the manifest"

When I use @EActvity in IntelliJ IDEA (v2016.2.4), the Code Inspection will issue a warning: e.g. The ' my.package.TestActivity' is not registered in the manifest what is the recommended way of handling this situation? the Lint help in…
TmTron
  • 17,012
  • 10
  • 94
  • 142
1
vote
1 answer

Android Annotations, Parcelable object as Extra, producing IllegalArgumentException: is not a constant in android.text.Layout$Alignment

I've got a class that is Parcelable and its data members are made up of Strings, Integers, Booleans, Dates, and other Parcelable objects which are made up of the same kinds of things. At the end of the tree though, it's only Strings, Integers,…
Kenny Wyland
  • 20,844
  • 26
  • 117
  • 229