Sunday, October 10, 2010

[android-developers] Implement clock widget using pictures as numbers, and getting user location

Hi everyone, I'm trying to code a clock widget in Android 1.5 for my
application, which uses images as the numbers, and updates every
second. I'm hoping to have the clock widget extend the View class, so
it can be used directly in the layout.xml files.

I need some help/tutorials on getting started on the clock, and also
about how to get a precise (or at least acceptable) event every
second to tell me to update the clock. If updating every second is not
quite possible, I'd update it every minute. (I've tried extending the
DigitalClock class, but it always gives me an inflation error.)

Furthermore, how do we get the user location? Does Android stores any
kind of user location information anywhere? (e.g - city/state/country
the user is currently in) Or do we have to get the GPS or IP address
and calculate the location ourselves?
Thanks.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate