Too bad you did not get a SecurityException instead of just empty map
tiles.

And too bad there is no xml schema to validate the manifest (AFIK).

On Oct 5, 5:25 pm, Clayton <[email protected]> wrote:
> I figured it out.  I had the <uses-permission> as a child of
> <application> rather than a child of the <manifest>, it's working
> now.  Thanks for your help!
>
> On Oct 5, 4:27 pm, Clayton <[email protected]> wrote:
>
> > I pulled the apikey by submitting the fingerprint I got from the
> > debug.keystore for the androiddebugkey which was what it said to do on
> > the dev site.  I copied that api key off of the webpage and pasted it
> > directlyMapViewandroid:apikey element in the main.xml (and I've
> > repeated and verified this several times).  Since I doubt the api key
> > I'm retrieving from the site is invalid, is there any other reasons I
> > could be getting empty tiles back that anyone is aware of?  This is
> > really frustrating as the app I'm writing needs maps so I can't really
> > proceed until I get this working.  If I download a new SDK will my
> > androiddebugkey change?  I suppose I could try this.
>
> > On Oct 1, 12:50 pm,jotobjects<[email protected]> wrote:
>
> > > What you are doing looks right.  The empty tiles view with cross
> > > hatches is a symptom of an invalid apiKey, but possibly it is
> > > something else.
>
> > > On Sep 26, 8:47 am, Clayton <[email protected]> wrote:
>
> > > > I'm having trouble getting the HelloMapView to work.  I have the Maps
> > > > API key that I got from, submitting the androiddebugkey, in the
> > > > main.xml but my HelloMapView comes up in the emulator with empty
> > > > tiles, no map.  The GoogleMaps app works on the emulator but my app
> > > > doesn't work.  What am I missing?
>
> > > > Here's my manifest
> > > > <?xml version="1.0" encoding="utf-8"?>
> > > > <manifest xmlns:android="http://schemas.android.com/apk/res/android";
> > > >       package="com.example"
> > > >       android:versionCode="1"
> > > >       android:versionName="1.0">
> > > >     <application android:icon="@drawable/icon" android:label="@string/
> > > > app_name">
> > > >         <uses-library android:name="com.google.android.maps" />
> > > >         <uses-permission android:name="android.permission.INTERNET" />
> > > >         <activity android:name=".HelloMapView"
> > > >                   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>
> > > >     <uses-sdk android:minSdkVersion="4" />
>
> > > > </manifest>
>
> > > > My main.xml
> > > > <?xml version="1.0" encoding="utf-8"?>
> > > > <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/
> > > > android"
> > > >     android:id="@+id/mainlayout"
> > > >     android:orientation="vertical"
> > > >     android:layout_width="fill_parent"
> > > >     android:layout_height="fill_parent" >
>
> > > >     <com.google.android.maps.MapView
> > > >         android:id="@+id/mapview"
> > > >         android:layout_width="fill_parent"
> > > >         android:layout_height="fill_parent"
> > > >         android:clickable="true"
> > > >         android:apiKey="<my-key-is-here>"
> > > >     />
> > > > </RelativeLayout>
>
> > > > Here's my HelloMapView class:
>
> > > > package com.example;
>
> > > > import com.google.android.maps.MapActivity;
> > > > import com.google.android.maps.MapView;
>
> > > > import android.app.Activity;
> > > > import android.os.Bundle;
> > > > import android.widget.LinearLayout;
> > > > import android.widget.RelativeLayout;
> > > > import android.widget.ZoomControls;
>
> > > > public class HelloMapView extends MapActivity {
>
> > > >     /** Called when the activity is first created. */
> > > >     @Override
> > > >     public void onCreate(Bundle savedInstanceState) {
> > > >         super.onCreate(savedInstanceState);
> > > >         setContentView(R.layout.main);
>
> > > >     }
>
> > > >         @Override
> > > >         protected boolean isRouteDisplayed() {
> > > >                 // TODO Auto-generated method stub
> > > >                 return false;
> > > >         }
>
> > > > }
>
> > > > Thanks in advance,
> > > > Clayton
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to