开发者

Android database creation

开发者 https://www.devze.com 2023-02-01 02:30 出处:网络
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.

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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消