title: Exception when using MapView - java.lang.RuntimeException: stub
body: <p>Does the following exception make sense to you? I'm struggling to identify the cause. It occurs when I open a an activity (ActivityMap) subclassed from MapActivity, even if the MapActivity's layout doesn't contain a mapview element.</p>
  
  <p>I suspect it's a project issue. I'm using IntelliJ IDEA. I've set the project up to build against the level 8 Maps API. The IDE is not highlighting any issues with my use of MapActivity in the source, and it builds without error - but then this exception at runtime.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:orientation="vertical"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  &gt;
  &lt;com.google.android.maps.MapView
       android:layout_width="fill_parent"
       android:layout_height="fill_parent"
       android:apiKey="&lt;maps api key is here&gt;"
   /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>And then the activity:</p>
  
  <pre><code>public class ActivityMap extends MapActivity
  {
  @Override
  public void onCreate(Bundle savedInstanceState)
  {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activitymap);
  }
  
  @Override
  protected boolean isRouteDisplayed() {
      return false;
  }
  
  @Override
  protected boolean isLocationDisplayed() {
      return super.isLocationDisplayed();
  }
  </code></pre>
  
  <p>}</p>
  
  <pre><code>java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.someapp.myapp/com.someapp.myapp.ActivityMap}: java.lang.RuntimeException: stub
          at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1569)
          at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
          at android.app.ActivityThread.access$1500(ActivityThread.java:117)
          at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
          at android.os.Handler.dispatchMessage(Handler.java:99)
          at android.os.Looper.loop(Looper.java:130)
          at android.app.ActivityThread.main(ActivityThread.java:3683)
          at java.lang.reflect.Method.invokeNative(Native Method)
          at java.lang.reflect.Method.invoke(Method.java:507)
          at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
          at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
          at dalvik.system.NativeStart.main(Native Method)
          Caused by: java.lang.RuntimeException: stub
          at com.google.android.maps.MapActivity.&lt;init&gt;(Unknown Source)
          at com.someapp.myapp.ActivityMap.&lt;init&gt;(ActivityMap.java:7)
          at java.lang.Class.newInstanceImpl(Native Method)
          at java.lang.Class.newInstance(Class.java:1409)
          at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
          at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1561)
  </code></pre>