+ 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...
4 Antworten
+ 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();
}
***
}
***
}
+ 1
ty but In head section or body? and no opening tags??@justAnUser. And most importantly where shall i put my logo URL ??
0
Is your app an Android or IOS application?
0
android