I have just started the to develop google map application with the simple example which display the latitude and longitude of current location means right now where i am. I gone through to get google map key as per the below link
http://code.google.com/android/add-ons/ ... apkey.html
I have also added essential line in main.xml file and also in AndroidManifest.xml file. That is look as below:
main.xml
Using xml Syntax Highlighting
- <?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:enabled="true"
- android:clickable="true"
- android:apiKey="0ImDQVSqMxthgrky3qYO5o_BXAgb7_9hj1xnKHA"
- />
- </LinearLayout>
Parsed in 0.002 seconds, using GeSHi 1.0.8.4
AndroidManifest.xml
Using xml Syntax Highlighting
- <?xml version="1.0" encoding="utf-8"?>
- <manifest xmlns:android="http://schemas.android.com/apk/res/android"
- package="com.android.GoogleAPI"
- 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"/>
- <activity android:name=".GoogleAPI" 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="3"/>
- <uses-permission android:name="android.permission.INTERNET"/>
- <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
- </manifest>
Parsed in 0.003 seconds, using GeSHi 1.0.8.4
But anyhow i am not able to use "com.google.android.maps" package in my coding. So, i can't go further without the mentioned package.
If anybody have any idea to resolve this problem, please share with me.
Thanks.
-----------------------


