Efficient method to access data across activities
-
26-10-2019 - |
문제
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 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.
제휴하지 않습니다 StackOverflow