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. Android Projects Promotion Pages Online!

*[You might get this mail from other groups. In that case, sorry for the
spam even if we are so eagle to let you know about our ideas]*

Dear all, < http://www.***.com/ ; ( http://www.***.com/ ) has brought
online the Android projects promotion pages, where companies and individuals
can release their Android software products. The pages are mainly targeted
at the market of China, which as you know, has the population of billions.
Here, your product would have the audience on the billion scales, especially
when in the near future (it is April as claimed) China Mobile, the {*filter*}
mobile operator within China, will launche the Android campaign with
substantial Android phone products from many manufacturers.

 Besides, the promotion here is free to use without any revenue sharing, and
will serve only as an index entry to your productspages to secure the
payment if they charge. Meantime, would benefit somehow. In this
win-win situation, what would you lose anyway?
So please just try it out before you make the final decision, starting from
the page as follows,

Project Display:  http://www.***.com/ 
Project Release: http://www.***.com/ 
Introduction with image demo: http://www.***.com/ ;t=278

Thank you very much.

-- - Where Android is hot

2. XML Dom parser throws error input source needs either stream or reader


I am new to android development, right now i am doing a simple project
that receive data from XML and display on screen.
for retrieving data from XMl file I have used Dom parser but at run
time it will throw an error. The SAX Exception   " input source needs
either stream or reader"

                Document dom;
                DocumentBuilderFactory dbf = 
                DocumentBuilder db = dbf.newDocumentBuilder();
                dom = db.parse("assets/myfile.xml");

This code is working fine with out side android or other java project.

I have tried for
               File f = new File ("assets/myfile.xml");
               InputStream str =  f.toURL().openStream();
               dom = db.parse(str);
and same for by using reader. but sill i got same kind of error,

Please tell me what is correct way to use Stream or Reader.

Thanks in advance :)


3. Please suggest Substitute for drawRegion in android.

4. HelloGallery tutorial: android.R.styleable cannot be resolved

5. Please help in getting screen coordinates of a view

6. Does any one know how to put into Android ?

7. How to get south asian unicode fonts on android?