viewmodel share data between activity

ⅰ亾dé卋堺 提交于 2019-12-21 12:59:38

问题


I'm using android viewmodel, but I'm not able to pass and access data of an activity viewmodel from another activity. I can only do that with fragment.

Should I use library like EventBus to share data between few activity?

What is the best pratice?

来源:https://stackoverflow.com/questions/52315691/viewmodel-share-data-between-activity

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!