title: Android MapView gets out of memory error when zooming
body: <p>I have an application which uses map activity as a part of whole application, and I get Out of Memory Error When I zoom in and out. I have only one overlay item. Any idea how to solve this ? Here is my xml below, it's quite nested.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:orientation="vertical"
  android:id="@+id/contact_layout" &gt;
  
  &lt;com.google.android.maps.MapView
      android:id="@+id/mapview"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:apiKey="..."
      android:clickable="true" /&gt;
  
  &lt;LinearLayout
      android:layout_width="match_parent"
      android:layout_height="90dp"
      android:layout_alignParentBottom="true"
      android:orientation="horizontal"
      android:paddingBottom="20dp"
      android:paddingLeft="15dp"
      android:paddingRight="15dp"
      android:paddingTop="20dp"
      android:weightSum="100" &gt;
  
      &lt;ImageView
          android:id="@+id/phone_icon"
          android:layout_width="0dp"
          android:layout_height="match_parent"
          android:layout_weight="20"
          android:adjustViewBounds="true"
          android:src="@drawable/phone_icon" /&gt;
  
      &lt;ImageView
          android:id="@+id/email_icon"
          android:layout_width="0dp"
          android:layout_height="match_parent"
          android:layout_weight="20"
          android:adjustViewBounds="true"
          android:src="@drawable/mail_icon" /&gt;
  
      &lt;ImageView
          android:id="@+id/bus_icon"
          android:layout_width="0dp"
          android:layout_height="match_parent"
          android:layout_weight="20"
          android:adjustViewBounds="true"
          android:src="@drawable/bus_icon" /&gt;
  
      &lt;ImageView
          android:id="@+id/twitter_icon"
          android:layout_width="0dp"
          android:layout_height="match_parent"
          android:layout_weight="20"
          android:adjustViewBounds="true"
          android:src="@drawable/twitter_icon" /&gt;
  
      &lt;ImageView
          android:id="@+id/facebook_icon"
          android:layout_width="0dp"
          android:layout_height="match_parent"
          android:layout_weight="20"
          android:adjustViewBounds="true"
          android:src="@drawable/facebook_icon" /&gt;
  &lt;/LinearLayout&gt;
  
  &lt;RelativeLayout
      android:id="@+id/navigation_bar_without_back"
      android:layout_width="match_parent"
      android:layout_height="40dp"
      android:layout_alignParentTop="true"
      android:background="@drawable/header_navigation"
      android:orientation="horizontal" &gt;
  
      &lt;ImageView
          android:id="@+id/anatolia_logo"
          android:layout_width="50dp"
          android:layout_height="wrap_content"
          android:layout_alignParentLeft="true"
          android:layout_centerVertical="true"
          android:layout_marginBottom="-10dp"
          android:layout_marginLeft="5dp"
          android:layout_marginTop="-10dp"
          android:adjustViewBounds="true"
          android:src="@drawable/..." /&gt;
  
      &lt;ImageView
          android:id="@+id/call_button_without_back"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentRight="true"
          android:layout_centerVertical="true"
          android:layout_marginRight="10dp"
          android:adjustViewBounds="true"
          android:src="@drawable/call_button" /&gt;
  &lt;/RelativeLayout&gt;
  
  &lt;LinearLayout
      android:layout_width="match_parent"
      android:layout_height="200dp"
      android:layout_below="@+id/navigation_bar_without_back"
      android:background="@drawable/contact_layout_background" &gt;
  
      &lt;WebView
          android:id="@+id/info_field"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content" /&gt;
  &lt;/LinearLayout&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p><strong>LogCat Trace</strong></p>
  
  <pre><code>09-03 11:43:20.752: E/AndroidRuntime(930): FATAL EXCEPTION: main
  09-03 11:43:20.752: E/AndroidRuntime(930): java.lang.OutOfMemoryError: bitmap size   exceeds VM budget
  09-03 11:43:20.752: E/AndroidRuntime(930):  at   android.graphics.Bitmap.nativeCreate(Native Method) 
  09-03 11:43:20.752: E/AndroidRuntime(930):  at android.graphics.Bitmap.createBitmap(Bitmap.java:477)
  09-03 11:43:20.752: E/AndroidRuntime(930):  at     com.google.android.maps.ZoomHelper.createSnapshot(ZoomHelper.java:444)
  09-03 11:43:20.752: E/AndroidRuntime(930):  at com.google.android.maps.ZoomHelper.doZoom(ZoomHelper.java:151)
  09-03 11:43:20.752: E/AndroidRuntime(930):  at com.google.android.maps.ZoomHelper.doZoom(ZoomHelper.java:140)
  09-03 11:43:20.752: E/AndroidRuntime(930):  at com.google.android.maps.MapView.doZoom(MapView.java:1517)
  09-03 11:43:20.752: E/AndroidRuntime(930):  at com.google.android.maps.MapView.doZoom(MapView.java:1526)
  09-03 11:43:20.752: E/AndroidRuntime(930):  at com.google.android.maps.MapView$6.onZoom(MapView.java:1481)
  09-03 11:43:20.752: E/AndroidRuntime(930):  at android.widget.ZoomButtonsController$4.onClick(ZoomButtonsController.java:274)
  09-03 11:43:20.752: E/AndroidRuntime(930):  at android.view.View.performClick(View.java:2485)
  09-03 11:43:20.752: E/AndroidRuntime(930):  at andrd.view.View$PerformClick.run(View.java:9080)
  09-03 11:43:20.752: E/AndroidRuntime(930):  at android.os.Handler.handleCallback(Handler.java:587)
  09-03 11:43:20.752: E/AndroidRuntime(930):  at andrid.os.Handler.dispatchMessage(Handler.java:92)
  09-03 11:43:20.752: E/AndroidRuntime(930):  at android.os.Looper.loop(Looper.java:130)
  09-03 11:43:20.752: E/AndroidRuntime(930):  at android.app.ActivityThread.main(ActivityThread.java:3683)
       09-03 11:43:20.752: E/AndroidRuntime(930):     at java.lang.reflect.Method.invokeNative(Native Method)
      09-03 11:43:20.752: E/AndroidRuntime(930):  at java.lang.reflect.Method.invoke(Method.java:507)
      09-03 11:43:20.752: E/AndroidRuntime(930):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
      09-03 11:43:20.752: E/AndroidRuntime(930):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
      09-03 11:43:20.752: E/AndroidRuntime(930):  at dalvik.system.NativeStart.main(Native Method)
  </code></pre>