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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:42:10+00:00 2026-05-26T02:42:10+00:00

I am attempting to create a splash screen to show up while my app

  • 0

I am attempting to create a splash screen to show up while my app initializes, using the dialog method discussed here:

http://blog.iangclifton.com/2011/01/01/android-splash-screens-done-right/

Yet, no matter what I do, the splash screen never appears, the screen just stays black until the main screen fully instantiates.. I call m.dismiss() at the end of the setup() method.

No errors are thrown, and the launch.XML is simply a linearlayout with a match_parent width and height and with a button taking up the enti view, but it never appears..

I assume it is either the context of “THIS” should be something else, or the width/height should be something other than match parent… any ideas/help would be appreciated.

@Override
public void onCreate(Bundle savedInstanceState) { 
    super.onCreate(savedInstanceState);  
    m = new Dialog(this,R.style.SplashScreen);
    m.setContentView(R.layout.launch);
    m.setCancelable(false);
    m.show();
    setContentView(R.layout.main);
    Handler h = new Handler();
    h.post( new Runnable(){
            public void run() {
        // TODO Auto-generated method stub  
                setup();
            }
    });

LAUNCH.XML file:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:orientation="vertical"
  android:layout_width="match_parent"
  android:layout_height="match_parent" >
<Button android:text="Button" android:layout_height="match_parent" android:layout_width="match_parent" android:id="@+id/button1"></Button>

</LinearLayout>
  • 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-26T02:42:11+00:00Added an answer on May 26, 2026 at 2:42 am

    your setup method is run on the UI thread. it prevents the spashscreen from being displayed. Try using an asynctask for the setup, and dismiss the splash in the onPostExecute()

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am attempting to create a very basic login screen, using the Storyboard designer
I am attempting to create a simple application using Eclipse GEF that displays a
I am attempting to create a svn branch using git-svn . The repository was
I'm attempting to Create a Job and Add a Batch using the Salesforce Bulk
I'm attempting to create a bare bones app for use in developing a plugin.
When attempting to create a new Ruby on Rails app in Windows the command
I'm attempting to create an app to pull the sqlite data from a preexisting
I am using attempting to create a connection to an Oracle database via entity
I'm attempting to create my own templates for the search pages using drupal 6.
I am attempting to create my first OS-level GUI using wxPython. I have the

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.