Database not being copied from assets folder to device

后端 未结 2 1163
长情又很酷
长情又很酷 2021-01-05 19:15

I have a .db file in my assets folder. I\'ve copied it to the data/data//databases/ folder in the emulator and its working fine.

2条回答
  •  说谎
    说谎 (楼主)
    2021-01-05 20:10

    Just change the database file .db extension in the asset folder to .png or any other compressed format it will worke in 2.1, 2.2 and above devices

提交回复
热议问题