pilgr / Paper

Paper is a fast NoSQL-like storage for Java/Kotlin objects on Android with automatic schema migration support.
Apache License 2.0
2.35k stars 234 forks source link

Provide the sample code for read and write data in main thread #146

Closed Manikandan92 closed 5 years ago

Manikandan92 commented 5 years ago

Could you please provide the sample app or code using read/write data in main thread, Bacause I'm confusion on your sample app.

pilgr commented 5 years ago

It's a trivial question every Android developer should know. It can achieved in numerous ways, starting with AsyncTasks and finishing with Kotlin coroutines. This issue is out of scope of the library.

Manikandan92 commented 5 years ago

It's a trivial question every Android developer should know. It can be achieved in numerous ways, starting with AsyncTasks and finishing with Kotlin coroutines. This issue is out of the scope of the library.

I am doing data read/write in UI thread based on your sample app. Hope it will not lead to any major issues??