ၸႂ်ႉတူၺ်းၼင်ႇတႂ်ႈၼႆႉ
code
package com.example.jaotainum.welcomescreen; import android.content.Intent; import android.os.Handler; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; public class Main extends AppCompatActivity { private int SPLASH_TIME_OUT = 4000; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); new Handler().postDelayed(new Runnable() { @Override public void run() { Intent home = new Intent(Main.this,HomeActivity.class); startActivity(home); finish();; } },SPLASH_TIME_OUT); } }
No comments:
Post a Comment