シリアライズ可能で整数または文字列を渡そうとしていますが、子アクティビティではシリアライズ可能のみを取得します
親の活動
Intent intent = new Intent(Class1.this, Class2.class);
Bundle bundle = new Bundle();
bundle.putInt("key", 23);
bundle.putSerializable(serializable, object);
intent.putExtras(bundle);
startActivityForResult(intent, 1);
子供の活動
Intent intent = getIntent();
int intKey;
Bundle bundle = intent.getExtras();
object = (Object) bundle.getSerializable(serializable);
intKey = bundle.getInt("key", 0);
シリアル化可能なオブジェクトを取得しましたが、整数も取得できません