android - Getting the service context in a timer so I can use a toast -
i know can service context using in oncreate() method in service. in service, i'm using timer something. , want produce toast when done. however, can not access service context in timer in order produce toast. can access context in oncreate() method
how can pass context (so can use create toast) timer running in service ideas?
here questions providing answers similar question:
how can application context android service?
android start activity service
hope helps.
Comments
Post a Comment