79494182

Date: 2025-03-08 09:42:43
Score: 1
Natty:
Report link

Look this guide,If your app runs in multiple processes, include enableMultiInstanceInvalidation() in your database builder invocation.

But process not same thread,process have one or more thread.

And you question not about process,this about Multi threaded concurrent read and write operations.
you can called getDatabase on application onStart() and remove synchronized.

Reasons:
  • Blacklisted phrase (1): this guide
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: 卡尔斯路西法