Send data from Service to Fragment, Android

前端 未结 2 1820
难免孤独
难免孤独 2021-01-07 03:15

Good evening!
I have small problem with Service. At first, I have fragment with several TextViews. Into these TextView I want put text from my Service. And this code of

2条回答
  •  时光说笑
    2021-01-07 03:45

    You can do it by 2 methods.

    1. Save data to database and get data in fragment.
    2. Use Broadcast

提交回复
热议问题