Reputation: 8149
ScheduledExecutorService
Is ScheduledExecutorService run on main thread or on background thread i go throught the documentation here but didt found.
Any help will be appreciated.
Upvotes: 0
Views: 462
Reputation: 1006574
ScheduledExecutorService
uses background threads, from a thread pool specified implicitly or explicitly when you create an instance from the Executors
set of factory methods.
Note that ScheduledExecutorService
is a standard Java class (java.util.concurrent.ScheduledExecutorService
). The main application thread is something from the Android framework.
Upvotes: 2