0

I want to make a page with logo before the app starts like snapchat does (with a loading mark) What is that pages called an Activity page?

Sample image

David Greydanus
  • 2,551
  • 1
  • 23
  • 42
nsarchar
  • 21
  • 6

3 Answers3

0

It's a simple activity that starts before the main one, I suggest you do more basic research on android

TootsieRockNRoll
  • 3,218
  • 2
  • 25
  • 50
0

This kind of Activity is called a Splash Screen.

You can check this related question to find out how to do it.

Community
  • 1
  • 1
Patrick
  • 268
  • 1
  • 5
0

Create two activities in android put your logo in first one usually called launcher activity and called second one and put the waiting time. //First one in StartActivity and second one is login

int waitTime = 4 * 1000;    //4 seconds

@Override
protected void onCreate(Bundle savedInstanceState) 
{
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_start);
    new Handler().postDelayed(new Runnable() 
    {
        @Override
        public void run() 
        {
            Intent intent = new Intent(StartActivity.this,LoginActivity.class);
            finish();
            startActivity(intent);

        }
    }, waitTime);   
}

@Override
public void onBackPressed() 
{
    finish();
    super.onBackPressed();
}
Aditya
  • 371
  • 3
  • 8