I have a MapView App that I wrote a while back in 1.1. It worked after
I migrated it to 1.5. It is throwing the same exception you are seeing
in 1.6. The App stopped working after the 1.6 system update. I got a
chance today to upgrade my eclipse plugin to 0.9.5 and get the 1.6 sdk
and deploy the App again and saw the same error on logcat. I have
another MapView App that was also written a while back. It works
without any issue on 1.6. The main difference between the 2 Apps are
the views in the ViewGroup. In the App that works fine, there is only
1 view (MapView) on the ViewGroup. In the App that now throws the
OutOfmemory Exception, there are several Layouts with several views on
them (including a Mapview) that are assembled together to form the
ViewGroup.


10-30 14:59:50.841: INFO/dalvikvm-heap(23490): Forcing collection of
SoftReferences for 134217760-byte allocation
10-30 14:59:50.911: DEBUG/NetworkLocationProvider(75):
updateWifIScanResults(): 9 APs
10-30 14:59:50.991: DEBUG/dalvikvm(23490): GC freed 3582 objects /
263656 bytes in 146ms
10-30 14:59:50.991: ERROR/dalvikvm-heap(23490): Out of memory on a
134217760-byte allocation.
10-30 14:59:50.991: INFO/dalvikvm(23490): "main" prio=5 tid=3 RUNNABLE
10-30 14:59:50.991: INFO/dalvikvm(23490):   | group="main" sCount=0
dsCount=0 s=N obj=0x4001db08 self=0xbc48
10-30 14:59:50.991: INFO/dalvikvm(23490):   | sysTid=23490 nice=0
sched=0/0 handle=-1343996920
10-30 14:59:50.991: INFO/dalvikvm(23490):   at
com.google.googlenav.map.Map.resize((null):~-1)
10-30 14:59:50.991: INFO/dalvikvm(23490):   at
com.google.android.maps.MapView.onMeasure(MapView.java:536)
10-30 14:59:51.021: INFO/dalvikvm(23490):   at
android.view.View.measure(View.java:7703)
10-30 14:59:51.051: INFO/dalvikvm(23490):   at
android.widget.RelativeLayout.measureChildHorizontal
(RelativeLayout.java:569)
10-30 14:59:51.051: INFO/dalvikvm(23490):   at
android.widget.RelativeLayout.onMeasure(RelativeLayout.java:361)
10-30 14:59:51.051: INFO/dalvikvm(23490):   at
android.view.View.measure(View.java:7703)
10-30 14:59:51.051: INFO/dalvikvm(23490):   at
android.widget.RelativeLayout.measureChildHorizontal
(RelativeLayout.java:569)
10-30 14:59:51.051: INFO/dalvikvm(23490):   at
android.widget.RelativeLayout.onMeasure(RelativeLayout.java:361)
10-30 14:59:51.051: INFO/dalvikvm(23490):   at
android.view.View.measure(View.java:7703)


On Oct 1, 3:07 pm, Stefan <ebay-dah...@web.de> wrote:
> hi,
>
> i have test it without the mapView and my app work fine after i rotate
> the emulator. so the problem is the mapView.
> Can the display size a problem?? Because the button, which is over the
> MapView (if it will be activated), is positionated at the button of
> the display.
> But than i think, the MapView will be rendered, but is not visible for
> the user, because the display size in landscape is to small???
> Is the only way to write a new layout xml file for landscape mode?
>
> Thanks,
> Stefan

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to