How can I increase the size of external memory in emulator (max is 256 MB) . I am working on mobile DB and hence require to check a 1 GB file on emulator.
I am not sure, but don't you confuse two different things here, RAM on the one hand, and mass storage on the other hand?
If I just copy a 1 GB file into a directory that is on the emulator's C: drive, I would expect the emulator to see it and being able to process it without problems. Of course you cannot read it all at once into RAM, but that's nonsense anyway, no real database would try that.
In fact, the DB file is getting created on external mass storage (i.e. e:) in emulator. If emulator external storage size is max 256 MB, it won't be able to create that file. Of course, I am not trying to read 1 GB file, but application is creating index and db file on mass storage. to be able to write 1 GB, external memory limit should be atleast 1 GB.
Yeah, if you don't want to create your file on the C: drive because you want to test something connected with the "external" aspect of drives like E:, you will bump into that limit.
256 MB looks suspiciously like the 32 bits - 4 bits = 256 MB limit for maximum descriptor length. If the two limits are indeed connected there is most probably no way around that 256 MB limit...
But I have a 512 MB SD card working on NFC phone, so technically emulator should have no issues in atleast supporting 512 MB external and internal memory i.e. C: is also limited to 256 MB in emulator..
Forum posts: 1321
I am not sure, but don't you confuse two different things here, RAM on the one hand, and mass storage on the other hand?
If I just copy a 1 GB file into a directory that is on the emulator's C: drive, I would expect the emulator to see it and being able to process it without problems. Of course you cannot read it all at once into RAM, but that's nonsense anyway, no real database would try that.
René Brunner
Forum posts: 3
In fact, the DB file is getting created on external mass storage (i.e. e:) in emulator. If emulator external storage size is max 256 MB, it won't be able to create that file. Of course, I am not trying to read 1 GB file, but application is creating index and db file on mass storage. to be able to write 1 GB, external memory limit should be atleast 1 GB.
Forum posts: 1321
Yeah, if you don't want to create your file on the C: drive because you want to test something connected with the "external" aspect of drives like E:, you will bump into that limit.
256 MB looks suspiciously like the 32 bits - 4 bits = 256 MB limit for maximum descriptor length. If the two limits are indeed connected there is most probably no way around that 256 MB limit...
René Brunner
Forum posts: 3
But I have a 512 MB SD card working on NFC phone, so technically emulator should have no issues in atleast supporting 512 MB external
and internal memory i.e. C: is also limited to 256 MB in emulator..