Import bug MapView Superclass not found Dalvik class loader

by Fred Grott(shareme) » Tue, 04 Aug 2009 22:59:29 GMT


Sponsored Links
 ello and Good Morning,

I was doing examples of MapView to finish my templates for the
AndCooper Build tool and found that no matter what example I try I get
the same exception errors in SDK 1.5r3..

First lets head off the obvious.

-No widgets are present in the example.
-Simple class:

package com.mobilebytes.mymapview;

import com.google.android.maps.MapActivity;
import com.google.android.maps.MapController;
import com.google.android.maps.MapView;
import com.google.android.maps.MyLocationOverlay;


import android.os.Bundle;



public class MyMapViewActivity extends MapActivity {


private MapView mapView;
private MapController controller;


/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

setContentView(R.layout.main);
initMapView();
initMyLocation();


}

/** Find and initialize the map view. */
private void initMapView() {
mapView = (MapView) findViewById(R.id.mapview);
controller = mapView.getController();
mapView.setSatellite(true);
mapView.setBuiltInZoomControls(true);
}

/** Start tracking the position on the map. */
private void initMyLocation() {
final MyLocationOverlay overlay = new MyLocationOverlay(this,
mapView);
overlay.enableMyLocation();
//overlay.enableCompass(); // does not work in emulator
overlay.runOnFirstFix(new Runnable() {
public void run() {
// Zoom in to current location
controller.setZoom(8);
controller.animateTo(overlay.getMyLocation());
}
});
mapView.getOverlays().add(overlay);
}

@Override
protected boolean isRouteDisplayed() {
// TODO Auto-generated method stub
return false;
}
}


AndroidManifest:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mobilebytes.mymapview"
android:versionCode="1"
android:versionName="1.0">
<uses-permission
android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission
android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission
android:name="android.permission.INTERNET" />
<application android:icon="@drawable/icon" android:label="@string/
app_name">
<activity android:name=".MyMapViewActivity"
android:label="@string/app_name">
<uses-library
android:name="com.google.android.maps" />
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category
android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
<uses-sdk android:minSdkVersion="3" />



</manifest>

Layout/main.xml:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"



Import bug MapView Superclass not found Dalvik class loader

by Fred Grott(shareme) » Tue, 04 Aug 2009 23:03:37 GMT


 ever mind found the error

Placement of the uses-library of Google Maps has to occur after the
ending activity tag..





On Aug 4, 9:56am, "Fred Grott(shareme)" <fred.gr...@gmail.com> wrote:
--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. Is the SIP API complete? Seems the answer might be "no".

I'm trying to understand the SIP API beyond making and receiving audio-
only calls. For audio-only, everything appears to be in place for an
app to make a call, or receive a call, so the user can talk and hear
and all's well. The work is done with the SipAudioCall class.

But for more general-purpose SIP calling, SipSession does the work
except that the documentation is very weak with respect to what is
expected by the methods. For example, makeCall() takes a session
description string and that's all the information available in the
documentation. Is it safe to assume that a session description string
must be formatted according to the Session Description Protocol (RFC
2327: http://tools.ietf.org/html/rfc2327 )? The same issue is all
throughout the SipSession documentation. The onRinging() callback of
SipSession.Listener provides the caller's session description. Again,
is it safe to assume this is referring to an SDP-compliant string?

Thanks for the help.

- dave

-- 

2. OOT desire 2

http://www.teknoup.com/news/7303/htc-desire-2-menampakkan-diri-pakai-gingerbread-untuk-mwc-2011/
bakal menendang desire hd nih :D

-- 
@JP
~from pc~
milist-bebas-sh...@googlegroups.com (bebas berkarya)

-- 
===============

3. How to test SIP Demo in emulator.

4. Clickable Status Bar Icon

5. Properly Attaching Bitmap to Canvas

6. Install on SD card using adb.exe - doesn't work?

7. ported android input pheripheral issues