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

  • Home
  • SEARCH
  • 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 7032061
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:53:07+00:00 2026-05-28T00:53:07+00:00

I want to create a splash screen that will then move to the login/register

  • 0

I want to create a splash screen that will then move to the login/register screen. My code looks like this:

import android.app.Activity;
import android.content.Intent;

import android.os.Bundle;

public class AssaultTDActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        this.TimeOut();
}

public void TimeOut(){
    long start = System.currentTimeMillis();
    boolean continueloop = true;
    long timenow;

    while (continueloop = true){
        timenow = System.currentTimeMillis();
        if (timenow - start > 5000){
            continueloop = false;
            this.GoToRegister();
        }
    }
}

public void GoToRegister(){
    Intent i = new Intent(AssaultTDActivity.this, register_activity.class);
    startActivity(i);
    finish();
}

import android.app.Activity;

import android.os.Bundle;
import android.widget.Button;
import android.widget.TextView;


public class register_activity extends Activity {
     @Override
        public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.register);

        }
}

and my manifest file is the following:

 <application
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name" >
    <activity android:screenOrientation="landscape"
        android:label="@string/app_name"
        android:name=".AssaultTDActivity" >
        <intent-filter >
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity class =".register_activity"  
        android:label="Log in" 
        android:screenOrientation="landscape" 
        android:name=".register_activity" >
    </activity>

</application>

So am I doing something wrong here?
Also is there a command to “do events” while looping so you dot get stuck in a loop?

  • 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-28T00:53:07+00:00Added an answer on May 28, 2026 at 12:53 am

    Because you added so many activities, it will most likely be fixed if you add:

    <category android:name="android.intent.category.DEFAULT" /> 
    

    So your main activity is the default activity and then the Android Launcher wont get tripped up.

        <activity android:name=".MainActivity"
                  android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
                  android:screenOrientation="portrait"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
                <category android:name="android.intent.category.DEFAULT" />  
            </intent-filter>
        </activity>
    

    Taken from: http://developer.android.com/reference/android/content/Intent.html

    Activities will very often need to support the CATEGORY_DEFAULT so
    that they can be found by Context.startActivity()

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

Sidebar

Related Questions

I want to create a splash screen that will then move to the login/register
I want to create an animated logo that serves as the splash screen for
I have problem that is in my code i create splash screen for a
I'm trying to create a splash screen using LWUIT. I want a form to
i want create Dynamic Slideshow in Jquery i'm Write this code var ctx =
I have created a splash screen in which i want to create two buttons
I want to create a splash screen for my Java application. I managed to
How do i create a Splash Screen for a vb.net program? I want to
I'm trying to have a splash screen then move to a downloading screen the
In my application , i am displaying a splash screen that i want to

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.