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);
    }
    }
     



    1. Download the Forums for Android™ app!


      Download

       
  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...
Similar Threads - why splash screen
  1. Gobshyte
    Replies:
    1
    Views:
    587
  2. Gobshyte
    Replies:
    2
    Views:
    364
  3. aklilu medhin
    Replies:
    3
    Views:
    516
  4. Drchiefd113
    Replies:
    5
    Views:
    749
  5. kumaranil13k
    Replies:
    0
    Views:
    661
  6. kumaranil13k
    Replies:
    0
    Views:
    342
  7. Arron Mothersole
    Replies:
    3
    Views:
    1,014
  8. Gobshyte
    Replies:
    1
    Views:
    644
  9. Lina dhes
    Replies:
    13
    Views:
    913
  10. dorlow
    Replies:
    3
    Views:
    980

Share This Page

Loading...