title: Passing lng/lat with extra bundle doesnt work
body: <p>i m creating a project with three main activities (lets call them Activity 1, 2 and 3).
  In activity 1, i pass the number in my bundle extra.</p>
  
  <pre><code>newActivity.putExtra("LAT", getText(R.string.LAT1));
  newActivity.putExtra("LNG", getText(R.string.LNG1));
  </code></pre>
  
  <p>then,in the 2nd one, i get this like:</p>
  
  <pre><code>     double Lata;
      double Lnga;
  
  //in onCreate..
          Bundle extras = getIntent().getExtras();
  
          Lata = extras.getDouble("LAT");
          Lnga = extras.getDouble("LNG");
  </code></pre>
  
  <p>and then,i m passing them to the 3rd activity like this:</p>
  
  <pre><code>newActivity.putExtra("LAT",Lata);
  newActivity.putExtra("LNG",Lnga);
  </code></pre>
  
  <p>Finally, in the 3rd activity:</p>
  
  <pre><code>public class mapview extends MapActivity
  {
   @Override  
   public void onCreate(Bundle savedInstanceState)
   {
   super.onCreate(savedInstanceState);
   requestWindowFeature(Window.FEATURE_NO_TITLE);
  
   setContentView(R.layout.map);
  
   MapView mapView = (MapView) findViewById(R.id.mapview);
   mapView.setBuiltInZoomControls(true);
   //mapView.setSatellite(true);
   //mapView.setStreetView(true);
   List&lt;Overlay&gt; mapOverlays = mapView.getOverlays();
    Drawable drawable = this.getResources().getDrawable(R.drawable.pin);
   HelloItemizedOverlay itemizedoverlay = new HelloItemizedOverlay(drawable,this);
  
   Bundle extras = getIntent().getExtras();
  final double Latc = extras.getDouble("LAT");
   final double Lngc = extras.getDouble("LNG");
  Integer txt_map = extras.getInt("MAP_NAME");
  
  
  
  
  
   TextView mapname=(TextView)findViewById(R.id.museum_address_name);
   mapname.setText(getText(txt_map));
  
   Double lat = Double.valueOf(Latc*1E6);
  
      Double lng = Double.valueOf(Lngc*1E6);
  
      //---------------------------------------------------
      GeoPoint center = new GeoPoint(Double.valueOf(Latc*1E6).intValue(), Double.valueOf(Lngc*1E6).intValue());
      MapController controller = mapView.getController();
          controller.setCenter(center);
      controller.setZoom(15);
      //---------------------------------------------------
  
      GeoPoint point = new GeoPoint(lat.intValue(), lng.intValue());
   OverlayItem overlayitem = new OverlayItem(point, "", "");
  
  
   itemizedoverlay.addOverlay(overlayitem);
  
   mapOverlays.add(itemizedoverlay);
   }
   @Override
   protected boolean isRouteDisplayed()
   {
   return false;
   }
  }
  </code></pre>
  
  <p>The result is somewhere in South America,but my lat and long are in europe..What am i doing wrong?i m trying to fix it for more than 2 hours...:(</p>
  
  <p>EDIT</p>
  
  <pre><code>04-25 23:58:19.001: W/KeyCharacterMap(3746): No keyboard for id 0
  04-25 23:58:19.081: W/KeyCharacterMap(3746): Using default keymap: /system/usr/keychars/qwerty.kcm.bin
  04-25 23:58:22.461: W/Bundle(3746): Key LAT expected Double but value was a java.lang.Integer.  The default value 0.0 was returned.
  04-25 23:58:22.481: W/Bundle(3746): Attempt to cast generated internal exception:
  04-25 23:58:22.481: W/Bundle(3746): java.lang.ClassCastException: java.lang.Integer
  04-25 23:58:22.481: W/Bundle(3746):     at android.os.Bundle.getDouble(Bundle.java:1017)
  04-25 23:58:22.481: W/Bundle(3746):     at android.os.Bundle.getDouble(Bundle.java:1000)
  04-25 23:58:22.481: W/Bundle(3746):     at kostas.menu.athensmuseums.museum_item.onCreate(museum_item.java:39)
  04-25 23:58:22.481: W/Bundle(3746):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
  04-25 23:58:22.481: W/Bundle(3746):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
  04-25 23:58:22.481: W/Bundle(3746):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
  04-25 23:58:22.481: W/Bundle(3746):     at android.app.ActivityThread.access$2300(ActivityThread.java:125)
  04-25 23:58:22.481: W/Bundle(3746):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
  04-25 23:58:22.481: W/Bundle(3746):     at android.os.Handler.dispatchMessage(Handler.java:99)
  04-25 23:58:22.481: W/Bundle(3746):     at android.os.Looper.loop(Looper.java:123)
  04-25 23:58:22.481: W/Bundle(3746):     at android.app.ActivityThread.main(ActivityThread.java:4627)
  04-25 23:58:22.481: W/Bundle(3746):     at java.lang.reflect.Method.invokeNative(Native Method)
  04-25 23:58:22.481: W/Bundle(3746):     at java.lang.reflect.Method.invoke(Method.java:521)
  04-25 23:58:22.481: W/Bundle(3746):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
  04-25 23:58:22.481: W/Bundle(3746):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
  04-25 23:58:22.481: W/Bundle(3746):     at dalvik.system.NativeStart.main(Native Method)
  04-25 23:58:22.481: W/Bundle(3746): Key LNG expected Double but value was a java.lang.Integer.  The default value 0.0 was returned.
  04-25 23:58:22.491: W/Bundle(3746): Attempt to cast generated internal exception:
  04-25 23:58:22.491: W/Bundle(3746): java.lang.ClassCastException: java.lang.Integer
  04-25 23:58:22.491: W/Bundle(3746):     at android.os.Bundle.getDouble(Bundle.java:1017)
  04-25 23:58:22.491: W/Bundle(3746):     at android.os.Bundle.getDouble(Bundle.java:1000)
  04-25 23:58:22.491: W/Bundle(3746):     at kostas.menu.athensmuseums.museum_item.onCreate(museum_item.java:40)
  04-25 23:58:22.491: W/Bundle(3746):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
  04-25 23:58:22.491: W/Bundle(3746):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
  04-25 23:58:22.491: W/Bundle(3746):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
  04-25 23:58:22.491: W/Bundle(3746):     at android.app.ActivityThread.access$2300(ActivityThread.java:125)
  04-25 23:58:22.491: W/Bundle(3746):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
  04-25 23:58:22.491: W/Bundle(3746):     at android.os.Handler.dispatchMessage(Handler.java:99)
  04-25 23:58:22.491: W/Bundle(3746):     at android.os.Looper.loop(Looper.java:123)
  04-25 23:58:22.491: W/Bundle(3746):     at android.app.ActivityThread.main(ActivityThread.java:4627)
  04-25 23:58:22.491: W/Bundle(3746):     at java.lang.reflect.Method.invokeNative(Native Method)
  04-25 23:58:22.491: W/Bundle(3746):     at java.lang.reflect.Method.invoke(Method.java:521)
  04-25 23:58:22.491: W/Bundle(3746):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
  04-25 23:58:22.491: W/Bundle(3746):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
  04-25 23:58:22.491: W/Bundle(3746):     at dalvik.system.NativeStart.main(Native Method)
  04-25 23:58:24.251: W/MapActivity(3746): Recycling dispatcher com.google.googlenav.datarequest.DataRequestDispatcher@44ec4318
  </code></pre>