Do you actually have a location set? I vaguely remember that I once had the grey screen, where it was not the permission to get the data off the net, but the fact that the view did not know what/where to view. Ludwig
2008/10/17 Matthias <[EMAIL PROTECTED]> > > That didn't work for me. I am still getting a grey plane where the map > should be. :-/ > > Any other ideas? > > On Aug 20, 9:32 pm, "Megha Joshi" <[EMAIL PROTECTED]> wrote: > > Move the uses-permission tags above the application tag: > > > > <uses-permission > android:name="android.permission.ACCESS_COARSE_LOCATION" > > /> > > <uses-permission android:name="android.permission.INTERNET" /> > > > > <application android:icon="@drawable/icon" > > android:label="@string/app_name"> > > <uses-library android:name="com.google.android.maps" /> > > > > On Wed, Aug 20, 2008 at 3:44 AM, dapper <[EMAIL PROTECTED]> wrote: > > > > > Hi there, > > > > > I am just starting out with android and for my first app after the > > > tutorial I would like to display a Map. I have basically taken the > > > Sample code and put it into my own project. However I only seem to get > > > the grey grid and no map. Can anyone help (banging my head here). I am > > > using 0.9. > > > > > I know it is something stupid but can't see it. > > > > > Thanks > > > > > This is my main.xml > > > > > <?xml version="1.0" encoding="utf-8"?> > > > <LinearLayout xmlns:android="http://schemas.android.com/apk/res/ > > > android" > > > android:layout_width="fill_parent" > > > android:layout_height="fill_parent"> > > > <com.google.android.maps.MapView > > > android:id="@+id/map" > > > android:layout_width="fill_parent" > > > android:layout_height="fill_parent" > > > android:enabled="true" > > > android:clickable="true" > > > android:apiKey="mymapkey" > > > /> > > > </LinearLayout> > > > > > My code > > > > > public class HotelCompanion extends MapActivity { > > > > > MapView mMapView; > > > > > @Override > > > public void onCreate(Bundle savedInstanceState) { > > > super.onCreate(savedInstanceState); > > > setContentView(R.layout.main); > > > MapView map = (MapView) findViewById(R.id.map); > > > MapController mc = map.getController(); > > > mc.setZoom(9); > > > } > > > > > @Override > > > protected boolean isRouteDisplayed() { > > > return false; > > > } > > > } > > > > > and my manifest > > > > > <?xml version="1.0" encoding="utf-8"?> > > > <manifest xmlns:android="http://schemas.android.com/apk/res/android" > > > package="dharmesh.android.hotel"> > > > <application android:icon="@drawable/icon" android:label="@string/ > > > app_name"> > > > <uses-library android:name="com.google.android.maps" /> > > > > > <uses-permission > > > android:name="android.permission.ACCESS_COARSE_LOCATION" /> > > > <uses-permission android:name="android.permission.INTERNET" /> > > > > > <activity android:name=".HotelCompanion" > > > android:label="@string/app_name"> > > > <intent-filter> > > > <action android:name="android.intent.action.MAIN" /> > > > <category > > > android:name="android.intent.category.LAUNCHER" /> > > > </intent-filter> > > > </activity> > > > > > </application> > > > </manifest> > > > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---