开发者

Device/Memory Specific issue in reading a file Android

开发者 https://www.devze.com 2023-02-05 18:17 出处:网络
I have a very weird issue with my application. I have a file in my Assets folder of size around 2MB. On some of the devices it reads the file and parses it and creates the DB and everything works fine

I have a very weird issue with my application. I have a file in my Assets folder of size around 2MB. On some of the devices it reads the file and parses it and creates the DB and everything works fine. If i run the same app on the emulator then the file doesn't get read and nothing comes on my UI. So i thought the issue could be with some space allocation on emulator. But the same issue comes up even with some Android devices and on some devices it works fine. i got to make it work for all the devices. So how can i solve this issue?? Is there any solution for this issue? 开发者_运维问答people say they have around 1.5GB free space in their mobiles....still they are not able to read the file. Is available space only the problem or is there any other issue?? Any help is greatly appreciated.

Thanks in advance


You cannot have files larger than 1 MB in the assets. Period.

See this related question

0

精彩评论

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