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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -