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 8584985
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T21:56:49+00:00 2026-06-11T21:56:49+00:00

I am learning android application development using The New Boston tutorials. I completed lesson

  • 0

I am learning android application development using The New Boston tutorials. I completed lesson 21, but when i run my code, the application crashes after the splash screen (i.e the logo). Please help. I don’t want to quit this tutorial. If there is anything else from eclipse u need except the data given below please let me know. Thanks in advance.

My manifest:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.thenewboston.pok"
    android:versionCode="1"
    android:versionName="1.0" >

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

    <application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <activity
            android:name=".Splash"
            android:label="@string/title_activity_the_new_boston" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity
            android:name=".TheNewBostonActivity"
            android:label="@string/title_activity_the_new_boston" >
            <intent-filter>
                <action android:name="com.thenewboston.pok.THENEWBOSTONACTIVITY" />

                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>
        <activity
            android:name=".MENU"
            android:label="@string/title_activity_the_new_boston" >
            <intent-filter>
                <action android:name="com.thenewboston.pok.MENU" />

                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>
    </application>

</manifest>

My Menu.java:

package com.thenewboston.pok;

import android.app.ListActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ListView;

public class Menu extends ListActivity{

    String classes[]={"TheNewBostonActivity", "example1", "example2", "example3",
            "example4", "example5", "example6"};

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        // TODO Auto-generated method stub
        super.onCreate(savedInstanceState);
        setListAdapter(new ArrayAdapter<String>(Menu.this, android.R.layout.simple_list_item_1, classes));
    }

    @Override
    protected void onListItemClick(ListView l, View v, int position, long id) {
        // TODO Auto-generated method stub
        super.onListItemClick(l, v, position, id);
        String cheese = classes[position];
        try{
            Class ourClass = Class.forName("com.thenewboston.pok." + cheese);
            Intent ourIntent = new Intent(Menu.this, ourClass);
            startActivity(ourIntent);
        } catch (ClassNotFoundException e){
            e.printStackTrace();
        }

    }
}

My Splash.java:

package com.thenewboston.pok;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

public class Splash extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        // TODO Auto-generated method stub
        super.onCreate(savedInstanceState);
        setContentView(R.layout.splash);
        Thread timer = new Thread(){
            public void run() {
                try{
                    sleep(5000);                    
                }catch (InterruptedException e){
                    e.printStackTrace();
                }finally{
                    Intent open1= new Intent ("com.thenewboston.pok.MENU");
                    startActivity(open1);
                }
            }
        };
        timer.start();
    }

    @Override
    protected void onPause() {
        // TODO Auto-generated method stub
        super.onPause();
    }

}

My TheNewBostonActivity.java:

package com.thenewboston.pok;

import android.media.MediaPlayer;
import android.os.Bundle;
import android.app.Activity;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

public class TheNewBostonActivity extends Activity {
    MediaPlayer ourSong;
    int counter;
    Button add, sub;
    TextView display;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        ourSong = MediaPlayer.create(TheNewBostonActivity.this, R.raw.undisclosed_desires);
        ourSong.start();
        counter = 0;
        add = (Button) findViewById(R.id.bAdd);
        sub = (Button) findViewById(R.id.bSub);
        display = (TextView) findViewById(R.id.tvDisplay);
        add.setOnClickListener(new View.OnClickListener() {

            public void onClick(View v) {
                // TODO Auto-generated method stub
                counter++;
                display.setText("Your Total Is " + counter);
            }
        });
        sub.setOnClickListener(new View.OnClickListener() {

            public void onClick(View v) {
                // TODO Auto-generated method stub
                counter--;
                display.setText("Your Total Is " + counter);
            }
        });

    }

    @Override
    protected void onStop() {
        // TODO Auto-generated method stub
        super.onStop();
        ourSong.release();
    }

}

My log file:

09-25 14:56:56.778: D/AndroidRuntime(336): Shutting down VM
09-25 14:56:56.778: W/dalvikvm(336): threadid=1: thread exiting with uncaught exception (group=0x40015560)
09-25 14:56:56.797: E/AndroidRuntime(336): FATAL EXCEPTION: main
09-25 14:56:56.797: E/AndroidRuntime(336): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.thenewboston.pok/com.thenewboston.pok.MENU}: java.lang.ClassNotFoundException: com.thenewboston.pok.MENU in loader dalvik.system.PathClassLoader[/data/app/com.thenewboston.pok-1.apk]
09-25 14:56:56.797: E/AndroidRuntime(336):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1569)
09-25 14:56:56.797: E/AndroidRuntime(336):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
09-25 14:56:56.797: E/AndroidRuntime(336):  at android.app.ActivityThread.access$1500(ActivityThread.java:117)
09-25 14:56:56.797: E/AndroidRuntime(336):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
09-25 14:56:56.797: E/AndroidRuntime(336):  at android.os.Handler.dispatchMessage(Handler.java:99)
09-25 14:56:56.797: E/AndroidRuntime(336):  at android.os.Looper.loop(Looper.java:123)
09-25 14:56:56.797: E/AndroidRuntime(336):  at android.app.ActivityThread.main(ActivityThread.java:3683)
09-25 14:56:56.797: E/AndroidRuntime(336):  at java.lang.reflect.Method.invokeNative(Native Method)
09-25 14:56:56.797: E/AndroidRuntime(336):  at java.lang.reflect.Method.invoke(Method.java:507)
09-25 14:56:56.797: E/AndroidRuntime(336):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
09-25 14:56:56.797: E/AndroidRuntime(336):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
09-25 14:56:56.797: E/AndroidRuntime(336):  at dalvik.system.NativeStart.main(Native Method)
09-25 14:56:56.797: E/AndroidRuntime(336): Caused by: java.lang.ClassNotFoundException: com.thenewboston.pok.MENU in loader dalvik.system.PathClassLoader[/data/app/com.thenewboston.pok-1.apk]
09-25 14:56:56.797: E/AndroidRuntime(336):  at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)
09-25 14:56:56.797: E/AndroidRuntime(336):  at java.lang.ClassLoader.loadClass(ClassLoader.java:551)
09-25 14:56:56.797: E/AndroidRuntime(336):  at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
09-25 14:56:56.797: E/AndroidRuntime(336):  at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
09-25 14:56:56.797: E/AndroidRuntime(336):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1561)
09-25 14:56:56.797: E/AndroidRuntime(336):  ... 11 more
  • 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-06-11T21:56:51+00:00Added an answer on June 11, 2026 at 9:56 pm

    You have declared your activity in manifest with all capital letters.

     android:name=".MENU"
    

    But your Activity class is Menu.java

    Change this to

      android:name=".Menu"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am just learning application development using Android platform. I want to know how
I am trying to make simple notepad application for learning android development. So, to
I'm new to Android application development and I'm currently experimenting with various UI ideas.
I'm familiar with C++ but never used Java. I've just started learning Android development.
I just started learning Android application development and I noticed the following issue while
I have starting learning Java and android application development side-by-side. Currently, I a String-array
I've been learning Android and Phonegap development from mainly these two sources: http://news.softpedia.com/news/How-to-Run-Android-Applications-on-Ubuntu-115152.shtml http://wiki.phonegap.com/w/page/30862722/phonegap-android-eclipse-quickstart
I'm learning Flex mobile application development, and I started with Android (I tinkered with
I'm still learning Android Development so sorry if this question seems stupid but I'm
I have just finished learning application development on android platform, as In matter of

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.