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

  • Home
  • SEARCH
  • 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 7838293
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T15:03:34+00:00 2026-06-02T15:03:34+00:00

Once my splash screen display for 1000ms I receive an error stating The application

  • 0

Once my splash screen display for 1000ms I receive an error stating “The application has stopped unexpectedly. Please try again.” It seems an activity that is supposed to start after the splash screen is not working. before the splash screen, everything worked fine. Logcat
shows the following error ” E/AndroidRuntime(5480): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.xxxxx.home/com.xxxxx.home.xxxxx}: java.lang.NullPointerException. I beleive the issue is with my Splash Class but cannot pin point where. Any insight would be greatly appreciated.

public class Splash extends Activity{

private final int SPLASH_DISPLAY_LENGTH = 1000;

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.splash);


    new Handler().postDelayed(new Runnable(){
        @Override
        public void run() {

            Intent openxxxxx = new Intent("com.xxxxx.home.XXXXX");
            startActivity(openxxxxx);

        }
    }, SPLASH_DISPLAY_LENGTH);
}

}

  • 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-02T15:03:36+00:00Added an answer on June 2, 2026 at 3:03 pm

    Here is the complete code you can use this,

    package com.fsp.slideview;
    
    import android.app.Activity;
    import android.content.Intent;
    import android.os.Bundle;
    import android.view.MotionEvent;
    import android.view.Window;
    
    public class ImageSplashActivity extends Activity {
        /**
         * The thread to process splash screen events
         */
        private Thread mSplashThread;
    
        /** Called when the activity is first created. */
        @Override
        public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            requestWindowFeature(Window.FEATURE_NO_TITLE);
            setContentView(R.layout.splash);
    
            final ImageSplashActivity sPlashScreen = this;
    
            mSplashThread = new Thread() {
                @Override
                public void run() {
                    try {
                        synchronized (this) {
                            wait(2000);
                        }
                    } catch (InterruptedException ex) {
                    }
    
                    finish();
                    Intent intent = new Intent();
                    intent.setClass(sPlashScreen, SlideMainActivity.class);
                    startActivity(intent);
                }
            };
    
            mSplashThread.start();
        }
    
        @Override
        public boolean onTouchEvent(MotionEvent evt) {
            if (evt.getAction() == MotionEvent.ACTION_DOWN) {
                synchronized (mSplashThread) {
                    mSplashThread.notifyAll();
                }
            }
            return true;
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to show the splash screen only once during the Application life cycle.
I want a splash screen to show while the application is loading. I have
In a C# windows forms application. I have a splash screen with some multi-threaded
i have a splash screen that has some code that i only want called
In My application, I am using thread to show the splash screen. . .
Once again a question about the garbage collector in actionscript-3: If I have a
Once a user has selected a file with the open file dialog, how can
How do I redirect to a splash page once with cookies? I'm setting the
I'm back again to show my ignorance once more. I need assistance grabbing numbers
I have a winforms application in which I am using 2 Forms to display

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.