سلام من با توجه به کلید 236 یک مقدار را از اکتیویتی اول به اکتیویتی دوم ارسال کردم اما در اکتویتی دوم اینت های t1،t2،t3 را نمیتونم ازشون استفاده کنم مشکل کجاست؟ زیر اونها خط زرد میکشه
کد پیاچپی:
@Override
protected void onCreate(Bundle paramBundle) {
super.onCreate(paramBundle);
setContentView(R.layout.home2);
Bundle extras = getIntent().getExtras();
if (extras != null) {
int t1 = extras.getInt("tsend1");
int t2 = extras.getInt("tsend2");
int t3 = extras.getInt("tsend3");
}
}