How to make splash screen on application icon click?
<p>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.</p>

<pre><code>@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);
}
</code></pre>
