Intent intent = new Intent(getApplicationContext(),DanhSachSanPhamTrongDanhMuc.class);
Bundle bd = new Bundle() ;
bd.putString("idDanhMuc",mangDanhMuc.get(position).id);
intent.putExtras(bd);
startActivity(intent);
- DanhSachSanPhamTrongDanhMuc.java :
Bundle bd = this.getIntent().getExtras();
if(bd !=null)
{
idDanhMuc = bd.getString("idDanhMuc");
}
No comments:
Post a Comment