title: Android: How to wait until SQLite database is available?
body: <p>I have some actions that use a database together. In each action, how to check database is in use or not? If database is in use, i want action to wait until it is available to do something.
  Thank you so much!</p>