To pass data between activity
, I have 2 forms:
1. Use Bundle
:
public void teste(View v) {
Intent i = new Intent(this,Teste.class);
Bundle bd = new Bundle();
bd.putString("site","google.com");
i.putExtras(bd);
startActivity(i);
}
2. DO NOT use Bundle
:
public void teste2(View v) {
Intent i = new Intent(this,Teste.class);
i.putExtra("site","site2.com");
startActivity(i);
}
Questions:
- Why should use the Bundle ?
- Have " particularities / reasons " for the use of
Bundle
?