I’ve been reading about widgets for a few days and I can’t figure them out yet. All I got running is a “hello world” widget.
onUpdate() never worked because of the 30 minutes limit I guess, and I need to update at least ecery 5 minutes.
I read this article and also another one but when the tutorial starts with a clock example I get stuck.
for now all I want to do is refresh with an alarm manager the widget, so it shows say a number
private static int num =0;
@Override
onUpdate(..) {
remoteView.setText(num);
num++;
}
if anyone could provide me with a simple and working example on how to do this I’d really appreciate it!
thanks in advance
I’m gonna provide u some usefull links that you can focus on:
How To Code an Android Widget
Tutorial – Creating a Custom Analog Clock Widget
Open Source Analog Widget