How send data from application to AppWidgetProvider?

前端 未结 2 1560
一生所求
一生所求 2021-01-15 11:16

I am stuck in a particular scenario. I need to get my widget updated as soon as the user update the time from the app. I did try Broadcast by sending the data through Intent

2条回答
  •  旧时难觅i
    2021-01-15 11:28

    You have to create a service that updates the widget,check this tutorial (the 4th section), you may try to transfer the data through static variables.

提交回复
热议问题