1

Say I want to create a database using the Android SDK's sqlite tool. What would the file extension have to be? I would think .db or .sqlite3 or .sqlite? How would I import it in my source code (Is there a method I should call?) and where in my source code? I was thinking in the onCreate method of a class that implements SqliteOpenHelper.

2

1 Answer 1

3

My open source app does exactly this, so feel free to copy-and-paste the parts you need:
https://github.com/nicolas-raoul/Anki-Android/blob/master/src/com/ichi2/anki/AnkiDb.java

You can name the files the extension you want. I call my files "somefilename.anki" because Anki is the name of the associated desktop software, but feel free to use any filename extension.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.