在應(yīng)用中,可能會在當跳轉(zhuǎn)到另外一個Activity的時候需要傳遞數(shù)據(jù)過去,這時就可能用Bundle對象; 在MainActivity中,有一個導(dǎo)航至BActivity的Intent, Intent 復(fù)制代碼代碼如下: { Intent intent = new Intent(Context context, Class<?> class); //new一個Bundle對象,并將要傳遞的數(shù)據(jù)導(dǎo)入,Bunde相當于Map<Key,Value>...
www.dbjr.com.cn/article/357...htm 2025-5-27