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