add an overlay on the map.in onDraw() of the overlay, record the time(last time) and calculate the frequency of each call. the activity extends Runnable, in run() compare the current time with last time + frequency, if the current time is great enough.... :-P
On Apr 1, 4:32 am, "Megha Joshi" <[EMAIL PROTECTED]> wrote: > Hi, > > There is no callback function in the APIs that gets invoked when a MapView > is completely displayed on screen. > You may want to log a feature request in the android issue tracker for this. > > Thanks, > Megha > > On Mon, Mar 31, 2008 at 10:50 AM, Redhunt <[EMAIL PROTECTED]> > wrote: > > > > > Hi > > > Does any one have any thoughts on the proper way to do this: > > > I want to create a thread to load data from the web AFTER at least one > > "frame" has been drawn on the screen. This is for a MapView, so maybe > > there is a way to instantiate a call when the map has completely drawn > > at least once? > > The MapView is contained in a MapActivity, obviously, so I could also > > add the call somewhere in the activity. > > Note: What I am looking for is the right place to instantiate a thread > > after the user at least sees a map on the screen. So if I add the call > > to the thread in OnResume in the MapActivity, for example, that would > > not work, because at that point there is nothing drawn on the screen. > > Any thoughts? > > > Thanks in advance --~--~---------~--~----~------------~-------~--~----~ 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] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

