Map on device

Put problem concerning MapActivities, MapViews, Overlays and GPS in this forum.

Map on device

Postby zahidalinaqvi » Thu Sep 17, 2009 9:52 pm

Hello,

i am using the signed mapkey and its showing map on emulator but not on device.
i got this mapkey by using the keytool command which i have seen on a forum.
what is the map concept to show map on device.

thanks in advance

MY XML CODE

Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1. <?xml version="1.0" encoding="utf-8"?>
  2.  
  3. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4.  
  5.    android:id="@+id/mainlayout"
  6.  
  7.    android:orientation="vertical"
  8.  
  9.    android:layout_width="fill_parent"
  10.  
  11.    android:layout_height="fill_parent" >
  12.  
  13.  
  14.  
  15.     <com.google.android.maps.MapView
  16.  
  17.    xmlns:android="http://schemas.android.com/apk/res/android"
  18.  
  19.    
  20.  
  21.        android:id="@+id/mapview"
  22.  
  23.        android:layout_width="fill_parent"
  24.  
  25.        android:layout_height="fill_parent"
  26.  
  27.        android:clickable="true"
  28.  
  29.         android:enabled="true"
  30.  
  31.        android:apiKey="0KJJIdExMRcJNjMbh9QPCq0LpVzN6BwFaL_f-DA"
  32.  
  33.    />
  34.  
  35.  
  36.  
  37. <LinearLayout
  38.  
  39.    android:id="@+id/zoomview"
  40.  
  41.    android:layout_width="wrap_content"
  42.  
  43.    android:layout_height="wrap_content"
  44.  
  45.    android:layout_alignBottom="@id/mapview"
  46.  
  47.    android:layout_centerHorizontal="true"
  48.  
  49.    android:layout_alignParentBottom="true"
  50.  
  51.    
  52.  
  53. />
  54.  
  55.  
  56.  
  57. </RelativeLayout>
  58.  
  59.  
Parsed in 0.003 seconds, using GeSHi 1.0.8.4
User avatar
zahidalinaqvi
Developer
Developer
 
Posts: 35
Joined: Mon Aug 11, 2008 8:54 am
Location: Jaipur India

Top

Postby yaj786 » Mon Sep 21, 2009 11:56 pm

I had the same problem, you probably only used a debug key instead of a real one in your application.
yaj786
Developer
Developer
 
Posts: 33
Joined: Fri Jul 10, 2009 7:37 am

Postby andreleitao » Tue Sep 29, 2009 2:23 pm

I don't know if I see your problem. The map is not being shown, is it? If it is not being shown even if you typed a generated api key, you have assure that you are using keytool from Java 1.5 or earlier. I had this problem on Linux. I used keytool from java 1.4 (default) to generate my Api Key and the map was still "invisible". Try to install Java 1.5 or earlier, configure its classpath correctly and execute its keytool to generate your Api Key. :)
andreleitao
Experienced Developer
Experienced Developer
 
Posts: 70
Joined: Tue Mar 10, 2009 9:56 pm
Location: Recife - Brazil

Top

Return to Map Problems

Who is online

Users browsing this forum: Google Feedfetcher and 3 guests