code: public static SQLiteDatabase openDatabase(String path, CursorFactory factory, int flags) {
          return openDatabase(path, factory, flags, null);
      }
docs: Open the database according to the flags {@link #OPEN_READWRITE}
  {@link #OPEN_READONLY} {@link #CREATE_IF_NECESSARY} and/or {@link #NO_LOCALIZED_COLLATORS}.
  
  <p>Sets the locale of the database to the  the system's current locale.
  Call {@link #setLocale} if you would like something else.</p>
  
  @param path to database file to open and/or create
  @param factory an optional factory class that is called to instantiate a
  cursor when query is called, or null for default
  @param flags to control database access mode
  @return the newly opened database
  @throws SQLiteException if the database cannot be opened