How to open a new screen with additional parameters?
Posted
by Solo
on Stack Overflow
See other posts from Stack Overflow
or by Solo
Published on 2010-03-21T15:55:18Z
Indexed on
2010/03/21
16:01 UTC
Read the original article
Hit count: 152
android
I've read through the FAQ of Android Dev Guid (http://developer.android.com/guide/appendix/faq/commontasks.html#opennewscreen) but I'm not sure how can I open a new screen with additional parameters passed into it.
Let's say I'm going to open screen2, with a variable indicating the current user name so that I could greet the users. Is it possible?
Intent i;
i = new Intent(this, screen2.class);
//How to pass variable to screen2?
startActivity(i);
© Stack Overflow or respective owner