package com.naag;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.Window;
public class naag extends Activity {
private final int SPLASH_DISPLAY_LENGTH = 2500;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle icicle)
{
super.onCreate(icicle);
//No Title bar will be displayed
requestWindowFeature(Window.FEATURE_NO_TITLE);
setContentView(R.layout.main); //main is the
first view.
new Handler().postDelayed(new Runnable(){
@Override
public void run(){
/*Create an Intent that will start the Menu.Activity
*/
Intent mainIntent = new Intent( naag.this,
menu.class ); //menu.class is second view
naag.this.startActivity( mainIntent );
naag.this.finish();
}
}, SPLASH_DISPLAY_LENGTH );
}
};
I used this code and working perfectly fine...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---