Default Map Not Showing Up During Tutorial

by Mike » Tue, 23 Feb 2010 10:12:35 GMT


Sponsored Links
 Hi all, not sure if this has been talked about somewhere, but I did
some pretty extensive searching and couldn't find it. I've been doing
the tutorial at 
 http://developer.android.com/resources/tutorials/views/hello-mapview.html 
I am able to complete it all the way through having the little android
icons appear on the screen, there's just one problem. The actual map
is not displaying, so the icons are just sitting on top of the grid it
shows before the map would load.

I am using Eclipse Galileo, Google APIs 2.0.1 Level 6 and Windows XP.
I set up the SDK debug certificate fingerprint correctly and have the
resulting apiKey listed in my main.xml file.

Are there any other places I have to list the apiKey? Any thoughts or
comments are appreciated.

--



Default Map Not Showing Up During Tutorial

by Mark Murphy » Tue, 23 Feb 2010 10:18:13 GMT


 


There are two causes I know of for a map to stay in gridline mode:

-- The apiKey is not actually in there properly (hint: if it has colons,
that's not the API key)

-- The emulator or device does not have Internet access, such as lacking
the INTERNET permission in the project

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

_The Busy Coder's Guide to *Advanced* Android Development_
Version 1.3 Available!

--


Sponsored Links


Default Map Not Showing Up During Tutorial

by Mike » Tue, 23 Feb 2010 10:33:52 GMT


 Interesting, well here is my main.xml file:

<?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:clickable="true"
    android:apiKey="0u_pSSA5Tcni1kZxK5IHFWe6rMJCzbMj*******"
/>

And my AndroirManifest.xml

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android=" http://schemas.android.com/apk/res/android" ;
      package="com.lash.HelloMapView"
      android:versionCode="1"
      android:versionName="1.0">
      <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" />
        <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="6" />

</manifest>

It looks to me like both of the issues you mentioned should be taken
care of, but did I type something incorrectly? Thanks for the quick
replies, I really appreciate the help.






--



Default Map Not Showing Up During Tutorial

by Mike » Tue, 23 Feb 2010 10:49:04 GMT


 OK, thanks for the info. Yah, I wasn't sure about the security of the
apikey so I threw those asterisks in there. I will take a look at your
project and let you know what I find. Thanks again for the help.






--



Default Map Not Showing Up During Tutorial

by Mike » Wed, 24 Feb 2010 00:13:16 GMT


 So I went and attempted to write the same program on a different
computer. It worked fine. I suspect that this is not an issue with the
apikey, but rather some setting in my original computer that limits
access to the internet (possibly higher security settings or some
firewall). Anyways, thanks for the help and hopefully this helps
others as well.

Mike





> >



Other Threads

1. KeyguardManager , KeyguardLock

Help: KeyguardManager, KeyguardLock two Examples. I did not realize
lockout

--~--~---------~--~----~------------~-------~--~----~

2. Restrictions on android apps?

Hi all,

I want to know if there is a place where I can find the restrictions
on what the android apps can do. Can my app block an incoming call?
Can my app divert an incoming call to a different number? Can my app
change the appearance of the dial pad itself?

Thanks in advance!

--~--~---------~--~----~------------~-------~--~----~

3. Some questions regarding MediaRecorder / Taking pictures / Setting of notifications

4. Android GUI application testing

5. What happens to android.media.AudioSystem?

6. Error when loading app to 0.9 beta SDK

7. new sdk