Here is process to show splash screen :-
public class Logo extends Activity {
private static final int SPLASH_DISPLAY_TIME = 4000;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
setContentView(R.layout.logo);
new Handler().postDelayed(new Runnable() {
public void run() {
Intent intent = new Intent();
intent.setClass(Logo.this, Splesh.class);
Logo.this.startActivity(intent);
Logo.this.finish();
}
}, SPLASH_DISPLAY_TIME);
}
}
public class Logo extends Activity {
private static final int SPLASH_DISPLAY_TIME = 4000;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
setContentView(R.layout.logo);
new Handler().postDelayed(new Runnable() {
public void run() {
Intent intent = new Intent();
intent.setClass(Logo.this, Splesh.class);
Logo.this.startActivity(intent);
Logo.this.finish();
}
}, SPLASH_DISPLAY_TIME);
}
}
No comments:
Post a Comment