Thanks a lot Bryan, I'll get this checked today and get back to you. Cheers
On Tue, Nov 4, 2008 at 4:53 PM, bryan <[EMAIL PROTECTED]> wrote: > > Eclipse 3.4.1 > JDK 1.5.0_16 > Android SDK 1-1.0_r1 > Mac OS X 10.5 > > > Used "keytool -list -keystore ~/.android/debug.keystore" to get my > md5. > > > public class MyMapView extends MapActivity { > private static final int MILLION = 1000000; > MapView map; > MapController controller; > double lat; > double lon; > GeoPoint myPoint; > > @Override > public void onCreate(Bundle savedInstanceState) { > super.onCreate(savedInstanceState); > setContentView(R.layout.gps_mapview); > > Intent i = getIntent(); > lat = i.getDoubleExtra("latitude", 0); > lon = i.getDoubleExtra("longitude", 0); > int latE6 = (int) (lat * MILLION); > int lonE6 = (int) (lon * MILLION); > myPoint = new GeoPoint(latE6, lonE6); > > map = (MapView) findViewById(R.id.mapView); > ViewGroup zoom=(ViewGroup)findViewById(R.id.zoom); > zoom.addView(map.getZoomControls()); > controller = map.getController(); > controller.setZoom(17); > controller.setCenter(myPoint); > } > } > > > > gps_mapview.xml: > <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/ > android" android:layout_height="fill_parent" > android:layout_width="fill_parent" android:id="@+id/RelativeLayout01"> > <com.google.android.maps.MapView > android:id="@+id/mapView" > android:layout_width="fill_parent" > android:layout_height="fill_parent" > android:apiKey="07c5fr_xEBx7bK9b7bK9e0Wc07bK9CYr7bK9zQ" > android:clickable="true"/> > <LinearLayout android:layout_width="wrap_content" > android:layout_height="wrap_content" android:id="@+id/zoom" > android:layout_alignParentBottom="true" > android:layout_centerInParent="true"> > </LinearLayout> > </RelativeLayout> > > > On Nov 3, 11:27 am, "Shahbaz Khalid" <[EMAIL PROTECTED]> wrote: > > Hi, > > > > Very frustrated about this error since we can reproduce this on a number > of > > machines. > > > > The error is self explanatory, googlemaps don't appear at all. This was > > working perfectly (albeit all the IOException warnings) before the API > key > > requirement. Moving to another coordinate in googlemaps (Sending gps > > latitude/longitude coordinates through DDMS) doesn't work either (this > > worked before). > > > > Is there anyone who can post a working sample (with xmls) that works for > > them? Would also appreciate if they can post their platform/eclipse/jdk > > version details. > > > > Thanks > > > > On Mon, Nov 3, 2008 at 2:48 PM, ams163 <[EMAIL PROTECTED]> wrote: > > > > > Hello, > > > > > We've tried this on a number of our development machines, but so far > > > this is not working for us. > > > > > We are consistently getting the following errors in DDMS LogCat : > > > > > 'MapActivity - Couldn't get connection factory client' > > > > > and a LOT of : > > > > > 'WARN/AndroidHttpConnectionFactory(167): IOException in HttpClient: > > > The target server failed to respond' > > > > > warnings. A few days ago this was working for us when there wasn't the > > > googlemaps API key requirement, although we still had these HttpClient > > > warning messages coming up for us. > > > > > We are using Android SDK Debug certificate in eclipse as instructed > > > here: > > > > >http://code.google.com/android/toolbox/apis/mapkey.html > > > > > Eclipse version is : Version: 3.3.2, Build id: M20080221-1800 > > > JDK: jdk1.6.0_06 > > > Latest Android SDK and Eclipse Plugin > > > Platform, Windows XP SP2 > > > > > Would appreciate any help. > > > > > Thanks > > > --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---