0

How to do View.PostDelayed in android annotation , is it same as @Background(delay = 1000) ?

Zulqurnain Jutt
  • 1,083
  • 3
  • 15
  • 41

1 Answers1

2
@UiThread(delay = 1000)

You should read the documentation. @Background will execute the method on a background thread, while @UiThread will run it on the UI (main) thread.

https://github.com/excilys/androidannotations/wiki/WorkingWithThreads#uithread

WonderCsabo
  • 11,947
  • 13
  • 63
  • 105