nicche wrote:...OK, I realized that some examples in this site are based on old API versions.
And about the com.google.googlenav package... I wanted to use it to get route directions but I found that with newer API versions it is not possible anymore. The alternative approach is to use what is described in http://mapki.com/wiki/Google_Map_Parameters.
nicche wrote:Shaba1, my solution was to use the GeoPoint class instead of Point, anyway it would be useful to summarize all the other fixes from the responses to the very first post of this thread in order to avoid the need of reading 5 pages for a very small example.
bose pandian wrote:8) hi.. zmdea..
I had the same problem.. but now i solve it..
I write the steps to solve the problem.. hope this helps you..
C:>"C:Javajdk1.5jre1.5binkeytool.exe" -list -alias androiddebugkey -keysto
re "C:Documents and SettingsbosepandianLocal SettingsApplication DataAndroiddebug.keystore" -storepass android -keypass android
After successfully executed the command, it gives the MD5 certificate finger print.
copy that fingerprint and go to sign up for google android apikey site.
you will get the apikey and apply that key in your xml file or java file.
In the java file you apply the key like this..
myMapView = new MapView(this,"your apikey here");
In the android manifest xml file, you just give the following permission and user library.
<?xml version="1.0" encoding="utf-8"?>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-library android:name="com.google.android.maps" />
<activity android:name=".MyMap" android:label="@string/app_name">
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<uses-sdk> tag is optional if you are working in android version 1.0.
Hope this helps you..
Users browsing this forum: No registered users and 4 guests