title: How To Display Google Map in android emulator?I tried this program in google AVD in android
body: <p>Here is my code to display the google map in my android emulator using google AVD....
  How to fix this problem?anybody can know this?</p>
  
  <p>Map.java:</p>
  
  <pre><code>    public class MapsActivity extends MapActivity 
      {    
          private MapView mapView;
          /** Called when the activity is first created. */
          @Override
          public void onCreate(Bundle savedInstanceState)
          {
              super.onCreate(savedInstanceState);
              setContentView(R.layout.main);
              mapView = (MapView) findViewById(R.id.mapView);      
              mapView.setBuiltInZoomControls(true);
          }
  
          @Override
          protected boolean isRouteDisplayed() {
              return false;
          }
  </code></pre>
  
  <p>Xml File:</p>
  
  <pre><code>        &lt;com.google.android.maps.MapView 
              android:id="@+id/mapView"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:enabled="true"
              android:clickable="true"
              android:apiKey="0l4sCTTyRmXTNo7k8DREHvEaLar2UmHGwnhZVHQ"
              &gt;
              &lt;/com.google.android.maps.MapView&gt;
  </code></pre>
  
  <p>Manifost File:
                
              
                  
                      
                          </p>
  
  <pre><code>                    &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
                  &lt;/intent-filter&gt;
              &lt;/activity&gt;
          &lt;/application&gt;
      &lt;uses-permission android:name="android.permission.INTERNET" /&gt;  
   &lt;uses-library android:name="com.google.android.maps" /&gt; 
  </code></pre>
  
  <p>Output:
          In my emulator map activity has stopped unexpexctly..
           i got the runtime exception </p>
  
  <pre><code>01-04 10:36:24.540: D/dalvikvm(641): Not late-enabling CheckJNI (already on)
  01-04 10:36:25.290: W/dalvikvm(641): Unable to resolve superclass of Lcom/example/MapsActivity; (10)
  01-04 10:36:25.290: W/dalvikvm(641): Link of class 'Lcom/example/MapsActivity;' failed
  01-04 10:36:25.290: D/AndroidRuntime(641): Shutting down VM
  01-04 10:36:25.290: W/dalvikvm(641): threadid=1: thread exiting with uncaught exception (group=0x409c01f8)
  01-04 10:36:25.430: E/AndroidRuntime(641): FATAL EXCEPTION: main
  01-04 10:36:25.430: E/AndroidRuntime(641): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example/com.example.MapsActivity}: java.lang.ClassNotFoundException: com.example.MapsActivity
  01-04 10:36:25.430: E/AndroidRuntime(641):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1880)
  01-04 10:36:25.430: E/AndroidRuntime(641):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
  01-04 10:36:25.430: E/AndroidRuntime(641):  at android.app.ActivityThread.access$600(ActivityThread.java:123)
  01-04 10:36:25.430: E/AndroidRuntime(641):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
  01-04 10:36:25.430: E/AndroidRuntime(641):  at android.os.Handler.dispatchMessage(Handler.java:99)
  01-04 10:36:25.430: E/AndroidRuntime(641):  at android.os.Looper.loop(Looper.java:137)
  01-04 10:36:25.430: E/AndroidRuntime(641):  at android.app.ActivityThread.main(ActivityThread.java:4424)
  01-04 10:36:25.430: E/AndroidRuntime(641):  at java.lang.reflect.Method.invokeNative(Native Method)
  01-04 10:36:25.430: E/AndroidRuntime(641):  at java.lang.reflect.Method.invoke(Method.java:511)
  01-04 10:36:25.430: E/AndroidRuntime(641):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
  01-04 10:36:25.430: E/AndroidRuntime(641):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
  01-04 10:36:25.430: E/AndroidRuntime(641):  at dalvik.system.NativeStart.main(Native Method)
  01-04 10:36:25.430: E/AndroidRuntime(641): Caused by: java.lang.ClassNotFoundException: com.example.MapsActivity
  01-04 10:36:25.430: E/AndroidRuntime(641):  at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
  01-04 10:36:25.430: E/AndroidRuntime(641):  at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
  01-04 10:36:25.430: E/AndroidRuntime(641):  at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
  01-04 10:36:25.430: E/AndroidRuntime(641):  at android.app.Instrumentation.newActivity(Instrumentation.java:1023)
  01-04 10:36:25.430: E/AndroidRuntime(641):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1871)
  01-04 10:36:25.430: E/AndroidRuntime(641):  ... 11 more
  01-04 10:36:31.140: W/dalvikvm(679): Unable to resolve superclass of Lcom/example/MapsActivity; (10)
  01-04 10:36:31.160: W/dalvikvm(679): Link of class 'Lcom/example/MapsActivity;' failed
  01-04 10:36:31.160: D/AndroidRuntime(679): Shutting down VM
  01-04 10:36:31.180: W/dalvikvm(679): threadid=1: thread exiting with uncaught exception (group=0x409c01f8)
  01-04 10:36:31.240: E/AndroidRuntime(679): FATAL EXCEPTION: main
  01-04 10:36:31.240: E/AndroidRuntime(679): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example/com.example.MapsActivity}: java.lang.ClassNotFoundException: com.example.MapsActivity
  01-04 10:36:31.240: E/AndroidRuntime(679):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1880)
  01-04 10:36:31.240: E/AndroidRuntime(679):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
  01-04 10:36:31.240: E/AndroidRuntime(679):  at android.app.ActivityThread.access$600(ActivityThread.java:123)
  01-04 10:36:31.240: E/AndroidRuntime(679):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
  01-04 10:36:31.240: E/AndroidRuntime(679):  at android.os.Handler.dispatchMessage(Handler.java:99)
  01-04 10:36:31.240: E/AndroidRuntime(679):  at android.os.Looper.loop(Looper.java:137)
  01-04 10:36:31.240: E/AndroidRuntime(679):  at android.app.ActivityThread.main(ActivityThread.java:4424)
  01-04 10:36:31.240: E/AndroidRuntime(679):  at java.lang.reflect.Method.invokeNative(Native Method)
  01-04 10:36:31.240: E/AndroidRuntime(679):  at java.lang.reflect.Method.invoke(Method.java:511)
  01-04 10:36:31.240: E/AndroidRuntime(679):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
  01-04 10:36:31.240: E/AndroidRuntime(679):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
  01-04 10:36:31.240: E/AndroidRuntime(679):  at dalvik.system.NativeStart.main(Native Method)
  01-04 10:36:31.240: E/AndroidRuntime(679): Caused by: java.lang.ClassNotFoundException: com.example.MapsActivity
  01-04 10:36:31.240: E/AndroidRuntime(679):  at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
  01-04 10:36:31.240: E/AndroidRuntime(679):  at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
  01-04 10:36:31.240: E/AndroidRuntime(679):  at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
  01-04 10:36:31.240: E/AndroidRuntime(679):  at android.app.Instrumentation.newActivity(Instrumentation.java:1023)
  01-04 10:36:31.240: E/AndroidRuntime(679):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1871)
  01-04 10:36:31.240: E/AndroidRuntime(679):  ... 11 more
  01-04 10:37:23.619: W/dalvikvm(720): Unable to resolve superclass of Lcom/example/MapsActivity; (10)
  01-04 10:37:23.659: W/dalvikvm(720): Link of class 'Lcom/example/MapsActivity;' failed
  01-04 10:37:23.659: D/AndroidRuntime(720): Shutting down VM
  01-04 10:37:23.669: W/dalvikvm(720): threadid=1: thread exiting with uncaught exception (group=0x409c01f8)
  01-04 10:37:23.699: E/AndroidRuntime(720): FATAL EXCEPTION: main
  01-04 10:37:23.699: E/AndroidRuntime(720): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example/com.example.MapsActivity}: java.lang.ClassNotFoundException: com.example.MapsActivity
  01-04 10:37:23.699: E/AndroidRuntime(720):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1880)
  01-04 10:37:23.699: E/AndroidRuntime(720):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
  01-04 10:37:23.699: E/AndroidRuntime(720):  at android.app.ActivityThread.access$600(ActivityThread.java:123)
  01-04 10:37:23.699: E/AndroidRuntime(720):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
  01-04 10:37:23.699: E/AndroidRuntime(720):  at android.os.Handler.dispatchMessage(Handler.java:99)
  01-04 10:37:23.699: E/AndroidRuntime(720):  at android.os.Looper.loop(Looper.java:137)
  01-04 10:37:23.699: E/AndroidRuntime(720):  at android.app.ActivityThread.main(ActivityThread.java:4424)
  01-04 10:37:23.699: E/AndroidRuntime(720):  at java.lang.reflect.Method.invokeNative(Native Method)
  01-04 10:37:23.699: E/AndroidRuntime(720):  at java.lang.reflect.Method.invoke(Method.java:511)
  01-04 10:37:23.699: E/AndroidRuntime(720):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
  01-04 10:37:23.699: E/AndroidRuntime(720):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
  01-04 10:37:23.699: E/AndroidRuntime(720):  at dalvik.system.NativeStart.main(Native Method)
  01-04 10:37:23.699: E/AndroidRuntime(720): Caused by: java.lang.ClassNotFoundException: com.example.MapsActivity
  01-04 10:37:23.699: E/AndroidRuntime(720):  at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
  01-04 10:37:23.699: E/AndroidRuntime(720):  at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
  01-04 10:37:23.699: E/AndroidRuntime(720):  at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
  01-04 10:37:23.699: E/AndroidRuntime(720):  at android.app.Instrumentation.newActivity(Instrumentation.java:1023)
  01-04 10:37:23.699: E/AndroidRuntime(720):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1871)
  01-04 10:37:23.699: E/AndroidRuntime(720):  ... 11 more
  </code></pre>
  
  <p>Output screen:</p>
  
  <pre><code>             google map view screen shot 
  </code></pre>