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
1 answer

Android Annotations + RestTemplate - get response xml as string

I need to consume a WebService that outputs XML. In code snippet below: getResult method can return XML with HTML tags (like

tag). So I'll have to manually transform the XML first before parsing it. But RestTemplate works fine with other…

Ravi
  • 3,719
  • 6
  • 28
  • 40
3
votes
2 answers

Using @Rest In Android Annotations to Make Multipart Post

I am sending a multipart request to a server which will include an image, as well as a couple of strings. I haven't found any guide on how to get this done, all i have found are just how to make post and get and put etc, but nothing on multipart. I…
SamAko
  • 3,485
  • 7
  • 41
  • 77
3
votes
0 answers

Android studio cannot resolve annotated class

Im using Android studio 0.4.2 (Gradle project) with AA My gradle.build looks like below apply plugin: 'android' android { compileSdkVersion 17 buildToolsVersion "17.0.0" sourceSets { main { manifest.srcFile…
Gorets
  • 2,434
  • 5
  • 27
  • 45
3
votes
1 answer

Androidannotations: Classes can not be resolved when from different package on clean build

If I am doing a clean build I get a compile error when I am using an annotated activity that's not in the same package as the activity I am currently in. Let me give an example: I have this activity com.example.packageA.A: @EActivity public class A…
Michael Schmidt
  • 391
  • 2
  • 14
3
votes
1 answer

@UiThread pre/post Execute

With android-annotations I can replace AsyncTask with @UiThread. But is possible to handle something like onPreExcecute / onPostExecute of AsynkTask?
gipinani
  • 14,038
  • 12
  • 56
  • 85
3
votes
0 answers

cannot find symbol : class SomeActivity_ (Android Annotations) in Robolectric Test at compileDebug

I'm using Mac, Android Studio(0.3.6), Robolectric 2.2, Android Annotations 2.7.1, Junit 4.10. I just built up my project with Android Annotations, so I can see the activity that is using @EActivity(R.layout.activity_some)…
Wooseong Kim
  • 1,871
  • 2
  • 21
  • 19
3
votes
1 answer

Inject view in fragment with AndroidAnnotations

I'm trying to switch my fragments from classic implementation to AndroidAnnotations. When I use @EFragment(R.layout.my_fragment) I get a blank view. @EFragment(R.layout.my_fragment) public class MyFragment extends Fragment { } If I go like this…
TrtG
  • 2,778
  • 6
  • 26
  • 39
3
votes
0 answers

Gradle + Android Annotations + Merged Manifest = "Could not find the AndroidManifest"

I seem to be running into a problem with Android Annotations finding my Android Manifest when I'm using different manifests for different buildTypes. The error I get is: java: error: Unexpected error. Please report an issue on AndroidAnnotations,…
Karim Varela
  • 7,562
  • 10
  • 53
  • 78
3
votes
2 answers

Trying to get an Android annotations spring RESTful client api working, couple of problems

I can't seem to figure out how to get android annotations rest client to work I'm having 2 main issues. A)How to parse the generic json response and get the meaningful key B)How to add parameters For the first problem all responses come back as a…
Brian
  • 4,328
  • 13
  • 58
  • 103
3
votes
2 answers

AndroidAnnotations: @Rest annotation compile error

When trying to define a rest template using the @Rest annotation, and when providing one or more "converters" in that annotation, I receive the following compile error: The converter class must be a subtype of…
Studio4Development
  • 725
  • 1
  • 6
  • 18
3
votes
2 answers

Android Annotations and MonkeyTalk?

I just tried to update my project which uses Android Annotations to include the MonkeyTalk agent. However, as soon as I switch the project to an AspectJ project, all my Android Annotations references are not recognized. Has anybody successfully used…
3
votes
2 answers

Why The value for annotation attribute Rest.rootUrl must be a constant expression?

Im using Android Annotations Framework, specially for Rest Integration. I have the following code. An interface for Host configuration public interface Host { public String URL = "http://192.168.2.137"; } And the annotated Interface for Rest…
3
votes
1 answer

Android @RestService injection via androidannotations results into nullPointerException

I am gettin null pointer exception on this line wsresult = restClientInterface.skuska(); for restClientInterface. Here is my sample: import org.springframework.http.converter.json.GsonHttpMessageConverter; import…
Szalai Ladislav
  • 161
  • 1
  • 1
  • 7
3
votes
2 answers

Removing observer on on destroy() android

I am developing for android using android annotations. I have a singleton observable object for which I want to add activity as an observer. Something like as follows: @EActivity(R.layout.myActivity) public class MyActivity extends…
mogronalol
  • 2,946
  • 8
  • 38
  • 56
3
votes
1 answer

Android testing with Robolectric and AndroidAnnotations

I've developing application using AndroidAnnotations and want to use Robolectric for unit testing. I can't get it working though. Application and tests are placed in single project. Source is placed under /src/main/java and test under…
Martynas Jurkus
  • 9,231
  • 13
  • 59
  • 101