Skip to content

Android: Can't pass flags to Ti.Database.openΒ #14357

@grebulon

Description

@grebulon

I have searched and made sure there are no existing issues for the issue I am filing

  • I have searched the existing issues

Description

For Android, I need to pass SQLiteDatabase.ENABLE_WRITE_AHEAD_LOGGING flag when opening the database. This is not possible since there are no options to the method. The database is always opened as

QLiteDatabase db = SQLiteDatabase.openDatabase(absolutePath, null,
        SQLiteDatabase.CREATE_IF_NECESSARY | SQLiteDatabase.NO_LOCALIZED_COLLATORS);

Expected Behavior

Need to add an optional parameter for additional flags.

Actual behavior

Can only pass the db name

Reproducible sample

n/a

Steps to reproduce

n/a

Platform

No response

SDK version you are using

GA.13

Alloy version you are using

No response

Metadata

Metadata

Assignees

Labels

bugneeds triageThis issue hasn't been reviewed by maintainers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions