1

I have not found any source which indicates that Android Annotations, like @UiThread, @WorkerThread, can be applied to library codes, for example, ActiveAndroid.

I want to enforce that all ActiveAndroid related code to be called in worker thread, but ActiveAndroid is library code, is there a way to add annotations to existing libraries?

foresightyj
  • 2,006
  • 2
  • 26
  • 40

1 Answers1

1

You could create a function that use the library you want to use and put the AndroidAnnotation on the function you will have created.