Kumar Himanshu
Kumar Himanshu

Reputation: 127

getWindow() method inside Services

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

Answers (1)

Joe Malin
Joe Malin

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

Related Questions