Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7183835
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T18:04:37+00:00 2026-05-28T18:04:37+00:00

I made a test a program which uses Google maps following a tutorial. I

  • 0

I made a test a program which uses Google maps following a tutorial. I made everything like in tutorial, but my app crashes before even showing anything with message “Unfortunately HelloGoogleMaps has stopped”. I tried to debug and it seems like it crashes even before entering to onCreate method. This is my code:

package ru.medinfo.HelloGoogleMaps;

import android.os.Bundle;

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

public class HelloGoogleMapsActivity extends MapActivity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        //getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
        super.onCreate(savedInstanceState);
        MapView mapView = (MapView) findViewById(R.id.mapview);
        mapView.setBuiltInZoomControls(true);
        setContentView(R.layout.main);
    }

    @Override
    protected boolean isRouteDisplayed() {
        return false;
    }
}

Log after exception:

    01-27 16:22:34.195: W/dalvikvm(1038): Unable to resolve superclass of Lru/medinfo/HelloGoogleMaps/HelloGoogleMapsActivity; (3)
01-27 16:22:34.195: W/dalvikvm(1038): Link of class 'Lru/medinfo/HelloGoogleMaps/HelloGoogleMapsActivity;' failed
01-27 16:22:34.385: D/AndroidRuntime(1038): Shutting down VM
01-27 16:22:34.385: W/dalvikvm(1038): threadid=1: thread exiting with uncaught exception (group=0x409c01f8)
01-27 16:22:34.415: E/AndroidRuntime(1038): FATAL EXCEPTION: main
01-27 16:22:34.415: E/AndroidRuntime(1038): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{ru.medinfo.HelloGoogleMaps/ru.medinfo.HelloGoogleMaps.HelloGoogleMapsActivity}: java.lang.ClassNotFoundException: ru.medinfo.HelloGoogleMaps.HelloGoogleMapsActivity
01-27 16:22:34.415: E/AndroidRuntime(1038):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1880)
01-27 16:22:34.415: E/AndroidRuntime(1038):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
01-27 16:22:34.415: E/AndroidRuntime(1038):     at android.app.ActivityThread.access$600(ActivityThread.java:123)
01-27 16:22:34.415: E/AndroidRuntime(1038):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
01-27 16:22:34.415: E/AndroidRuntime(1038):     at android.os.Handler.dispatchMessage(Handler.java:99)
01-27 16:22:34.415: E/AndroidRuntime(1038):     at android.os.Looper.loop(Looper.java:137)
01-27 16:22:34.415: E/AndroidRuntime(1038):     at android.app.ActivityThread.main(ActivityThread.java:4424)
01-27 16:22:34.415: E/AndroidRuntime(1038):     at java.lang.reflect.Method.invokeNative(Native Method)
01-27 16:22:34.415: E/AndroidRuntime(1038):     at java.lang.reflect.Method.invoke(Method.java:511)
01-27 16:22:34.415: E/AndroidRuntime(1038):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
01-27 16:22:34.415: E/AndroidRuntime(1038):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
01-27 16:22:34.415: E/AndroidRuntime(1038):     at dalvik.system.NativeStart.main(Native Method)
01-27 16:22:34.415: E/AndroidRuntime(1038): Caused by: java.lang.ClassNotFoundException: ru.medinfo.HelloGoogleMaps.HelloGoogleMapsActivity
01-27 16:22:34.415: E/AndroidRuntime(1038):     at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
01-27 16:22:34.415: E/AndroidRuntime(1038):     at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
01-27 16:22:34.415: E/AndroidRuntime(1038):     at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
01-27 16:22:34.415: E/AndroidRuntime(1038):     at android.app.Instrumentation.newActivity(Instrumentation.java:1023)
01-27 16:22:34.415: E/AndroidRuntime(1038):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1871)
01-27 16:22:34.415: E/AndroidRuntime(1038):     ... 11 more
01-27 16:22:34.465: W/ActivityManager(87):   Force finishing activity ru.medinfo.HelloGoogleMaps/.HelloGoogleMapsActivity
01-27 16:22:34.488: W/WindowManager(87): Failure taking screenshot for (180x300) to layer 21010
01-27 16:22:35.001: W/ActivityManager(87): Activity pause timeout for ActivityRecord{41472d50 ru.medinfo.HelloGoogleMaps/.HelloGoogleMapsActivity}
01-27 16:22:35.295: W/NetworkManagementSocketTagger(87): setKernelCountSet(10044, 0) failed with errno -2
01-27 16:22:45.295: W/ActivityManager(87): Activity destroy timeout for ActivityRecord{41472d50 ru.medinfo.HelloGoogleMaps/.HelloGoogleMapsActivity}

Manifest:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="ru.medinfo.HelloGoogleMaps"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk android:minSdkVersion="15" />

    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />

    <uses-library android:name="com.google.android.maps" />

    <application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name" >
        <activity android:name=".HelloGoogleMapsActivity"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T18:04:38+00:00Added an answer on May 28, 2026 at 6:04 pm

    Put <uses-library android:name="com.google.android.maps" /> inside your application’s tag in your Manifest

    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
        package="ru.medinfo.HelloGoogleMaps"
        android:versionCode="1"
        android:versionName="1.0" >
    
        <uses-sdk android:minSdkVersion="15" />
    
        <uses-permission android:name="android.permission.INTERNET" />
        <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    
        <application
            android:icon="@drawable/ic_launcher"
            android:label="@string/app_name" >
    
            <uses-library android:name="com.google.android.maps" />
    
            <activity android:name=".HelloGoogleMapsActivity"
                      android:label="@string/app_name">
                <intent-filter>
                    <action android:name="android.intent.action.MAIN" />
                    <category android:name="android.intent.category.LAUNCHER" />
                </intent-filter>
            </activity>
        </application>
    
    </manifest>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to automate a program I made with a test suite via a
I made a test file, and ran through the excel file just fine, but
I've made some unit tests (in test class). The tutorial I've read said that
I'm writing a simple program in Java which includes a KeyListener with the following
I made a toy program to test Java's concurrency performance. I put it here:
I've made a project which is a kind of Todo List but it doesn't
I have made a program with a scroll pane, but it is not working.
I have made a program in VS2010, written in C#. It uses extra libraries
I made a test program for something totally unrelated to Entity Framework and what
I have made a simple, test program to experiment using classes. It creates a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.