Professional Documents
Culture Documents
Implement Animated Welcome/Splash Screen Activity of Your Application Which Show Some Kind of Animation Using Multithreading Concept
Implement Animated Welcome/Splash Screen Activity of Your Application Which Show Some Kind of Animation Using Multithreading Concept
Screenshot:
activity_splashscreen.xml
Splashscreen.java
package com.example.roadsafetyvolunteerismandawareness;
import android.content.Intent;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class splashscreen extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_splashscreen);
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
startActivity(new Intent(splashscreen.this,Home_page.class));
finish();
}
},3000);
}
}