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,638
  • 3
  • 31
  • 50
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
  • 17,866
  • 3
  • 32
  • 74