How to display a layout in the Homescreen Widget for each day of the week?

Asked

Viewed 62 times

3

I would like to show certain layout in the Homescreen Widget for each day of the week.

I have the 5 days, and when identifying them, the device should update the widget layout.

How could I do it?

1 answer

2

You need to use class Alarmmanager to schedule a notification where every day at an X time you are notified by the System in your Broadcastreceiver, this will receive notification through the method onReceive() and then you run what you want, such as changing the layout of the widget.

Here we have the English material from google itself, being it within the own documentation of android exemplifying this.


Browser other questions tagged

You are not signed in. Login or sign up in order to post.