Hi all,
I've created a simple app widget for personal use that queries a
site from the internet, parses the XML received and displays some info
from it. I'm using a Droid X, if that makes a difference; both in the
emulator and as physical hardware, developing in the Android version
of the MotoDev IDE.
No matter what I put in updatePeriodMillis, the shortest refresh
time I can get is 30 minutes (I thought this was a 1.6 only bug but
apparently not since I'm running 2.1) and I want it to refresh every 5
minutes, with some caveats. I don't want the widget to refresh when
the screen is off and I want it to refresh immediately upon waking up
the screen. My search for information says to set updatePeriodMillis
to 0 and use the AlarmManager instead, but I can't find any complete
code examples on just how to do this.
Obviously, I'm new to Android development, and Java in general
actually, but I've been a developer for a very long time with
experience in just about every other language. Currently working in
C#, so I thought I'd be able to jump in fairly easily. Can anyone
point me to sample code or an open source project that does what I'm
looking for? I have other questions, but until I get this piece
working they don't really matter. :)
Ricoware
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en