from your code, just remove, android:required="true" from "uses-
library" tag.
For you, i created a simple program to display map as,
public class ShowMap extends MapActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
MapView mapView = new MapView(this,
"0QTYhfJNb0lwM3PQi_6xS4NvSE-SeVI23aNlIMg");
setContentView(mapView);
}
@Override
protected boolean isRouteDisplayed() {
// TODO Auto-generated method stub
return false;
}
}
and the manifest is,
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.showmap" 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"></uses-library>
<activity android:name=".ShowMap"
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>
Nithin
On Jun 4, 12:40 pm, aswini <[email protected]> wrote:
> Hi,
>
> Thanks for your reply,
>
> i am posting the source code, manifest file and layout here.
> this application developed as per the below
> link.http://mobiforge.com/developing/story/using-google-maps-android
>
> please guide me , what i am doing wrong in this.
>
> 1.certificate fingure print which i generated from command prompt
>
> keytool.exe -list -alias androiddebugkey -keystore "C:\Documents and
> Settings\sujai.s\.android\ debug.keystore" -storepass android -keypass
> android
>
> Certificate FingurePrint <MD5> :99:31:66:92:62:81:96:1D:
> 3F:F0:48:C2:9A:C4:33:CB
>
> 2..API KEY generated by google account
>
> Thank you for signing up for an Android Maps API key!
> Your key is:
>
> 0QdugGF3zaZNNlcTKc-t-JIr7TuUP2Rt2mf3a6 AThis key is good for all apps
> signed with your certificate whose fingerprint is:
>
> 99:31:66:92:62:81:96:1D:3F:F0:48:C2:9A:C4:33:CBHere is an example xml
> layout to get you started on your way to mapping glory:
>
> <com.google.android.maps.MapView
> android:layout_width="fill_parent"
> android:layout_height="fill_parent"
> android:apiKey="0QdugGF3zaZNNlcTKc-t-
> JIr7TuUP2Rt2mf3a6A"
> />
>
> 3..source code:
>
> package com.example.android.location;
>
> import com.google.android.maps.MapActivity;
>
> import android.app.Activity;
> import android.os.Bundle;
>
> public class currentlocation 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;
> }
>
> }
>
> 4..Mnifest file:
>
> <?xml version="1.0" encoding="utf-8"?>
> <manifest xmlns:android="http://schemas.android.com/apk/res/android"
> package="com.example.android.location"
> 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"
> android:required="true"></uses-library>
> <activity android:name=".currentlocation"
> 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-permission android:name="android.permission.INTERNET"></uses-
> permission><uses-sdk android:minSdkVersion="8" />
>
> </manifest>
>
> 5..Main.xml file
>
> <?xml version="1.0" encoding="utf-8"?>
> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/
> android"
> android:orientation="vertical"
> android:layout_width="fill_parent"
> android:layout_height="fill_parent"
> >
> <com.google.android.maps.MapView
> android:layout_width="fill_parent"
> android:layout_height="fill_parent"
> android:apiKey="0QdugGF3zaZNNlcTKc-t-
> JIr7TuUP2Rt2mf3a6A"
> />
>
> </LinearLayout><menu xmlns:android="http://schemas.android.com/apk/res/
> android"></menu>
>
> thanks
> aswini
--
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en