0

I have a fragment with a button that sends an Intent to a Service to execute some code. How would one ellicit a Toast in the Fragment once the Service has finished executing the code?

BRPocock
  • 13,346
  • 3
  • 29
  • 48
david
  • 13
  • 5

1 Answers1

0

why you can't perform Toast from Service?

if you really need to send data from Service to Fragment you should use service binding (example) then from Activity to Fragment

Community
  • 1
  • 1
snachmsm
  • 15,392
  • 2
  • 25
  • 59