AutoMEta
AutoMEta

Reputation: 1351

Android database creation

I am creating a android application where I need to create the database in which data comes from excel file on first run when the application starts.

The problem is where should I keep the file and how do I access it in my android application or there is another method to create the database from excel sheet.

Upvotes: 1

Views: 407

Answers (1)

Vladimir Ivanov
Vladimir Ivanov

Reputation: 43108

Use assets folder of your application. It allows you to store files there and access them through AssetManager. It has open(String filename); method which returns you InputStream to a file from assets folder.

Upvotes: 1

Related Questions