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

Android-Annotations Can I trigger onViewChanged manually to pick up on newly added views to the layout

I have a listview that I add a header to, the header has a bunch of views contained in it so it would make things alot easier if I can reference these views by @ViewById in my class, the problem is they are all null as the method @Override public…
Brian
  • 4,328
  • 13
  • 58
  • 103
2
votes
5 answers

@Get arbitrary query parameters in Android Annotations

It seems that I am unable to set arbitrary query parameters to a @Get declaration My endpoint looks like http://api.lmiforall.org.uk/api/v1/ashe/estimateHours?soc=2349&coarse=true There are a non trivial amount of parameters to this query, is there…
Jakob Bowyer
  • 33,878
  • 8
  • 76
  • 91
2
votes
0 answers

Make warning in Checkstyle if field is non private and does not have annotation

Is there any way to make warning with Checkstyle if field is non private and it do not have one of annotations? i.e.: public class Foo { private String mBoo; // this is OK public String mBad; // it should be warning [@Bean][1] String…
MAGx2
  • 3,149
  • 7
  • 33
  • 63
2
votes
0 answers

Unexpected error. Please report an issue on AndroidAnnotations, with the following content: java.lang.NullPointerExceptionat

I am using annotations in my android project. I am getting following error while refresh/clean the project. null Info Unexpected error. Please report an issue on AndroidAnnotations, with the following content: java.lang.NullPointerExceptionat…
mindus
  • 209
  • 2
  • 12
2
votes
3 answers

Android annotations REST send image

I use android annotations to communicate with the server. In one of the api calls I need to send some text data and an image, say, from gallery. @Post("/items/addItem.php") String addItem(Protocol protocol); How do I attach a MultipartForm with an…
Roman
  • 2,079
  • 4
  • 35
  • 53
2
votes
1 answer

Android annotations REST set header

I'm using Android annotations, and recently discovered a bug Spring Rest Template usage causes EOFException which I don't know how to fix using annotations. I have post request: @Post("base/setItem.php") Item setItem(Protocol protocol); Now, how do…
Roman
  • 2,079
  • 4
  • 35
  • 53
2
votes
2 answers

How to use Proguard with Android Annotations?

Does anybody know how to use Proguard with Android Annotations? I found this resource: https://code.google.com/p/androidannotations/wiki/ProGuard But when I use the proguard.cfg file from there, I get the following error: proguard.ParseException:…
Karim Varela
  • 7,562
  • 10
  • 53
  • 78
2
votes
1 answer

failed resolving googleplayservices

I am trying to create an android application that is location aware using google play services as it seems that is the new recommended fashion for doing this. I have used the tutorial I found on the android developers site to setup my project. It…
feanor114
  • 85
  • 3
  • 12
2
votes
1 answer

How to implement SearchView (ActionBarSherlock) using android annotations?

I successfully implemented search view with action bar sherlock but just for curiosity, how can I do that using Android Annotations? @Override public boolean onCreateOptionsMenu(Menu menu) { SearchView searchView = new …
Raphael Oliveira
  • 7,751
  • 5
  • 47
  • 55
2
votes
1 answer

Change @Rest rootUrl at runtime with AndroidAnnotations

I'm using a rest service with AndroidAnnotations, configured like so: @Rest(rootUrl = "http://192.168.1.48:8080/stuff/services/rest/StuffService/", converters = {MappingJacksonHttpMessageConverter.class}) public interface IStuff { …
Rocky Pulley
  • 22,531
  • 20
  • 68
  • 106
2
votes
1 answer

androidannotations2.7.1 - AndroidManifest.xml file contains the original component

I am having trouble configuring androidannotation, just downloaded androidannotations-bundle-2.7.1.zip. I have a LoginActivity that makes use of @EActivity annotation and after building I am getting below error: The AndroidManifest.xml file…
gunar
  • 14,660
  • 7
  • 56
  • 87
2
votes
1 answer

Android Annotations @UiThread race conditions?

@UiThread void foo() { ...some animations... }; @UiThread void bar() { xyz(); }; @UiThread void xyz() { foo(); }; Can i get in trouble if i use many of these nested @UiThread methods in my app? Can i get some race conditions because of…
user1234813
2
votes
1 answer

AndroidAnnotations in CursorAdapter

I am developing for android using android annotations but I don't unterstand how to use it with CursorAdapters. There is already a example for BaseAdapters, but if I add @EBean to a class that extents CursorAdapter I get the error message "@EBean…
fxlex
  • 65
  • 1
  • 8
2
votes
1 answer

How to handle configuration change in android annotation.(Rotation of screen)

I am using Android annotation.There is a progress dialog but when i am rotating the screen (land to port) . The progress dialog dismiss and showing these error's in log cat. Activity com.example.progressdialog.AnnotationProgressDialogActivity_ has…
Monty
  • 3,205
  • 8
  • 36
  • 61
2
votes
1 answer

Android Annotations not compiled with Ant

After following all of the steps listed here, I found that my (Class)_ was still not being generated. custom-rules:
Phill.Zitt
  • 343
  • 2
  • 16