Hi,
Does anyone else experience a longer load time for activities derived
from MapActivity vs Activity? In my situation, I have an activity that
can display info in either a list or map format. So my activity looks
like:
public class MyActivity extends MapActivity {
private MapView mMap;
public void onCreate() {
super.onCreate();
// allocate MapView only when user chooses to use that
mode.
// mMap = new MapView(...);
}
public void goIntoMapMode() {
if (mMap == null) {
mMap = new MapView();
addView(mMap);
}
mMap.bringToFront();
}
I notice that even though I'm not allocating the MapView instance up-
front, there's still a longer load time for MapActivity than
Activity. If I derive from Activity, the load time of the Activity is
noticeably faster. Any way to speed things up other than separating
into two separate activities?
Thanks
--
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