Launching Android app Icon Shows Misbehavior or delay? -



Launching Android app Icon Shows Misbehavior or delay? -

i'm facing delay of 0.3 milli sec in showing splash screen in application. when launches black screen top header appears app icon on left 0.3 or 0.2 milli sec, splash screen displays[launcher activity]. had splash activity set launcher activity , displays 5 seconds, , there's no delay set manually in code. can happening if app heavy or had missed in coding. pls help.

code:

public class splashscreen extends activity { // splash screen timer private static int splash_time_out = 5000; @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); requestwindowfeature(window.feature_no_title); getwindow().setflags(windowmanager.layoutparams.flag_fullscreen, windowmanager.layoutparams.flag_fullscreen); setcontentview(r.layout.splashscreen); new handler().postdelayed(new runnable() { /* * showing splash screen timer. */ @override public void run() { // method executed 1 time timer on intent = new intent(splashscreen.this, tabbar.class); startactivity(i); // close activity finish(); } }, splash_time_out); } }

change splash activity theme in manifest

@android:style/theme.light.notitlebar.fullscreen

or @android:style/theme.light.notitlebar

depends on requirement

android

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -