Mini Map problems "Error inflating"

Tutorials that use the MapActivity. Many using GPS functionality.

Mini Map problems "Error inflating"

Postby KayDK » Sun Apr 13, 2008 6:06 pm

Hello People.
I have tried out the Mini MAP application from this page (http://www.anddev.org/googlemaps_mini-t256.html) but i get this error while running: "Error inflating class google.android.maps.MapView (line 14)".

I have been searching for this error and some on google group forum said i should in stead create an instance of the MapView in the main class. After doing so, i get the same error but this time for google.android.ToolBar$ToolBarView.

Anyone know why i get this error?

Here is my layout XML file:


Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1. <?xml version="1.0" encoding="utf-8"?>
  2.  
  3. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4.  
  5.    android:orientation="vertical"
  6.  
  7.    android:layout_width="fill_parent"
  8.  
  9.    android:layout_height="fill_parent"
  10.  
  11.    >
  12.  
  13.      <AutoCompleteTextView android:id="@+id/address"
  14.  
  15.          android:layout_width="fill_parent"
  16.  
  17.          android:layout_height="wrap_content"
  18.  
  19.          android:text="@string/search_term"
  20.  
  21.          android:completionThreshold="1"
  22.  
  23.          android:selectAllOnFocus="true" />
  24.  
  25.      
  26.  
  27.         <view android:id="@+id/mapview"
  28.  
  29.          class="google.android.maps.MapView"
  30.  
  31.          android:layout_width="fill_parent"
  32.  
  33.          android:layout_height="fill_parent"  
  34.  
  35.          android:layout_weight="1"/>        
  36.  
  37.  
  38.  
  39.      <view class="google.android.ToolBar$ToolBarView"
  40.  
  41.          android:id="@+id/toolbar"
  42.  
  43.          android:layout_width="fill_parent"
  44.  
  45.          android:layout_height="wrap_content"/>
  46.  
  47.    
  48.  
  49. </LinearLayout>
Parsed in 0.003 seconds, using GeSHi 1.0.8.4
KayDK
Freshman
Freshman
 
Posts: 3
Joined: Sun Apr 13, 2008 5:58 pm

Top

Return to Map Tutorials

Who is online

Users browsing this forum: No registered users and 3 guests