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 android.os.Bundle;

public class MyMapViewActivity extends MapActivity {

private MapView mapView;
private MapController controller;

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



/** Find and initialize the map view. */
private void initMapView() {
mapView = (MapView) findViewById(;
controller = mapView.getController();

/** Start tracking the position on the map. */
private void initMyLocation() {
final MyLocationOverlay overlay = new MyLocationOverlay(this,
//overlay.enableCompass(); // does not work in emulator
overlay.runOnFirstFix(new Runnable() {
public void run() {
// Zoom in to current location

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

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android=""
android:name="android.permission.ACCESS_COARSE_LOCATION" />
android:name="android.permission.ACCESS_FINE_LOCATION" />
android:name="android.permission.INTERNET" />
<application android:icon="@drawable/icon" android:label="@string/
<activity android:name=".MyMapViewActivity"
android:name="" />
<action android:name="android.intent.action.MAIN" />
android:name="android.intent.category.LAUNCHER" />
<uses-sdk android:minSdkVersion="3" />


<?xml version="1.0" encoding="utf-8"?>

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)" <> wrote:

Sponsored Links

Other Threads

1. Need help with a keylistener

I got stuck a few days ago and I don't seem to make any headway so
hopefully someone can help me.

I want to set a key in my settings after the click of a button, but I
can't add a keylistener to the View.OnClickListener or to the View
arg0. Then I made it like this:

bUP2.setOnClickListener(new View.OnClickListener() {
          public void onClick(View arg0) {
                        Toast.makeText(Keyinput.this, "Give key Player 2 UP",
                        View.OnKeyListener vok = new View.OnKeyListener() {
                        public boolean onKey(View v, int keyCode, KeyEvent 
event) {
onKey "+keyCode);
                                        editor.putInt("UP2", keyCode);
                                        return true;

Do I have to focus to the new View somehow? Or is there a simpeler

Thanks in advance.


2. What limits the number of apps that can be installed? (Have I passed that limit?)

I have a Sprint Hero that seems broken. When I boot it, it can not
establish Sprint connectivity, and almost every app and process
croaks. If I uninstall an app, any app, and reboot, the phone will
work just fine. Install any other app, reboot, and again, no Sprint
connectivity (only grey bars show with a small x floating above them),
and the most processes close.

Smart Monitor tells me that:

CPU is 16% used, Memory is 85% used out of a total of 192.2MB,
System (RO) has 16MB available out of 170MB
User Cache (RW) has 127MB available out of 130MB
User Data (RW) has 43MB available out of 159MB
(and the SD card has 321MB available.)

I can install any app at this point to break the phone, and uninstall
any app to fix it. To me it sounds like too many apps installed,
EXCEPT that the rudimentary memory stats I posted don't really show a
shortage of memory.

Have I reached some Android OS Limit? What limits how many apps can be
installed? Or is it something else that is wrong, and if so, what?

The loss of Sprint connectivity I put down to having some core process
that provides that connectivity dying, not to hardware.

But what do other people see on other Android phones when "too" many
apps are installed? It seems like pretty poor behavior on Android's
part to just let too many get installed and die so horribly -- that's
why I think well, maybe it's not the OS, maybe it's a bad application
but if so, which one? How can I find out without having to install/
reinstall each app leaving one out each time until it works?


3. manifest package

4. Alpha Animation not retaining state

5. intersection Search using GeoCode

6. Problems of Android SDK 1.6 R1 in Windows 7

7. where can we announce new application we create?