Verify your map center coordinates. On Tuesday, May 29, 2012 9:07:53 AM UTC-4, subramania...@googlemail.com wrote: > > I am trying the very basic google maps api code. But it just gives me > a blank blue page. > > My program is this > > Java code:: > > package com.project1; > > import android.os.Bundle; > > import com.google.android.maps.GeoPoint; > import com.google.android.maps.MapActivity; > import com.google.android.maps.MapController; > import com.google.android.maps.MapView; > > public class Testmap22Activity extends MapActivity { > /** Called when the activity is first created. */ > @Override > public void onCreate(Bundle savedInstanceState) { > super.onCreate(savedInstanceState); > setContentView(R.layout.main); > MapView mapview = (MapView) findViewById(R.id.mapview); > GeoPoint gp = new GeoPoint(130810,802740); > MapController mvc = mapview.getController(); > mvc.setCenter(gp); > mapview.setBuiltInZoomControls(true); > } > > @Override > protected boolean isRouteDisplayed() { > // TODO Auto-generated method stub > return false; > } > } > > main.xml is > > <?xml version="1.0" encoding="utf-8"?> > > <com.google.android.maps.MapView > xmlns:android="http://schemas.android.com/apk/res/ > android" > android:id="@+id/mapview" > android:layout_width="fill_parent" > android:layout_height="fill_parent" > android:enabled="true" > android:clickable="true" > android:apiKey="Key" > /> > > Manifest file > > <?xml version="1.0" encoding="utf-8"?> > <manifest xmlns:android="http://schemas.android.com/apk/res/android" > package="com.project1" > android:versionCode="1" > android:versionName="1.0" > > > <uses-sdk android:minSdkVersion="15" /> > <uses-permission > android:name="android.permission.ACCESS_COARSE_LOCATION"/> > <uses-permission > android:name="android.permission.ACCESS_FINE_LOCATION"/> > <uses-permission android:name="android.permission.INTERNET"/> > > > <application > android:icon="@drawable/ic_launcher" > android:label="@string/app_name" > > <activity > android:name=".Testmap22Activity" > android:label="@string/app_name" > > <intent-filter> > <action android:name="android.intent.action.MAIN" /> > > <category > android:name="android.intent.category.LAUNCHER" /> > </intent-filter> > </activity> > <uses-library android:name="com.google.android.maps"/> > </application> > > </manifest> > > All I get is a blank blue page with Zoom enabled. Need your help on > this... > > Subbu >
-- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en