开发者

Efficient method to access data across activities

开发者 https://www.devze.com 2023-02-17 13:36 出处:网络
I have a small app that records messages and stores them in an object which implements Parcelable.In the app I have a LOT of messages (about 2000) and it takes a considerable amount of time passing be

I have a small app that records messages and stores them in an object which implements Parcelable. In the app I have a LOT of messages (about 2000) and it takes a considerable amount of time passing between Activities through intent.putParcelableArrayListExtra

Is this not the correct usage of Intents+Parcelable? I've been really wanting to avoid开发者_Python百科 SQLite, but I suppose I'll get my hands dirty if its absolutely necessary.


You should definitely persist your messages in a database. If you want to avoid all the SQLite hassle check db4o, painless object persistence in your apps using an OODB.

0

精彩评论

暂无评论...
验证码 换一张
取 消