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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:05:03+00:00 2026-05-27T18:05:03+00:00

I am building an android application that has an Application object ( App )

  • 0

I am building an android application that has an Application object (App) that is ‘controlling’ the flow of the program. When the program starts I present the user with a splash screen while the App class downloads updates, preforms maintenance…etc.

My question is: How do I let the App object change the views – closing the splash screen (I don’t want the user pressing the back button and viewing it again…) then opening the ‘main menu’ view.

I am relatively new to Android, so this setup may not be the best way to structure the Application – applications in the past have struggled when the user has rotated the screen (the activity restarts and re-downloads..etc. the init stuff) This is the solution I have come up with? Correct?


public class App extends Application {
    public void onCreate() {
            init_work();
            // switch views
    }
}
  • 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-27T18:05:04+00:00Added an answer on May 27, 2026 at 6:05 pm

    This is not the usual approach to developing an app in Android.

    A good place to start is:

    http://developer.android.com/guide/topics/fundamentals.html

    Usually the responsbility of the application is simply to set up global state – IE manage database connections, initiate server communication etc.

    The UI flow is generally handled by creating separate Activities. These control the flow by selecting the next activity to run and starting an intent to move to the next stage.

    A splash screen could be handled in one of two ways:

    • Have the first activity create a dialog, which closes itself after a certain time has elapsed.

    • Create the splash screen as an activity that starts the main activity after a period of time has elapsed, and closes itself using finish().

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

Sidebar

Related Questions

I'm building an Android application that starts a process by calling su and sending
I am building an android application which has a listview and when the user
I'm building a android application that need to look allright on all screen sizes.
I'm building an Android application that's based around an enhanced WebView (based on PhoneGap).
I'm building an android application, which has a list view, and in the list
I'm building an Android application that needs to communicate with a MySQL database. The
I am building an Android application that requires OAuth. I have all the OAuth
We are building a mobile application that needs to work on both Android and
I am building Javascript application for mobile browsers (not wrapped-as-native app). I noticed that
I'm building an Android application (as an Eclipse project) that needs to access a

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.