I think you need to add these to your manifest file:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="myfingpackage">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission
android:name="android.permission.ACCESS_COARSE_LOCATION" />
<application android:icon="@drawable/icon" android:label="@string/
app_name">
<uses-library android:name="com.google.android.maps" />
Notice the permissions tags and the uses-library tag.
So you can get out to the internets on your emulator huh? I can't on
mine, it is most depressing. I don't know what's wrong with it.
[EMAIL PROTECTED] wrote:
> I have subclassed the MapActivity and created the new MapView but when
> I launch my application it won't display a map. The Maps app that
> comes with the SDK does work.
>
> here is my code:
>
> public class perimeter extends MapActivity {
>
>
> protected MapView MyMapView = null;
>
> /** Called when the activity is first created. */
> @Override
> public void onCreate(Bundle savedInstanceState) {
> super.onCreate(savedInstanceState);
>
>
> MyMapView = new
> MapView(this,"ABC");
>
> setContentView(MyMapView);
> }
>
> @Override
> protected boolean isRouteDisplayed() {
> // TODO Auto-generated method stub
> return true;
> }
> }
>
>
> And here is my Manifest file.....
>
>
> <?xml version="1.0" encoding="utf-8"?>
> <manifest xmlns:android="http://schemas.android.com/apk/res/android"
> package="com.ds.perimeter">
> <application android:icon="@drawable/icon" android:label="@string/
> app_name">
> <activity android:name=".perimeter" 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" />
> </application>
> </manifest>
--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---