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

The Archive Base Latest Questions

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

I have a simple application, it starts, loads xml feed from the net, you

  • 0

I have a simple application, it starts, loads xml feed from the net, you can browse a list of news and then read details for a chosen news item. What I would like to do is have a splash screen, meaning as soon as you click application, it should display an image (app name in my case) and then display news list only after they’ve loaded.

I read about similar (I think) problems, and usually people say to use FrameLayout, but I can’t really sort it out. I’m not sure if this can be done in the first activity that is launched, maybe I should just display this splash image in one activity and only then call activity displaying my news list?

I know that on iPhone you can set splash screen in app settings while developing, would be nice to have this functionality in android’s app’s manifest…

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

    Android suggests you take advantage of using a splash screen when performing lengthy calculations on start up. Here’s an excerpt from the Android Developer Website – Designing for Responsiveness:

    “If your application has a time-consuming initial setup phase, consider showing a splash screen or rendering the main view as quickly as possible and filling in the information asynchronously. In either case, you should indicate somehow that progress is being made, lest the user perceive that the application is frozen.” — Android Developer Site

    You can create an activity that shows a Progress Dialog while using an AsyncTask to download the xml feed from the net, parse it, store it to a db (if needed) and then start the Activity that displays the News Feeds. Close the splash Activity by calling finish()

    Here’s a skeleton code:

    
    public class SplashScreen extends Activity{
       @Override
       public void onCreate(Bundle savedInstanceState){
          super.onCreate(savedInstanceState);
          // set the content view for your splash screen you defined in an xml file
          setContentView(R.layout.splashscreen);
    
          // perform other stuff you need to do
    
          // execute your xml news feed loader
          new AsyncLoadXMLFeed().execute();
    
       }
    
       private class AsyncLoadXMLFeed extends AsyncTask<Void, Void, Void>{
          @Override
          protected void onPreExecute(){
                // show your progress dialog
    
          }
    
          @Override
          protected Void doInBackground(Void... voids){
                // load your xml feed asynchronously
          }
    
          @Override
          protected void onPostExecute(Void params){
                // dismiss your dialog
                // launch your News activity
                Intent intent = new Intent(SplashScreen.this, News.class);
                startActivity(intent);
    
                // close this activity
                finish();
          }
    
       }
    }
    

    hope that helps!

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

Sidebar

Related Questions

I am developing simple travel agent android application. When application starts it loads list
I have a simple application that loads an unmanaged dll and passes a few
I have a simple application written in C# and .Net 2.0 that displays several
I have a simple bootloader, which initializes and prepares SDRAM. Then it loads an
I written a simple application that loads a number of wallpapers(20) total from scrollview
I have a rather simple Silverlight application, lately we've been having reports from users
I have this simple code in a WPF application: ThreadStart start = delegate() {
I have simple WinForms application where modifying Windows Registry. The problem is that in
I have a simple application in which I need to let the user select
I have a simple application which basically consists of a line of buttons and

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.