java - handler reference in activity, from service class -
i've handler declared oncreate() in service class. app fire handler in circumstances ( postdelayed method ). if chance user wants exit application, want handler stop (from beingness executed in x time - removecallbacks()). how reference handler object declared in service in activity, can phone call method? (proper way). possible?
i checked reference handler object main activity, wasn't helpful.
i reference via static method, proper way that?
if have have object of service (got through serviceconnection
), can expose public method within service phone call removecallbacks
on handler instance.
java android service android-activity handler
No comments:
Post a Comment