How do I display a layout in the HomeScreen Widget for each day of the week?

3

I would like to show a particular layout in the HomeScreen Widget for each day of the week.

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

How could I do it?

    
asked by anonymous 20.02.2014 / 00:30

1 answer

2

You'd rather use the class AlarmManager to mark a notification where every day on an X schedule you are notified by the System in your BroadcastReceiver , you will receive the notification using the onReceive () and there you run whatever you want, such as changing the layout of the widget.

Here we have the English material of Google itself, it being inside the documentation itself android exemplifying that.

20.02.2014 / 00:52