2013年11月11日 星期一

【Android】換頁

1.頁面程式與xml要先準備好
2.AndroidManifest.xml 在application加入

3.程式:

Intent it = new Intent();
it.setClass(PriceMenu.this, Vegetable.class);
it.putExtra("type", "v"); // 代參數到下一頁
startActivity(it);


String type = bundle.getString("type"); // 下一頁接收方式

沒有留言:

張貼留言