You could use a static value in your widget class. Increment the
static value in the constructor and use that to initialize an ID that
is local to the instance. Basically the classic singleton pattern. You
can add serialization for the static if you plan to support multi-
threading but that's not generally done in Android UIs.

-- 
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

Reply via email to