我在主类中有意调用其他活动
final Intent intent = new Intent(this, List.class);
intent.putExtra("email", email);
intent.putExtra("password", password);
**startActivity(intent);**
我开始在 Intent 行上进行调试,但我无法通过其他活动
另一个是;
public class List extends Activity
{
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
**setContentView(R.layout.emaillist);**
**final Bundle extras = getIntent().getExtras();**
String email = extras.getString(MainActivity.email);
String password = extras.getString(MainActivity.password);
listofmails(email , password );
}
public void epostaListeleme(String eposta, String sifre)
{
....
}
如何在调试时从 MainActivity 传递到 ListActivity?