@Override publicvoidinject(Object target) { serializationService = ARouter.getInstance().navigation(SerializationService.class); Test1Activitysubstitute= (Test1Activity)target; substitute.name = substitute.getIntent().getStringExtra("name"); substitute.age = substitute.getIntent().getIntExtra("age", substitute.age); substitute.height = substitute.getIntent().getIntExtra("height", substitute.height); substitute.girl = substitute.getIntent().getBooleanExtra("boy", substitute.girl); substitute.ch = substitute.getIntent().getCharExtra("ch", substitute.ch); substitute.fl = substitute.getIntent().getFloatExtra("fl", substitute.fl); substitute.dou = substitute.getIntent().getDoubleExtra("dou", substitute.dou); substitute.ser = (com.alibaba.android.arouter.demo.testinject.TestSerializable) substitute.getIntent().getSerializableExtra("ser"); substitute.pac = substitute.getIntent().getParcelableExtra("pac"); if (null != serializationService) { substitute.obj = serializationService.parseObject(substitute.getIntent().getStringExtra("obj"), newcom.alibaba.android.arouter.facade.model.TypeWrapper<TestObj>(){}.getType()); } else { Log.e("ARouter::", "You want automatic inject the field 'obj' in class 'Test1Activity' , then you should implement 'SerializationService' to support object auto inject!"); } if (null != serializationService) { substitute.objList = serializationService.parseObject(substitute.getIntent().getStringExtra("objList"), newcom.alibaba.android.arouter.facade.model.TypeWrapper<List<TestObj>>(){}.getType()); } else { Log.e("ARouter::", "You want automatic inject the field 'objList' in class 'Test1Activity' , then you should implement 'SerializationService' to support object auto inject!"); } if (null != serializationService) { substitute.map = serializationService.parseObject(substitute.getIntent().getStringExtra("map"), newcom.alibaba.android.arouter.facade.model.TypeWrapper<Map<String, List<TestObj>>>(){}.getType()); } else { Log.e("ARouter::", "You want automatic inject the field 'map' in class 'Test1Activity' , then you should implement 'SerializationService' to support object auto inject!"); } substitute.url = substitute.getIntent().getStringExtra("url"); substitute.helloService = ARouter.getInstance().navigation(HelloService.class); } }