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?
Asked
Active
Viewed 217 times
0
-
It's called a Splash Screen. – Patrick May 11 '15 at 18:22
-
splash screen is what i am waitin for thank. If you add as an answer i'll mark it true answer. – nsarchar May 11 '15 at 18:37
3 Answers
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
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