1. Are you ready for the Galaxy S20? Here is everything we know so far!

hi, i would like to know why my splash screen doesn't work.

Discussion in 'Android Development' started by LUKE LOUYU, Jun 6, 2020.

  1. LUKE LOUYU

    LUKE LOUYU Lurker
    Thread Starter

    my codes are below
    import androidx.appcompat.app.AppCompatActivity;

    import android.os.Bundle;
    import android.os.Handler;
    import android.content.Intent;

    public class MainActivity extends AppCompatActivity {

    @override
    protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    new Handler(). postDelayed(new Runnable() {
    @override
    public void run() {
    Intent homeIntent= new Intent (MainActivity.this, HomeActivity.class);
    startActivity(homeIntent);
    finish();
    }
    }, 3000);
    }
    }
     


  2. wseng92

    wseng92 Android Enthusiast

    Not working mean ? Any exception?
     
    MrJavi likes this.
  3. bcrichster

    bcrichster ROMinator
    Moderator

    Some devices need some proprietary tools to modify the splash screens on some devices.. Like Motorola has a bootlogo Tool for this..
     
Loading...

Share This Page

Loading...