+ 1

All about apps coding

Suppose I m making an app, now i want to display my app logo for 2 sec when the app is opened every time, like that of facebook, so how can i do that with help of coding?? Help guys if you know the answer then share your codes here. Thank You...

28th Oct 2017, 11:17 AM
Jitesh Gupta
4 odpowiedzi
+ 1
*** public class MainActivity extends Activity { *** private static final boolean launched = false; *** @Override protected void onCreate(Bundle sis) { if (launched) { // The app has already started. setContentView(R.layout.main_activity); } else { // The app is starting. launched = true; // Show "start-screen". setContentView(R.layout.startScreen); new Thread(new Runnable() { public void run() { try { Thread.sleep(mStartScreenDelay); } catch (Exception e) { // Will safely not happen. } finally { // Show our application layout. setContentView(R.layout.main_activity); } } }).start(); } *** } *** }
28th Oct 2017, 12:46 PM
JustAnUser
+ 1
ty but In head section or body? and no opening tags??@justAnUser. And most importantly where shall i put my logo URL ??
28th Oct 2017, 1:38 PM
Jitesh Gupta
0
Is your app an Android or IOS application?
28th Oct 2017, 12:13 PM
JustAnUser
0
android
28th Oct 2017, 12:32 PM
Jitesh Gupta