1

Possible Duplicate:
How to use my own sqlite database?
Full Android Database Helper class for existing SQLite database?

I am new to android, i have created database using sqlite database browser now i want to use this database in my application so what are the step to do so any example code or any help will be appriciated

3

1 Answer 1

0

Follow the instructions from this blog

It will walk you through all the steps you need to use to get a pre-created db into your app.

EDIT

You didn't mention that your db was large in the initial post. In that case you might want to try android-sqlite-asset-helper

I don't see where it says it, but I know I've seen Mark from CommonsWare comment that it will transfer any size file for you. You zip up the db, put it in your assets/databases folder, and follow their directions to code your db class and you should be good to go.

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

2 Comments

yes i am following the same blog but as i have mentioned that my database is big so that is the problem. is there any alternative instead of breaking database into part or keeping into asset folders
@Gaurav Sharma, updated my answer with something that may be more helpful than my first attempt. :)

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.