Android 插件化 RePlugin 入坑记录二

在插件工程中

A界面代码

Intent intent = new Intent(this, XXXActivity.class);

intent.putExtra("args", (Serializable) bean);

startActivity(intent);

B界面代码

getIntent().getExtras().getSerializable("args");

一些转换就不写了....


在单品中无任务异常,数据传递都是很基础的,但是打成插件放到宿主中时:

You need to use a Theme.AppCompat theme (or descendant) with the design library.

完全不搭边,一开始找了好多V7 V4冲突的问题,发现都不是,

最后还是android组员,通过提交的日志,找到了这个问题


解决办法:这里传过去的是一个个基本数据类型,到B界面再创建成Bean对象





发布了43 篇原创文章 · 获赞 27 · 访问量 12万+

猜你喜欢

转载自blog.csdn.net/qq_30878303/article/details/78295636
今日推荐