Reputation: 79
In my application when am running the application my splash screen is coming. splash screen is not coming from icon click. I want to show splash screen when I open my application from application icon without running the application. This is onCreate() method code in SplasScreen.java class. This is first class in my manifest file.
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.mainpage);
mLogo = (ImageButton)findViewById(R.id.logo);
context = this;
new Handler().postDelayed(new Runnable() {
public void run() {
Intent j = new Intent();
j.setClass(context, Login.class);
startActivity(j);
finish();
}
}, 2000);
}
Upvotes: 0
Views: 341
Reputation: 133
I agree with Tim, they are wasting users time for no reason unless something is working in the background. Anyway maybe this tutorial will be of use: http://www.youtube.com/watch?v=NuS_airZgKM
The videos have have helped me alot in the past :)
Upvotes: 1