Reputation: 127
I know Services has no UI but I want to use getWindow() inside services.I also know that I can use activity reference. But I want to use this service in different activities. is it possible?
Upvotes: 0
Views: 1875
Reputation: 8641
A Service runs on the same thread as your UI. You can connect to your UI from a Service if you want to, but before you pursue that path, what are you trying to do? Do you want to use the same Service across apps?
Upvotes: 1