Persistent memory

Hello

I am trying to decide what persistent memory to use in my application: RecordStore based on RMS or PersistentStore.

I know that there is limitation of memory when you use PersistentStore (number of available handles is low on OS 4.2) but I don't know if

There is such a limitation when using RecordStore does anyone know?

Thank you.

I think it's true. When we brought a MIDP application to the BlackBerry, which has been the main factor for us in the choice of using the persistent store. I don't know if there are any other restrictions in the RecordStore.

Since you're using 4.2, you also have the ability to use the file system.

Tags: BlackBerry Developers

Similar Questions

  • Persistent memory problems

    The two OS - x under macOS Sierra 10.12, all a few minutes my Mac slows down and now Activity Monitor shows at least one and sometimes up to three "Installer" process running - each consume at least 1.5 GB of memory.  Of course, these are the indicator of memory pressure in the red zone.  When I force - enough this / these process the memory pressure is green (all other processes each use 500 MB of memory (with the exception of the kernel to 750 MB) or less).  Kill the installation process does not seem to interfere with what I had running (typical set of apps: Messaging, calendar, contacts, messages, Safari (multiple tabs), etc.).

    A few minutes later, about an hour later, my new Mac slows down, I check activity monitor and find one or more "Installer" still running processes and consumption of several gigabytes of memory.

    I want to understand what causes the start installation process and consume a lot of memory - and how to cope.

    Thank you in advance for your help!

    Don

    You can view a report of etrecheck for later analysis

    www.etrecheck.com

  • store the datetime picker in persistent memory

    Hi all

    I develop an application that store some persistent settings. I managed to store some text field entries and control failover entered using qsettings-(fonctions getValueFor et saveValueFor) but is unable to do so in the case of date picker that getValueFor returns a qstring rather than QDateTime.

    If I tried to use settings.value () to get the qstring value stored in the parameter and use QDateTime::fromString to convert to QDateTime format that can each be passed to the qml by QDeclarativePropertyMap but without success

    My .cpp file-

     QDateTime date;
           QString dates=settings.value("userdob").toString();
           if(dates.isNull())
               //default value
           QDateTime date=QDateTime::fromString("1980-01-22","YYYY-MM-DD");
           else{
            date = QDateTime::fromString(dates, "YYYY-MM-DD");}
           QDeclarativePropertyMap* settingparam =
                   new QDeclarativePropertyMap;
           settingparam->insert("dates", date);
           qml->setContextProperty("userinfo", settingparam);
    

    . QML file-

                    DateTimePicker {
                        id:userdob
                        objectName:"userdob"
                        title: "Date of Birth"
    
                        value: userinfo.dates
                        translationY: -37.0
                            mode: DateTimePickerMode.Date
                         onValueChanged: {
                             app.saveValueFor(userdob.objectName,(userdob.value))
                         }
    
                        }
    

    Can someone help me please to do this work.

    Thank you

    That's fine, but I guess I suggests to me is you do a lot of extra work for yourself by putting a useless conversation in there. If all you want to do is save and reload a DateTimePicker, none of this is necessary.

    If you need the representation of string for something else, then of course do this way.

  • Store the data in the internal memory of the device

    Hi all

    I need to check my database file in the internal memory of the device because if I save in sdcard chances are there... then delete, how to save db file to internal memory by programming... Please give any suggestions

    Thanku

    Internal "SD card is referenced using store instead of the SD card, but be aware that space is limited, and in fact, this area does not exist on some devices.  You cannot use SQLite data directly from persistent memory, but I guess that you can copy the SQLite database to and from this store, maybe when you open the program and back when you close it.  I would not recommend this if you have a database is larger than 256 KB.

    I suggest that users remove the SD card are just something you will have to program autour.

  • Question about persistent storage

    By reading the developer's guide, I read this

    The following native data types can also be stored persistently:

    • java.lang.Boolean
    • java.lang.Byte
    • java.lang.Character
    • java.lang.Integer
    • java.lang.Long
    • java.lang.Object

    ...

    Previously, I was looking for a way to store a BlackBerryContact object with persistence.  The answer was that basically it is possible to reimplmenting the class myself.  However, if objects can be stored, would it be possible to mount the BlackBerryContact as an object, store it and cast then back after recovery?  It seems a bit simple to work actually, but I thought I could ask for more.  Happy Obama day!

    It is not advisable to directly store instances of outer class.

    External means that these classes are not yours.

    For example - if you have created an instance of the com.mycompany.myapp.MyClass class and stored in the persistent store - then when you uninstall your application - these instances of class will be removed too the persistent store.

    But if you directly - save an instance of the class java.util.Vector, or BlackberryContact, they will remain in persistent memory, your application is uninstalled.

    It is not a good approach.

    Use Memento design pattern.

    Create a class which instance stores snapshot of information to start an instance of BlackberryContact and store it in persistent memory.

  • Gigaframe L81 starts by default slidshow when automatically turns

    The setting option for automatically off/on at certain times during the day - usually we put he died during the night so that it does not disturb the sleeping people.

    The annoying part is that when the morning lights the frame, not continue (or don't restart) the current slideshow (or video, music, whatever) the user has defined, but starts a few slide show demo by default, so you must every morning to reconfigure the points played.

    It is quite strange, as the digital photo of the image is intended to replace the standard picture frame, and standard frame does not take his picture power off every morning... You know what I mean, the picture frame is not intended to be super interactive device, it closes just is there quietly a do its job - show your photos... until you decide to change them (just like the conventional framework).

    So please, release a firmware that supports - you have just to save the current setting (the list of the point played/s) in the persistent memory before closing and read on start up.

    Or maybe I'm not right? Please answer.

    Hello

    have you tried to remove the default images?
    You can also try to put your photos in the default folder, or on the contrary.
    Use a sd or sdhc card? Try with another (upper class) sd card.
    What other store media? MMC or XD. Have you tested with them too?
    Have you tried to reset the frame?
    It seems that there is no firmware for the time update.

    welcome them

  • firmware on L322X issues

    I have a serious problem on a computer (L322X) XPS13 laptop which seems to be related to the firmware and UEFI.

    Context of the problem

    Laptop model: L322X
    BIOS version: A07

    Description of the problem

    Most of the time, the laptop does not start successfully on cold start. Pressing the switch turns on the backlight for the keypad to light but the screen is completely black, and the DELL logo with startup options does not appear. Activating/Deactivating the SHIFT key has no effect on the LED. Briefly press the power button causes the cell to stop immediately, and that's all I can do in such situation.

    Sometimes the laptop will work properly: the DELL logo appears, allowing me to enter the program installation and start-up as expected: I can boot Windows 8 or any other OS install and everything works fine. When an OS is running, I put the laptop into sleep mode and it wakes back up normally. But if I chose another option (shutdown or reboot), the laptop stops correctly, but the problem will happen when he starts again.

    The observed behavior is 9 times on 10 after each cold start randomly. After days of test, it does not appear to be affected by:
    n ' matter what BIOS setting, including UEFI mode/Legacy mode, Secure Boot, quick start or any other option. 'Reset to defaults' has no effect.
    -Battery status and / or know if AC is plugged in or not.
    -If the external USB devices are connected or not,
    -internal temperature.

    Another abnormal behavior is that when it is properly started in Windows, I am unable to update BIOS. I downloaded the version A09 to L322X and ensured that the downloaded file was entitled to MD5/SHA hashes. When I run the executable with the rights administrator during the step "read current BIOS' the following error occurs like 9 times out of 10:" ERROR 216: cannot read the ROM BIOS! Status = 1604 ". When it does occur, the executable file shuts down the computer to restart and to carry out the level, but then again, when restarting the computer laptop, 9 times out 10, DELL logo does not appear and the only thing I can do is press the power button to power it off the coast. When, in some very rare cases, the utility to update the BIOS was able to playback of the current BIOS and the computer restarts successfully then it starts the flash executable DOS mode as expected, but it also attempts to read the current of the Republic of Montenegro BIOS fails with the same error (and immediately shuts down the computer without allowing repeat).

    Context of the problem

    The problem seems to have started after I tried to boot from a USB based on linux using the UEFI. Before that, I was able to install any OS based on linux on the reader and the start-up in Legacy mode without any problem. It's only after you start a linux image in UEFI mode that the problem began to occur, and kept going on since then, not matter what OS I boot on and regardless of the BIOS mode I use (UEFI mode or legacy).

    I looked for a solution on the web and found people who have met similar behavior on other brands such as HP or Lenovo and Samsung laptops. In all these situations, the problem started to occur after the start of operating systems based on linux with the mode UEFI BIOS. In some cases it has even "bricks" laptop (see https://bugs.launchpad.net/ubuntu-cdimage/+bug/1040557).

    You are looking for a solution

    Because the problem occurs before the UEFI/Legacy BIOS has a chance to run, it seems clear that the problem is at the level of the firmware. Because it appears after a cold start, it must be caused by some memory related to the BIOS/UEFI in invalid state. I jumped the upgrade of firmware would solve the problem, but since I am unable to get the flash to work tool I could not verify that.

    This behavior may be related to certain bugs in the firmware of the computer, in particular its UEFI application (I use firmware A07 version)?

    Is there a way to diagnose hardware memory UEFI and/or to factory State?

    Any help is welcome. Thanks in advance for your answers.

    I did a few tests more and managed to Flash the firmware to the A09 version:

    (1) I ran the utility of the firmware on a different computer, wait that he extracted his data in the temporary folder. The closure of the extraction dialog box, I went %TEMP%\ExtactTemp\ and copied the files on a USB of FAT16 key (sometimes the default.rsp file has an extra extension ".bak"; it should be renamed to "default.rsp").
    (2) I inserted the USB key into a USB port on the L322X, while power off, unplug the power cable, pressed the END key, reconnected the power cable and the END button is released after 1 second. This caused the laptop start automatically and directly start the flashing BACK to the USB troubleshooter.
    (3) the started flashing utility to read the BIOS current and as expected, it failed and caused a restart. I kept repeat step 2 (of dozens of times) and the flashing utility has finally managed to read the ROM and over the flash operation.

    To restart the computer, the DELL logo is immediately apparent. I'm in installation options and verified that the version of the A09 firmware. Since then, the computer has always started correctly after a cold start or restart and the problem appeared, apparently solved flashing of the firmware to the A09 version.

    I think it is safe to conclude now that the firmware is the cause of the problem and not the hardware. Given that the problem appeared after the UEFI boot on a linux kernel after months of use the old BIOS, I think that an operation - for example a kernel crash - may have set the NVRAM in an invalid state. I read on the web that both Windows and linux use the NVRAM to store dumps, so this may be the cause of the problem. During the tests, I did, I started on an EFI shell and did a dump of the smbiosview and dmpstore commands, and I compared the shock of before and after the flash succeeded with a utility of merging, but I couldn't identify significant differences (the only differences in smbiosview were on the SKUNumber that has been fixed in A08 and A09; there were more differences to EFI variables in dmpstore but I don't found no documentation on most of them - including the DELL associated - I place something useful; I can provide these discharges if necessary).

    So for now, I don't know what solves the problem exactly: is the revision A09 which fixes a bug that existed in A07 or what the flashing process that cleaned something in NVRAM? (especially since 'default.rsp' contains indicators such as the /cvar which seems to relate to persistent memory erasure)? Any idea on the subject is welcome.

  • Problem by changing the Bitmap Image

    Hello

    I'm creating an application.
    I have a login screen, the details and the NewScreen.

    NewScreen contains three options, named A, B, and C.

    When I click on any of the option and the user is not connected so I first go to the login screen and after successful connection, I go to the screen details and when I press the back button I go back to NewScreen.

    Now what I want to when I press the back button and come to the NewScreen then image option B Gets the change. And the new image must be in the details page.

    So, I have to save the persistent memory image?

    The problem is solved...

  • Problem with Menu in application TabbedPane

    Hello

    I use TabbedPane for my application. I don't know how creat configuration page of the application menu. I tried to do the same here http://supportforums.blackberry.com/t5/Cascades-Development/Application-Menu/td-p/1971685 but it does not work

    Paste this into your main.qml, and this should help you get started.  The first action in the Application Menu will be "My card" and will open a sheet that says 'This is my stuff from sheet' and there will be a close button on the bottom.  Helps it helps.

    import bb.cascades 1.0
    
    TabbedPane {
        Menu.definition: MenuDefinition {
    
            // Specify the actions that should be included in the menu
            actions: [
                ActionItem {
                    title: "My Sheet"
                    // imageSource: ""
                    onTriggered: {
                        mysheet.open();
                    }
                },
                ActionItem {
                    title: "Settings"
                    // imageSource: ""
                    onTriggered: {
                        //
                    }
                },
                ActionItem {
                    title: "Info"
                    onTriggered: {
                        //
                    }
                }
            ] // end of actions list
        }
        attachedObjects: [
            Sheet {
                id: mysheet
                Page {
                    Container {
                        Label {
                            text: "This is my sheet stuff"
                        }
                    }
                    actions: [
                        ActionItem {
                            title: "Close"
                            ActionBar.placement: ActionBarPlacement.OnBar
                            onTriggered: {
                                mysheet.close();
                            }
                        }
                    ]
                }
            }
        ]
        showTabsOnActionBar: true
        Tab {
            title: qsTr("Tab 1")
            Page {
                id: tab1
            }
        }
        Tab {
            title: qsTr("Tab 2")
            Page {
                id: tab2
            }
        }
        Tab {
            title: qsTr("Tab 3")
            Page {
                id: tab3
            }
        }
    }
    

    Then for some additional help to do a 'Settings' page, you can read my tutorial on persistent memory and aliases: http://bbcascadescode.tumblr.com/post/35544384390/the-persistence-of-cascades-memory

    -Brian

  • application update/upgrade

    Hello

    What is the best way to upgrade an application without losing the data in the persistent store? It probably should be as easy as downloading the new application and replace the old. But according to some tests that I did, in some situations data in the persistent store is lost after update of the application and the device is restarted. (this happens for example when you use the 4.1 7290 simulator)  So, how the application update process should work in theory (when data is deleted and when not), and how does it work on the real device?

    Thank you!

    If you pass your own objects such as the com.yourcompany.MyClass in the persistent store that they are deleted when you uninstall your application.

    If you use shared classes as java.util.Vector they will remain in persistent memory, even if you uninstall your app.

    I do not use common classes only, this is a wrong approach. It is best to save your own class instances.

    To preserve your data - do not uninstall the old application, just install the new application on the old application.

  • Help with some internal specs on the STORM. May require a person who works at the RIM.

    BB STORM, JDE 4.7.0

    I was usually the champion of the size of the memory, and I thought I got it down pat, but it turns out that I see different values in some disassembly of the hardware of the storm.

    Can someone help me to y and the degradation of persistent memory Vs file in the permanent internal flash storage area.

    OK, here's what I thought, it was internal so far.

    1 internal 128 MB of RAM for running the show, allocation of memory, etc, etc...

    2. 1 g internal Samsung OneNAND flash memory. It is divided into 128M of space of the App and 872 M of storage space.

    The storage space is divided into persistent storage and the rest is an internal file system.

    3. Finally, there is 8GBits of the space of the SD card.

    OK, here's my new questions on memory.

    In 2 above, is the 1 G bytes or Bits. I used to think bytes, but teardowns latest I read all say Bits. If so, it means that we have memory app 16MBytes! So the question is byte or bit?

    The next question is the 872M (bits or bytes)... How is burglarized persistent store file Vs space. Is it preallocated or no change of line based on what he gets used? If it is fixed, can the line be forced to the persistent store. Can it be forced into space from the SD card?

    Finally, is again the SD card in bytes or Bits? I suspect the pieces, but I don't know about you. I don't know what MoviNAND.

    Note that if you are new to this, please don't answer, I'm not new, and I went through all the usual web sites. I just want to hear from those who know with certainty because they actually measured it with a code or they talked to someone on the EDGE. I heard all the 'I think there' and they do me good. I actually send you this email to myself and several other people. Many of us need answers to these questions.

    Thank you

    -Donald

    The BlackBerry Storm has the following:

    • 128 MB of RAM
    • 128 MB of Flash memory for installation of the application (file COD) and store persistent store.
    • 1 GB internal memory for storing files (FileConnection & USB stick as support).
    • Support for micro SD card up to 32 GB * of size for the storage of additional files (FileConnection & USB stick as support).

    All values are in bytes, not horseshoes.  It is not possible to install applications on memory storage of files, nor is it possible to store persistent objects in the file storage space.

  • is there a directory/tmp or similar for linux on a blackberry?

    Hi all

    I would like to store temporary files and do not know if there is a temporary directory that I could use?

    Thank you for your help.

    In memory of the blackberry device there is no FAT, FAT32 file system, NTFS etc.

    The device memory BlackBerry is like a big hash table.

    I recommend look at Blackberry Developer's Guide (there are 2 parts books).

    It can be downloaded here:

    The app developer's Guide. Part 1

    The app developer's Guide. Part 2

    Check part 2. There is information how to work with persistent memory.

  • Help needed on the BlackBerry PUSH API

    Hi ALL, I've learned that by using the BlackBerry PUSH API, we can send data to any user of blackberry (beyond the company) (reference: BlackBerry_Push_APIs_Whitepaper.pdf).

    (1) is it necessary to configure BlackBerry Enterprise Server to use the BlackBerry PUSH API.

    (2) using the PUSH API, can we send data or store data or add data to a file in persistent memory on the BlackBerry smartphone.

    Thanks in advance.

    you need a bes

    You can do whatever you want with the received data, which includes adding them to the other persistent memory stuff.

  • Storage SortedReadableList in PersistantStorage

    I am storing some Contactdata in a SortedReadableList, which is not persistent.

    Is it possible to retrieve the vector data of the SortedReadableList or the SortedReadableList itself persistable?

    Thank you!

              _contacts.put("favorites", new ContactsList(vContacts_Favorites));            _persist.setContents(_contacts);          _persist.commit();
    

    I do not recommend to store the native RIM API objects in the persistent store.

    Because they will remain in persistent memory after your application is uninstalled.

    It is not a good approach.

    Instead, implement your own class of (perhaps internal), say that:

    class MyStorage implements {Persistable

    private vector elements = new Vector();

    {} public void populateElements (list SortedReadableList)

    Fill list items

    }

    }

    Now use this class and fill its instance with instance data SortedReadableList and store/load MyStorage instance of class to store persistent.

  • duplicate the names of the objects, but not?

    Hello, Cp5.5

    I am appointing some of my objects using logical names so I can keep track of everything.  For some objects, I get a mixed message of name "...". is a reserved keyword or is already assigned to another element. "That is not the case now.

    When I originally started this project, I went a bit sideways with how I built and have since taken over my senses.  Originally, I had 6 slides that were essentially duplicates of each other and I condensed the 6 slides in 1.  This particular object is a chart that I'm trying to scen2_3_backoff name (which means "scenario 2, slide 3, back office person ').  Initially, I had an object with the same name but once I changed tactics on the build, this object and slide on that it was are both deleted.

    I cleared the cache but no change.  There is * much * advanced actions on my slides and copy to a new empty project is not an option.  The library shows me using only this image 4 times and I checked that the name is not used in 4 cases.  Checked variables and advanced actions and I have a duplicate here either.

    Any suggestions on how to empty the old names of objects I no longer use?

    Sorry, Andy, but it seems that Captivate has a persistent memory, once you have used a label, you can not use it again. Very annoying and I work on it many times myself. I'm trying to solve and then adding underscore more.

    Lilybiri

Maybe you are looking for