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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:57:32+00:00 2026-05-27T13:57:32+00:00

pIn my application i have a startup page which is a splash. As soon

  • 0

pIn my application i have a startup page which is a splash. As soon as this activity is started i am setting the content to this page. Then i am doing all the initial updates like DB sync. On completion of those i start next actvity.

SO i deally my applictaion should start showing the splash page and after few secs it should display next page.

What i am getting is when i start the application, there is this blank black page for few secs and then directly second activity page is displayed. If i comment out starting next activity, i can see the black page for few seconds and then the splash page comes and stays

here is my layout and code

    <?xml version="1.0" encoding="utf-8"?>
<LinearLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:orientation="vertical"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent">
   <ImageView android:layout_width="fill_parent" android:src="@drawable/defaultimage"
            android:layout_height="fill_parent" 
            android:scaleType="fitXY"
            ></ImageView>


</LinearLayout

>

public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            Utils.setStartActivityinstance(this);
            this.requestWindowFeature(Window.FEATURE_NO_TITLE);
            setContentView(R.layout.firstpage);
        Log.i(TAG, "display set");
            Utils.imageLoader = new ImageLoader(this.getApplicationContext());
            initialise();
            doDataSync();
        displayHome();

}

setContentView is called before the initialisations but the display is not getting updated.

  • 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-27T13:57:33+00:00Added an answer on May 27, 2026 at 1:57 pm

    This is because you are sync DB and therefore you are getting a blank screen and until your DB gets sync the time period for the Splash Screen get completed and it directly moves to the next Activity. So try to remove the sync DB code and try you will get the exact output. Then for sync DB you must use a background thread that doesn’t not effect the UI-Thread. eg:- AsyncTask

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

Sidebar

Related Questions

I am developing an iPhone Application in which i have provide Pin Annotation button
I have pin pointed a bottle neck in my application, it seems to me
I have a Silverlight 4 application which has a leaky ViewModel class. I have
I have developed an application in which the data About Schools are stored in
I have made an application with a NavigationWindow with a page loaded in it.
I am working on an application which use user location updates, I have got
So, I have an application which streams two video sources over a local area
We have an established web application, which is supported by a mysql database. We
I have used this example in my application, http://spitzkoff.com/craig/?p=81 but its not calling/triggering the
I have a Java application where users must specify a PIN to log in.

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.