Victor Lin wrote:
> <?xml version="1.0" encoding="utf-8"?>
> <manifest xmlns:android="http://schemas.android.com/apk/res/android";
>       package="com.ez2learn.android.powergrid"
>       android:versionName="1.0" android:versionCode="4">
>     <application android:icon="@drawable/icon" android:label="@string/
> app_name" android:description="@string/app_description">
>         <activity android:name=".PowerGrid"
>                   android:label="@string/app_name">
>             <intent-filter>
>                 <action android:name="android.intent.action.MAIN" />
>                 <category
> android:name="android.intent.category.LAUNCHER" />
>             </intent-filter>
>         </activity>
>     <uses-library android:name="com.google.android.maps"></uses-
> library>
> </application>
>     <uses-sdk android:minSdkVersion="3" />
> 
> <uses-permission android:name="android.permission.INTERNET"></uses-
> permission>
> </manifest>

Try moving the <uses-library android:name="com.google.android.maps"> and
 <uses-sdk android:minSdkVersion="3" /> lines closer to the top of the
file, so <uses-sdk> is the first child of <manifest> and <uses-library>
is the first child of <application>. The Android XML parsing logic
sometimes is position-dependent, and I usually see these at the tops of
files, not the bottom.

More generally, see if you can get any existing, known-to-work mapping
examples running, then start to adjust your code to more closely match
what is in the example.

Also, is your AVD set for target 3 (-t 3)? If it is a target 2 AVD,
there is no mapping library.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Looking for Android opportunities? http://wiki.andmob.org/hado

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to