I need to set up some decent testing for a MapActivity that displays a
couple of Overlays.
I have a standard test harness for my derived MapActivity and I know can
create it (onCreate() gets called. The onCreate sets up my overlays. Nothing
special here and this test runs successfully.

But the real work gets of course done, when the map is being painted. Only
then the calls to the overlays draw method get issued, where the real work
takes place.

public void draw(Canvas canvas, MapView mapView,
 boolean shadow) {...}

My overlays need certain information from the canvas (such as width/height)
and the mapView (such as projection, which lets me compute the screen
coordinates),
while also needing the canvas to draw into it.

The draw call in real life gets issued from the ActivityThread when the root
window is drawn. This does not happen in the test.

Any idea on how I can trigger this?

Ludwig

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