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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T16:25:38+00:00 2026-05-21T16:25:38+00:00

i want the spash screen to only show when the app has been compltely

  • 0

i want the spash screen to only show when the app has been compltely destroyed not when it is running in the background and resumed

  • 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-21T16:25:39+00:00Added an answer on May 21, 2026 at 4:25 pm

    A very simple method:

    Main Activity is only a splash screen. This Activity is shown while a timer starts that elapses for say 4 seconds.

    When 4 seconds hits, the splash screen activity is destroyed and the Main Application Activity is started.

    Voila, you now have a splash screen that will never be shown, except when you first start the application.

    public class SplashScreen extends Activity {
    
        @Override
        public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.splash_screen);
    
            Thread t = new Thread() {
                public void run() {
                    try {
                        int time = 0;
                        while (time < 4000) {
                           sleep(100);
                           time += 100;
                        }
                    }
                    catch (InterruptedException e) {
                        // do nothing
                    }
                    finally {
                        finish();
                        Intent i = new Intent(SplashScreen.this, MainApplication.class);
                        startActivity(i);
                    }
                }
            };
            t.start();
    
        }
    }
    
    • 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 have a splash screen that has some code that i only want called
I want to show a splash Screen before the App lunch. First I make
I only want a simple Splash Screen Example. Get the Code, Insert my picture,
I want a splash screen to show while the application is loading. I have
hello all i have my splash screen which i want to show in landscape
I want to show a splash screen to user when user runs an application.
I used to show a splash screen which in background load some data from
I want to show a splash screen while my application's main form is loading
I want to implement a splash screen for my app, i'm using this code

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.