Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.example.laptoprpl.splashscreen;
- import android.app.Activity;
- import android.content.Intent;
- import android.os.Bundle;
- public class Screen extends Activity {
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.activity_screen);
- Thread thread = new Thread() {
- public void run () {
- try {
- sleep(7000);
- } catch (InterruptedException e) {
- e.printStackTrace();
- } finally {
- startActivity(new Intent(Screen.this, Menu.class));
- finish();
- }
- }
- };
- thread.start();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement