Android 2.0 -Map not showing up

by Venkat » Sun, 23 May 2010 03:31:41 GMT

Sponsored Links
 Hi All,

I need a help in displaying map in android.
I have pasted my manifst.xml and my java file.

please tell me where i am going wrong.

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="" ;
    <application android:icon="@drawable/icon" android:label="@string/
        <activity android:name=".HelloMapView"
                <action android:name="android.intent.action.MAIN" />
android:name="android.intent.category.LAUNCHER" />
                <uses-library android:name="" />
    <uses-sdk android:minSdkVersion="5" />

<uses-permission android:name="android.permission.INTERNET"></uses-
package com.src;

import android.os.Bundle;

public class HelloMapView extends MapActivity {

        public void onCreate(Bundle icicle) {


        protected boolean isRouteDisplayed() {
                // TODO Auto-generated method stub
                return false;

I was trying to view map through my app for further development, but
the map is not showing...

Any help or guidance would be much appreciated.

Thanks & Regards,


Android 2.0 -Map not showing up

by Surendra » Sun, 23 May 2010 03:47:50 GMT

 You need a map key in your layout to use.

Follow the instructions at the site and obtain the map api key. 

And in in your layout xml file in the place you have these lines add
the map api key in the android:apikey place.

                                android:apiKey="Add your map api key here"
                                android:layout_height="fill_parent" />


Sponsored Links

Other Threads

1. can i use 15MB space for my App?

Hi ,

i am wondering my application have too many images in assets which is
about 15MB but there is only 14MB space available for android App.

is there any way to increase this space?


2. Controlling an Android device via additional UIs

I want Android (or Android devices) to become able to be controlled
via additional, external user interfaces. like a kind of remote
interface. In other words, i want to design a software-interface which
enables Android devices to make use of a second system's UIs. I
imagine it like that:
For example you have your Android device (let's call it the first
system) and a regular PC (let's call this the second system). So in
this case the second system has much more comfortable user interfaces
(like it's hardware keyboard) for performing tasks like writing a text
message. Now I want the first device -- the Android phone -- to
connect (e.g. via wireless lan) with the second system. Now the second
system provides representation (views and so on) that are able to
delegate the user's interaction to the Android device where this is
than computed by the current running activity (displayed on the
external UIs). The representation, provided by the second system could
be optimized to the second system's UI's. That is, e.g. the views are
presented bigger because the bigger screen of the PC makes it possible
to enlarge the presentation of a view.

But I wonder on which level of the framework stack one has to make
changes to remote the user interface also to an external system's UI?!
So far I was thinking of two possible solutions:

The second system (e.g. the PC) has a proxy presentation. This is, for
example if a button is presented on the Android device, than there is
also a proxy for this button, presented on the PC's screen. If the
user activates the proxy-button on the PC, than this event is making a
Remote Procedure Call to the android device, activating the android
device's button. This could be implemented for example by using RMI
techniques. (I know RMI is currently not supported in the stack, but I
guess these libs could be added to the stack.)

On his Google I/O talk titled "Anatomy & Physiology of an Android",
Patrick Brady was talking of the "Surface Manager" on Android's native
libraries level. I thought that editing this functionality could also
be an approach. But first, I haven't found any documentation on this
so called "Surface Manager", and second, I am not sure if this is the
right point if you want to offer external UIs which are optimized on
things like size and layout.

Since I am a total newbie on Android, I am interested in the framework-
developers thoughts about my idea.
Any hint, help and critic is welcome.


3. throughput tools

4. how to make a view drawable

5. Error in running Google Map and Calendar in Android SDK1.5 Release

6. how can I include android.bluetooth into the build ? EOM

7. Market Layout...