Andrei Buneyeu Andrei Buneyeu - 8 months ago 127
Android Question

Android annotation to run on Ui Thread

Is it possible to annotate method to run code in UiThread?

runOnUiThread(new Runnable() {
public void run() {
//my code

looks too complex to use it often.


Look at the AndroidAnnotations project. They use a annotations. As far as i know it is what you want. It uses compile time code generation