This code will show one activity which has only one image view for 3 seconds
and then the intent will call new activity
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.splash);
splash=(ImageView)findViewById(R.id.fb_login_splash);
/*splash.setOnClickListener(new OnClickListener() {
public void onClick(View v) {*/
// TODO Auto-generated method stub
tt = new TimerTask() {*
// create a timer task*
@Override
public void run() {
// TODO Auto-generated method stub
Intent intent = new Intent(Splash.this,
newActivity.class);* // Mention your new activity in here *
Splash.this.startActivity(intent);
finish();
}
};
Timer timer = new
Timer(); *call
the timer task*
timer.schedule(this.tt, 3000);
}
On Sat, May 28, 2011 at 7:45 PM, Joseph Blythe <[email protected]>wrote:
> Greetings:
> I am a newbee I am using Eclipse and i need some serious help making a
> splash screen i have the jpg. file in my res/layout ect...
> I created the Project and Activity and so on can anyone please give me
> a walk through for making a splash screen?
> I have tried You tube video and many other website posting and nothing
> works Please help me and feel free to e-mail me at
> [email protected]
> Also I tried to to put a new activity in AndroidManfest.Xml and that
> is not working
> Please help thanks
> Joseph
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" 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-developers?hl=en
--
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en