简体   繁体   中英

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM