Blackberry FileSystem simulator: where is it?

I am testing some things with writing to a file system on Blackberry using the javax.microedition.io.file package. I can open the file ("file: ///store/home/user/documents/mytxtfile.txt") and write to it (by this I mean that no exception is generated, regardless of whether the file is written or not, I don’t I can say).

I work in a simulator and I was wondering where the simulator will write such files? Looking at the simulator directory, there were no changes in any of the files, therefore, none of the .dmp files has changed since this file was written. Does anyone know where this file will be written so that I can confirm that it was actually written?

0
source share
1 answer

By default, the BlackBerry file system is presented as a single file in the host system. You will see this file in your simulator directory, for example 8900-fs.dmp (for example, for the 8900 simulator) or 8900-sdcard.dmp (for the file system on the virtual SD card for the same device).

Unfortunately, you cannot view files stored in the file system of the simulator device, but you can configure the simulator to use the actual directory for your SDCard. This is located on the "Memory" tab of the simulator dialog box (under "Debug Configurations" β†’ "Simulator" if you are using the Eclipse JDE plug-in). You can write sdcard using the file: /// sdcard prefix

Another option is that a file browser is built into BlackBerry - it is (non-intuitively) under the "Media" icon. Click the Media icon, then open the menu and find the "Browse" item. You can view the file system of the simulator and see if you have a file.

+4
source

Source: https://habr.com/ru/post/1333595/


All Articles