Sure you can. The docs are a little conflicting about this as they also say that no limitations are imposed. I think they should say that relative paths are to the above location and dbs there ARE private. Here is the code you want:
File dbfile = new File("/sdcard/mydb.sqlite" );
SQLiteDatabase db = SQLiteDatabase.openOrCreateDatabase(dbfile, null);
System.out.println("Its open? " + db.isOpen());
Related Contents:
- Version of SQLite used in Android?
- How can I avoid concurrency problems when using SQLite on Android?
- Pros and Cons of SQLite and Shared Preferences [closed]
- Share SQLite database between 2 android apps?
- Android Pre-Populated Database [duplicate]
- Android SQLite database: slow insertion
- What are the performance characteristics of sqlite with very large database files? [closed]
- Android: upgrading DB version and adding new table
- How do I view the SQLite database on an Android device? [duplicate]
- Simple export and import of a SQLite database on Android
- How do I backup a database file to the SD card on Android?
- Best way to work with dates in Android SQLite [closed]
- Android SQLite Example [closed]
- Android database encryption
- How can I merge many SQLite databases?
- How to retrieve the last autoincremented ID from a SQLite table?
- How to import load a .sql or .csv file into SQLite?
- Import .csv file to Sqlite in Android
- Cursor adapter and sqlite example [closed]
- How to add new Column to Android SQLite Database?
- Copying data from one SQLite database to another
- How to recover a corrupt SQLite3 database?
- Best place to close database connection
- Convert SQLITE SQL dump file to POSTGRESQL
- Android multiple databases open
- How to retrieve data from sqlite database in android and display it in TextView
- How to backup sqlite database?
- SQLite UPSERT / UPDATE OR INSERT
- How to save images into Database
- SQLiteOpenHelper onUpgrade() Confusion Android
- Android SimpleCursorAdapter doesn’t update when database changes
- Android SQLite Database, WHY drop table and recreate on upgrade
- How does one check if a table exists in an Android SQLite database?
- How do I create a database in android? [closed]
- Android: Cannot perform this operation because the connection pool has been closed
- SQLite simultaneous reading and writing
- Saving ArrayLists in SQLite databases
- Using COLLATE in Android SQLite – Locales is ignored in LIKE statement
- Sqlite in flutter, how database assets work
- When to close db connection on android? Every time after your operation finished or after your app exit
- ER Diagram that implements Actors Database [closed]
- Location of sqlite database on the device
- Store query result in a variable using in PL/pgSQL
- Can I rollback a transaction I’ve already committed? (data loss)
- Frontend tool to manage H2 database [closed]
- Download Manger not working in Android Pie 9.0 NetworkSecurityConfig: No Network Security Config specified, using platform default
- In terms of databases, is “Normalize for correctness, denormalize for performance” a right mantra?
- What is a sequence (Database)? When would we need it?
- Saving images: files or blobs?
- sqlite3.OperationalError: unable to open database file