Friday 1 February 2013

Creating the Splash Screen


package com.QDRoid.Database;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

public class Splash extends Activity {
 @Override
   public void onCreate(Bundle savedInstanceState) {
       super.onCreate(savedInstanceState);
       setContentView(R.layout.splash);
       Handler x=new Handler();
       x.postDelayed(new splashHandler(), 2000);
   }
   public class splashHandler implements Runnable {

    public void run() {
    // TODO Auto-generated method stub
   
    startActivity(new Intent(getApplication(),Menu.class));
    Splash.this.finish();
    }

   }
}

2 comments:

  1. Nice work kiran, If you have any posts on EJB, Adobe CQ5 please post them also.

    ReplyDelete
  2. Hello…what is the fun of sitting at home and working all alone on an impersonal machine? I am a very social person and like to get out and mingle. Maybe you should try some more, to convince a person like me to give up a day job. There are wonderful blogs on sites like video marketing online , amazing corporate brochure design and www.envato.com which speak highly of work-from-home freelancers. I find them quite interesting to read. I will keep freelancing work for a rainy day. At present though, I am happy working 9 to 5.

    ReplyDelete