简体   繁体   中英

How can i transfer data between activities when one activity goes into onPause state?

I mean not using Intent putExtra.

When 'A' Activity goes into onPause or onDestroy state, i want to transfer String data type to 'B' Activity.

I'll appreciate with your response.

Thanks!!

也许在类A中使用静态字段,或者创建一个单例类来跟踪并覆盖类A中的onPause()方法。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM