I'm getting an inflator exception when I place a MapView inside a
LinearLayout. My test xml looks like this:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:id="@+id/LinearLayout01"
android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android";>
<com.google.android.maps.MapView
    xmlns:android="http://schemas.android.com/apk/res/android";
    android:id="@+id/eventDetailsMapView"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:clickable="false"
    android:apiKey="@string/mapAPIKey"
/>
</LinearLayout>

The exception happens when I call
setContentView(R.layout.viewResourceFileNam);

The exception message is this: Binary XML file line #3: Error
inflating class com.google.android.ma
ps.MapView

I'm sure it's something basic. Any advice?


-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to