开发者

NegativeArray exception in android

开发者 https://www.devze.com 2023-01-31 23:35 出处:网络
In my android application,i am parsing a text file of about 1500Kb and saving into database. But if i am trying to run this in andrioid emulator i am receiving Negative Array exception.The same applic

In my android application,i am parsing a text file of about 1500Kb and saving into database. But if i am trying to run this in andrioid emulator i am receiving Negative Array exception.The same application runs fine in device.

Could anyone please let me know if i can solve this issue anyhow ?

Please 开发者_运维知识库share your valuable suggestions.

Thanks in advance :)


I think you are trying to load the data by activity. Try to use array adapter to load the array or give us more detail regarding this, so that we can help you.


If the text file is on the device make sure you have permission to read it.
PS. I don't just mean in the manifest. You need to navigate to the emulated phone settings->permissions and see if you have them for your app.

0

精彩评论

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