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

"error: Unexpected error" during maven build with Android Anotations

I have problem with building project with android anotations (v.2.6) using maven, with eclipse all works just fine. Here is some project and error details: build configuration snippet from pom:
zasadnyy
  • 2,107
  • 2
  • 19
  • 26
0
votes
2 answers

Rest Client - how get JSONObject as a response?

I'm following this guide - https://github.com/excilys/androidannotations/wiki/Rest%20API and I am trying skip JSON<->POJO conversion and work on pure JSONObject (or gson's JsonObject). What should I write as an server's answer? @Rest("url") public…
Piotr
  • 1,743
  • 1
  • 26
  • 40
0
votes
1 answer

AndroidAnnotations: How to change layout?

I have login- and game-layout in my activity. I would use AndroidAnnotations in my project, because that is cool! but I don't know, how to change correctly the login-layout to game-layout. Initialization of login-layout I would do with the…
Mark
  • 17,887
  • 13
  • 66
  • 93
-1
votes
1 answer

Annotations documentation

I would like to know what happens really happens if my XML file does not contain certain view and I use @ViewById annotation to inject that non existing view into an attribute. Here is the documentation for this annotation but this case is not…
scarface
  • 574
  • 6
  • 20
-1
votes
1 answer

sometimes a field annotated with @ViewById returns null when accessed on UIThread

I have a class which uses AndroidAnnotations and @ViewById annotation. I've seen many crashes because of some of the fields with @ViewById annotations being null. Attempt to invoke virtual method 'void…
-1
votes
1 answer

Android Annotations rest error handling

Problem is, how to handle unexpected json response from server, this should make the question clearer: ApiService interface: @Rest( converters = MappingJackson2HttpMessageConverter.class, interceptors = AuthInterceptor.class, …
dzingiskan
  • 157
  • 1
  • 2
  • 7
-1
votes
1 answer

Retrofit + Otto + AA, How to do simple get request?

I am using Android Annotation for boilerplate, and Retrofit for Api calls, While doing post requests through retrofit I discovered a Some problems: When i am calling asynchronous call to "GET" request using Retrofit, I need to do some operation just…
Zulqurnain Jutt
  • 1,083
  • 3
  • 15
  • 41
-1
votes
1 answer

how to getAdapterPosition in RecyclerView ViewHolder with Android Annotations

I use android annotations and created Recycler List , the problem is, if i delete something in holder and update adapter using through listner using notifyItemRemoved(position);. the position in the holder is not updating. @EBean public static…
Sai
  • 15,188
  • 20
  • 81
  • 121
-1
votes
1 answer

References to Views are null in onResume of fragment with AndroidAnnotation's @ViewById

This is my Fragment's Code: EFragment public class PreviewFragment extends Fragment { @Inject Bus bus; @Inject HorstDb db; //@ViewById(R.id.preview_text_view) TextView previewTextView; public PreviewFragment() {} …
Panke
  • 156
  • 9
-1
votes
3 answers

post json in android annotations

I want to use @Rest api from android annotations to post application/json data to server. How can I do it? I want something like POST request send json data java HttpUrlConnection but as simple as android annotations. thanks.
sinoohe
  • 40,334
  • 3
  • 19
  • 16
-1
votes
1 answer

AndroidAnnotations SQLiteTransactions and passing a SQLiteDatabase

I understand why you need a pass a SQLiteDatabase to an annotated method. However, in my case I fail to see a good way to handle this. I like to abstract the CRUD on a table using a manager class. This class owns the SQLiteHelper instance and also…
ndsc
  • 1,173
  • 2
  • 13
  • 22
-2
votes
2 answers

Try catch inside @Background function not working

Try Catch inside @Background function of android annotations is crashing , my issue for this library can be found issue#2035 How to solve this issue ? Note: I want to use Try catch inside @Background function , my issue is not with string itself !!!
Zulqurnain Jutt
  • 1,077
  • 1
  • 9
  • 21
-2
votes
1 answer

How to pass data from a service to activity using @Receiver?

I am using Android annotation library, and I want to pass data from service to activity using broadcast receiver. I want to utilize @Reciever of Android annotation, my attempt is same as this SO question Any help is appreciated.
-2
votes
2 answers

Generate bitmap from view

When I get the bitmap from the DrawingCache of a view I get no error but I don't see a valid bitmap either. What am I doing wrong? The code I use to generate the bitmap: SharePhotoView sharePhotoView =…
Bart Bergmans
  • 4,061
  • 3
  • 28
  • 56
-2
votes
1 answer

AndroidAnnotations access Singleton class object into other class static method

From MyActivity, call to: MyClass.getInstance(); MyClass.doStuff(); ... @EBean(scope = EBean.Scope.Singleton) public class MyClass { @Bean MyManager manager; public static void doStuff(){ manager.show(); //…
user2618875
  • 889
  • 2
  • 11
  • 23
1 2 3
33
34