RecordStore and PersistentStore

Hello

When a user to uninstall or remove an application from BB of the device to store data or PersistentStore are deleted? How it works?

Thanks in advance!

I meant an object class that implements implicitly Persistable; they are documented in the documentation of the API for PersistentObject. It would be a class that you define in your code as a Persistable execution.

In the code, you now use the persistent object is a hash table. It is not removed when your application is removed. If you want to change this, extend Hashtable with your own class. (As described in the documentation for Persistable, you will need to explicitly declare that your subclass implements Persistable.)

Tags: BlackBerry Developers

Similar Questions

  • How to use FTP Client and manage the table in BB with JDE

    I'm a newbie to BB development. I have an application in mind, it is a simple ordering application. BB users can send order information to an ftp server. The BB will have some paintings as a customer table and the Order Details table (the two have only a few records). Since cannot use the Services of SDM BlackBerry because the license fees. I'll use JDE to develop the application.  Here are my questions:

    1. What is the best way to manage the tables (read/write)?  RMS, or embedded database (which one?)
    2. is there any ftp client in JDE, api can be used to send data to an ftp server?

    Thanks for help.
    PJ

    The exact figures for RMS sizes are available in this article:

    What is - size restrictions when you use the RecordStore
    Article number: DB-00656
    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800451/800724/What_Is...

    So that your information is correct, in 4.6 or later, the per application limit went up to 512 KB.  I don't know if there is a limit on a single record in a record store. We must be careful of the terminology here, it's RecordStore or RMS - is not in BlackBerry terms anyway, PersistentStore (see next).

    The BlackBerry offers two other ways to store data.

    The first and most commonly used are called PersistentStore, and it is an a storage mechanism for objects, I am not aware of any restrictions, other than the memory of the device, about the size of an object that can be stored in PersistentStore.  The advantage with PersistentStore, is that you just persist an object helps you, rather than having to convert it to bytes (serialize) before storing and converting new (him deserialize) after reading it back.

    The second way is to write data using the FileConnection API, and you can for example use this to write data to the SD card in the device.

    EFF and PersistentStore use the flash memory in the device.  You don't have to manage yourself.  You treat all that identical objects, the BlackBerry operating system very cleverly manages to bring your items in RAM and save them in Flash, so you don't have to worry about the type of storage you have.

    I hope this helps.

  • RecordStore object in the device

    Hi, I'm having a problem using RecordStore object in the device. I use the RecordStore object to store the user profile.

    I have a button on the screen and when I press the button I store data in the RecordStore and another button to get the same stored data. When I run the app in the Simulator, it gives me the expected result, but when I run the app even in the unit, after pressing button Save I have to restart the application to be able to get it back. Also sometimes despite restarting I'm not able to get the saved data.

    I use the following code snippets to save and retrieve data:

     public void addValue(String key , String value)
        {
    
        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        DataOutputStream outputStream = new DataOutputStream(baos);
        try {
            outputStream.writeUTF(key);
            outputStream.writeUTF(value);
        }
        catch (IOException ioe) {
            System.out.println(ioe);
            ioe.printStackTrace();
        }
    
        byte[] b = baos.toByteArray();
        try {
            recordStore.addRecord(b, 0, b.length);
        }
        catch (RecordStoreException rse) {
            System.out.println(rse);
            rse.printStackTrace();
        }
        }
    
        public String getValue(String key)
        {
            String mainVal = "";
    
        try {
            RecordEnumeration re = recordStore.enumerateRecords(null, null,
                                    true);
    
            try {
                while(re.hasNextElement()) {
                int id = re.nextRecordId();
                ByteArrayInputStream bais = new ByteArrayInputStream(recordStore.getRecord(id));
                DataInputStream inputStream = new DataInputStream(bais);
                try {
                    String key1 = inputStream.readUTF();
                    String value = inputStream.readUTF();
    
                    if(key1.equals(key))
                    {
                        mainVal = value;
                    }
    
                }
                catch (EOFException eofe) {
                    System.out.println(eofe);
                    eofe.printStackTrace();
                } catch (Exception e) {
                    e.printStackTrace();
                }
                }
            }
            catch (RecordStoreException rse) {
                System.out.println(rse);
                rse.printStackTrace();
            }
        }
        catch (RecordStoreException rse) {
            System.out.println(rse);
            rse.printStackTrace();
        }
    
        return mainVal;
        }
    

    Hello

    Only, I solved the problem. The reason for strange behavior was that I was not closed RecordStore object after the CRUD operations. I added record.closeRecordStore () at the end of each method, and now it works fine for me.

    Thank you for your interest to solve my problem.

  • Problems to make my first application work

    Hello, I am new in the development of blackberry applications, but not new in development (C++, C, c#, JAVA).

    I am facing some problems with my first development for the blackberry in JAVA platform.

    MyScreen code:

    public final class MyScreen extends MainScreen
    {
    
        EncodedImage mImage = EncodedImage
                .getEncodedImageResource("icon.png");
        ApplicationIcon mIcons = new ApplicationIcon(mImage);
    
        ApplicationIcon mIcon = mIcons;
    
        private static Date cDate;
        private String lefteds = "";
        private  LabelField leftd = new LabelField("Not set");
        private TextBoxField tbf = new TextBoxField(200, 30);
       // private GridFieldManager grid = new GridFieldManager(3,3,1);
        //private VerticalFieldManager _manager;
        private LabelField Leftd2 = new LabelField("Not set");
        private int Inum = -1;
    
        //-----------------------------------------------
        private static PersistentObject store = PersistentStore.getPersistentObject(0x1dfc10ec6454eb14L); 
    
        public void saveUserInfo(){
            synchronized(store) {
                store.setContents(leftd);
                store.commit();
            }
        }
    
        public LabelField getlefted() {
            LabelField leftd;
            synchronized(store) {
                leftd = (LabelField)store.getContents();
                if(leftd == null) {
                    leftd = new LabelField("Not Set!");
                }
            }
            return leftd;
        }
        //-----------------------------------------------
    
        MenuItem menuRegister = new MenuItem("Add status icon", 0, 0) {
            public void run() {
                registerIndicator();
            };
        };
    
        MenuItem menuUnregister = new MenuItem("Remove status icon", 0, 0) {
            public void run() {
                unregisterIndicator();
            };
        };
    
        protected void makeMenu(Menu menu, int instance) {
            super.makeMenu(menu, instance);
            menu.add(menuRegister);
            menu.add(menuUnregister);
        }
    
        private void registerIndicator() {
            try {
                ApplicationIndicatorRegistry reg = ApplicationIndicatorRegistry
                        .getInstance();
                ApplicationIndicator indicator =
                        reg.register(mIcon, false, true);
                indicator.setVisible(true);
            } catch (Exception e) {
            }
        }
    
        private void unregisterIndicator() {
            try {
                ApplicationIndicatorRegistry reg = ApplicationIndicatorRegistry
                        .getInstance();
                reg.unregister();
            } catch (Exception e) {
            }
        }
    
        void updateValue(int value) {
            try {
                ApplicationIndicatorRegistry reg = ApplicationIndicatorRegistry
                        .getInstance();
                ApplicationIndicator appIndicator =
                        reg.getApplicationIndicator();
                appIndicator.setValue(value);
            } catch (Exception e) {
            }
        }
    
        void updateIcon(ApplicationIcon icon) {
            try {
                ApplicationIndicatorRegistry reg = ApplicationIndicatorRegistry
                        .getInstance();
                ApplicationIndicator appIndicator =
                        reg.getApplicationIndicator();
                appIndicator.setIcon(icon);
            } catch (Exception e) {
            }
        }
    
        //--------------------------------------------------
    
        public MyScreen()
        {
            try
            {
            this.Leftd2.setText(getlefted().getText());
            }
            catch (Exception e)
            {
    
            }
    
             Background bg = BackgroundFactory.createSolidBackground(Color.LIGHTGRAY);
             setBackground(bg);
    
               XYEdges edges = new XYEdges(20, 20, 20, 20);
               Border border = BorderFactory.createBevelBorder(edges);
    
            // Set the displayed title of the screen
             setTitle("CountDown");
             ButtonField b = new ButtonField("Set CountDown", ButtonField.CONSUME_CLICK);
    
             b.setChangeListener(customListener);
             add(b);
    
             this.tbf.setText("Days to go!");
             add(Leftd2);
    
             add(this.tbf);
    
             if (this.Leftd2 == null)
             {
             saveUserInfo();
             }
    
        }
    
        public void calculate()
        {
            Calendar c = Calendar.getInstance(TimeZone.getTimeZone("GMT"));
            c.setTime(new Date(System.currentTimeMillis())); //now
    
            Date currentdate = c.getTime();
    
            int lefted = (int)((cDate.getTime() - currentdate.getTime()) / (1000 * 60 * 60 * 24)) + 1;
            lefteds = lefted + "";
            leftd.setText(lefted + " " + this.tbf.getText());
            Leftd2.setText(lefted + " " + this.tbf.getText());
            saveUserInfo();
            this.Inum = lefted;
            updateValue(lefted);
    
        }
    
          FieldChangeListener customListener = new FieldChangeListener() {   
    
                public void fieldChanged(Field field, int context) {    
    
                     DateTimePicker datePicker = DateTimePicker.createInstance();
                     datePicker.doModal();
                     Calendar cal = datePicker.getDateTime();
                     Date date = cal.getTime();
                     MyScreen.cDate = date;
                     calculate();
                }
                 };
    
        }
    

    It's part * beep * ugly code and also, my application

    There are some problems with it (apart from the fact that its badly coded, etc.).

    Why is my device reboots as a minute after I launch my app (while the app completely closed)?

    Is why I set the status bar would not appear as it should?

    I hope that someone here would be able to help me, I'm sort of stuck... I must be trying to include to the top of my own for almoste time.

    Thank you very much.

    "I have being trying to understand by myself for almost an hour."

    What - only an hour?

    There is a little run before you can walk through this code, suggest a slightly lower rate.

    Two things that I would look at first.

    (1) but first reboot the device.  I'm guessing that you have an older device and you compile using a more recent environment.  Do not forget the applications being forward but not backward compatible, you should develop with a JDE older than the operating system on your device.

    Allied to this I'll make sure your app is not started automatically.

    (2) you seem to try to persist a LabelField:

    public void saveUserInfo() {}
    {Synchronized (Store)}
    store.setContents (leftd);
    Store.Commit ();
    }
    }
       
    public getlefted() {} LabelField
    LabelField leftd;
    {Synchronized (Store)}
    leftd = (LabelField) store.getContents ();
    if(leftd == null) {}
    leftd = new LabelField ("Not Set!");
    }
    }
    Return leftd;
    }

    To be persistent, an object must implement Persistable.  LabelField doesn't do this.  If you want to save a LabelField, what you save is the text (a string that is persistent) and recreate it.

    See how you go after looking through this.  But I recommend to start simple (just count) before adding things as indicators and persistentStore.

  • MIDlet with a RIMlet background process

    Hello

    I'm developing a MIDlet customer and BB, I would like to add a background to the vote server process.

    I have a few questions:

    I have a RIMlet the best choice for the background process?

    How can I configure the generation to have a RIMlet and a MIDlet access the same recordstore and memory?

    The RIMlet should auto start and not visible in the applications menu, is it possible?

    Is there a good tutorial for background processing than at other points of entry for BB (project in eclipse and development approach configuration)?

    Thank you

    Guy

    1. for blackberry, I go to the RIMlet.

    2. I don't know how to do this. Never tried. but you can check out this:

    http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&message.ID=2546&query.ID=242...

    http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&message.ID=25587&query.ID=24...

    3. Yes, that's possible, subject is defined in the module system.

    4. you can refer to this:

    http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&thread.ID=13576

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/How_To_-_Setup_an_alternate_entry_point...

    I hope this helps.

  • PersistentStore and KEY identifier

    Hello

    Sorry if this has been posted before, but using a search by keyword on this forum helped me...

    I want to know how to generate the hash key used as a 'unique identifier' when using a PersistentStore?

    I know this hash is generated by a string that identifies the path of the 'package', but I do not know how to generate a.

    Best regards

    Strato

    Hi BBDeveloper!

    Thanks, this is exactly what I want!

    Thank you very much!

    Best regards

    Strato

  • PersistentObject / PersistentStore with different names

    Hi all

    I'm new to PersistentObject... As I've never used...

    As RecordStore can create PersistentObject / PersistentStore with a different name...

    I have a title and under each title, I have a list of things that...

    I want to keep this list with the name of the title as we do in recordStore.

    Is it possible with PersistentStore / PersistentObject

    It will be great for any snippet of code

    Thank you

    Thank you...

    This means that if I do the following

    long MY_DATA_ID = 0x33abf322367f9018L;

    PersistentObject persistentObject = PersistentStore.getPersistentObject (MY_DATA_ID);

    long MY_DATA_ID1 = 0x33abf322367f122L;

    PersistentObject persistentObject = PersistentStore.getPersistentObject (MY_DATA_ID1);

    long MY_DATA_ID2 = 0x33abf32236723238L;

    PersistentObject persistentObject = PersistentStore.getPersistentObject (MY_DATA_ID2);

    This refers to three different objects/storage... we use for the other name RMS... Is it?

  • Don't forget not and by referencing the App modules.

    Goodday,

    I have problems when searching for these forums and knowledge base when you are looking for a way to tell my Java program to check the stored connection information.   Let me break it down into steps so you can better understand what I mean.

    The user downloads app.

    The user opens App

    App throws a screen username & password

    Connection info password user

    App authenticates the user on a third party server

    UserInfo App stores for future use

    User closes the application

    The user returns to the App later

    App sees the user has entered valid user information, ignores the login screen and goes directly to the 'meat' of the application.

    I found how to store information about the users of the BlackBerry.  However, calling later in possible order ignore this login screen is what I m having trouble finding.

    If this has been posted before and responded, I can be using the bad for the search keywords.  I ve tried 'SEO saved connection info' ' using the saved connection info ' 'memory Flash connection info.'

    Any help or pointers in the right direction would be greatly appreciated.

    Hello

    I can tell you the steps on how to do this.

    Whenever the application start check the userInfo in a persistent store. If not there is not display the login screen. DO all the stuffs of connection and after sucessfully verify the user save these crdetial save these data in the persistentstore.

    For next time, when you search for the UserInfo he will be there in the persistent store, you can skip the login process and go directly to the home screen of your application.

    It will be useful.

    Thank you

    Ankit

  • confusion in the background process and Globaleventlistener

    Hello

    too confused in Backendprocess.

    Please check my code and then tell me how I can do this.

    I want to add bluetooth address in my tree UIApp MyScreen articles and I bluetooth address storage file and record store.

    but confuesd how do I call the showAdress() method after complition of search BlueTooth.

    public class MyUIApp  extends UiApplication{
    
        public static void main(String[] args) {
            if (args != null && args.length > 0 && args[0].equals("gui"))
            {
                AppBackend appb = new AppBackend();
                appb.enterEventDispatcher();
    
            }
            else
            {
                ApplicationManager appMang = ApplicationManager.getApplicationManager();
                if(appMang.inStartup())
                    return;
                MyUIApp app = new MyUIApp();
                UiApplication.getUiApplication().invokeLater(new Runnable() {
    
                    public void run() {
    
                        ApplicationManager.getApplicationManager().postGlobalEvent(AppConstants.DATA_CHANGED);
                    }
                });
    
                app.enterEventDispatcher();
            }
        }
    
        public void showAdress()
        {
            getting data from record store adding Tree which si on Main Screen.
        }
    }
    
    public class AppBackend extends Application implements GlobalEventListener {
    
        public Timer timer;
        public Vector remote_device;
        public Vector device_found;
    
        BTSearch btSearch;
    
        public AppBackend() {
    
            addGlobalEventListener(this);
            timer = null;
    
        }
    
        public void firststart() {
            btSearch = new BTSearch();
            btSearch.start();
        }
    
        class BTSearch extends Thread implementsDiscoveryListener
        {
    
            boolean stopThread = false;
    
            public void run() {
                startThread();
    
            }
    
            public void startThread() {
    
                timer = new Timer();
    
                timer.schedule(new TimerTask() {
    
                    public void run() {
    
                        startScanBluetoothDevices();
    
                }, 30000, 30000);
    
            }
    
            public void startScanBluetoothDevices() {
                try {
    
                    remote_device = new Vector();
                    device_found = new Vector();
    
                    discovery_agent = LocalDevice.getLocalDevice().getDiscoveryAgent();
                    discovery_agent.startInquiry(DiscoveryAgent.GIAC, this);
    
                } catch (Exception error) {
                    Dialog.alert(error.getMessage());
                }
            }
    
            public void deviceDiscovered(RemoteDevice btDevice, DeviceClass cod)
            {
                //
            }
    
            public void inquiryCompleted(int discType)
            {
                //
            }
    
        }
    
        public void eventOccurred(long arg0, int arg1, int arg2, Object arg3,
                Object arg4) {
    
            if (arg0 == AppConstants.DATA_CHANGED) {
    
                firststart();
    
            }
    
        }
    
    }
    

    I'm confuesd how do I call the method showAdrees() If you desire to process bluetooth backend made.

    Now I'm for names of Bluetooth and the storage in the RecordStore. but now the problem is how can I display on my main screen located in UIApplication.

    I am struggling to read this code, it seems not to be complete.

    Sorry, beginning with the obvious things, I assume you have another entry.  Usually one who has the 'gui' param starts the user interface, so I guess that BlueFreeBackround is the treatment of the user interface.  Seems a strange name?  But any.  We do not have this code, so can't review it.

    The other entrance is the one who starts the initial treatment.  In case you're MyUIApp.  But you have this:

    If (appMang.inStartup ())
    return;
    Also if this is executed at boot time, the treatment does nothing.  And you start an application that seems to be the associated user interface.  I'm confused.  And we have no code to the constructor for this class, so we can not comment on that either.  All we know is that this class sends a global event.  Now, if I'm wrong, I don't think you need to start an Application to send a global event.  It is enough to have one to receive a.

    And you have given us another class, but there is no indication how it is started.  Assuming that it is started, it will receive the global event and execute the firststart() method.  Confusingly, this method will start a Thread that starts a timer.  Why can't firststart() him and save a Thread and some confusion?

    OK, now we come to the TimerTask, which is launched every 30 seconds (seems too often to me, but maybe not).  This process begins the investigation.  And we arrive at the point of this thread.  InquiryCompleted, I think you want to call showAddress().

    It's actually easy, although I really don't like this approach:

    Instead of using

    postGlobalEvent (long guid);

    use

    postGlobalEvent (long guid, int data0, data1, object0 object, Object1 int);

    and pass the MyUIApp object as a parameter object0.  Then, you can call

    . showAddress();

    I suspect that this will throw IllegalStateException, so you'll need to hire a

    this.invokeLater (...)

    to ensure that you have the thread of events when refreshing.

    But if I were you, I would consider this approach.  It seems some unnecessary steps.  For example, why doesn't MyUiApp start the discovery itself, what s at the point of the AppBackend?  A; Otherwise, you use a global event to initiate treatment, you could send the data in another GlobalEvent.

  • When exactly PersistentStore get deleted?

    I've seen this issue mentioned in http://supportforums.blackberry.com/t5/Java-Development/Best-Practices-for-Storing-Application-Confi...

    but I would ask explicitly.  So I'm not actually remove objects from PersistentStore, when and how are they destroyed as the application is removed or changed?  In particular, I am interested in a few aspects:

    1. the impact of my object is a native class as Hashtable vs my own derived class 'MyHashtable' which is not referenced elsewhere.

    2 deleting an application compared to upgrade an application in place.

    Any help is appreciated.

    Thank you

    Jim

    If you store a clean class (that implements persistable) the store is deleted when the application is removed.

    If you store a generic class, what it is not.

  • PersistentStore.getPersistentObject returns the null value?

    I use a random key to retrieve a shape of the object PersistentStore

    persist is PersistentStore.getPersistentObject (KEY);.

    Works fine on the Simulator (OS 5), when I take the code signed to the device (BB OS 5.0 Bold 8900)

    For some reason, it returns null, without exception. Thereafter any API I inoke on PersistentStore / persist returns null without exception persist even when the null value.

    I don't know if it's one thing to eclipse debugger, but even if the debugger shows that objects are null. Controls null applied in the code seems to fail, what does code see these objects as non-null. Pheww! How is it possible.

    In this code still shows up as null, then safetyTable and orderedkeys. However, the value null check in the failure code.

    At a later stage in the code, when I try to access orderedkeys are null again! Are struggling with this problem for two days, all the pointers would be very comfortable.

                        persist = PersistentStore.getPersistentObject( KEY );
                        persistOrderedKeys = PersistentStore.getPersistentObject(KEY_ORDERED_KEYS);
                        safetyTable = (Hashtable)persist.getContents();
                        orderedKeys = (Vector)persistOrderedKeys.getContents();
                        if (safetyTable == null)
                        {
                            safetyTable = new Hashtable();
    
                            persist.setContents(safetyTable);
                            persist.commit();
                        }
    
                        if (orderedKeys==null)
                        {
                            orderedKeys=new Vector();
    
                            if (safetyTable.size()>0)
                            {
                                Enumeration addressKeys = safetyTable.keys();
                                while(addressKeys.hasMoreElements())
                                {
                                    orderedKeys.addElement((String)addressKeys.nextElement());
                                }
                            }
                            persistOrderedKeys.setContents(orderedKeys);
                            persistOrderedKeys.commit();
    
                        }
    

    "I don't know if it's one thing to eclipse debugger.

    I had problems of this kind when I don't have a level of operating system for the device I am debugging on.

  • PersistentStore save time?

    I have HT a DateField here. And I want to keep his time when I click on something once the field is changed.

    myClock = new DateField ("myclock", Long.MIN_VALUE, DateField.TIME)

    PersistentStore support it? If not., which api can do?

    You can use getDate(), to get a long and then save the persistentObject long

  • Persistent data and uninstall an app problem.

    Hello

    I'm checking the storage of persistent data with a very silly application, but maybe I'm do sth wrong as that it does not work as I supposed it should.

    My application only checks if there is some content in the store persistent and if not, it creates. I want to check that when the application is uninstalled, these persistent info will be deleted, but as I just test, it is not.

    This is my code:

     public TestP(){
            String info = "nothing";
            synchronized(store) {
                String currentinfo = (String)store.getContents();
                if(currentinfo == null) {
                    //we create it
                    String contents = "something";
                    store.setContents(contents);
                    store.commit();
                } else {
                    //we retrieve it
                    info = currentinfo;
                }
            }
    
            MainScreen ms = new MainScreen();
            ms.add(new LabelField("Testing Persistance..."));
            ms.add(new LabelField(info));
            ms.add(new LabelField("That's all..."));
    
            pushScreen(ms);
        }
    

    And that's how I create the store

    'com.app.test.TestP' at long---> 0xcdbcc77c2e7ecf8cL
    Bank private static PersistentObject = PersistentStore.getPersistentObject (0xcdbcc77c2e7ecf8cL);

    The first time I run my application, the display will return to "nothing" and the text next time 'something '. It's ok, but when I uninstall my application, the first time also shows 'something', which according to me, that he should not be allowed.

    I do something wrong?

    How persistent store information can be removed on an uninstall of the application?

    Concerning

    Your persistent data are of type String, which is a common object of the rim.  It is not necessary for the BB to delete your data - another application can use it.

    However, if you used one of your own classes - even if it comes extends the string and does nothing else - then it will be deleted when your Application is removed, because with your driveway application, there's nothing on the device which includes that Object.

  • Roots FileConnection and application folders names

    I read the forums, guides and the developer APIs, but I'm still looking for a few details on works on BlackBerry FileConnection. I am writing an application that will work with the configuration entry minimum of the user on all devices running 4.2.1 and upward.

    1. is store / and SDCard / internal always the name of the memory and the SD card roots?

    2 JSR 75 leaves open the question of whether an application sees the virtual roots that are private to itself or if all applications share the same roots. How does on BBs? I have seen many examples where the path name starts by "/ store/home/user //" or "/ SDCard/BlackBerry // '. Is this necessary, or can my request simply use "/ store /" or "/ SDCard / and add the file name? If the former, are there best practices documented anywhere to manage collisions between apps?

    3. If the files are visible in many applications, there are layers of security available to protect data (I think something similar to how a PersistentObject can be encapsulated in a ControlledAccess object when you use the PersistentStore) or do make us our own?

    Thanks for the pointers on these issues!

    1. to Yes date, but that could change.  It is recommended to use the FileSystem.listRoots method to get a list of valid root file systems.

    2. all applications share the same roots on BlackBerry mobile devices.  It is recommended that applications create their own folder to store their files in.

    3. There is no integrated in JSR 75 access restrictions that would prevent another application to open your file.  You can encrypt your data to prevent other applications to see your raw data.  Here are some examples on how this can be done:

    How - to use basic encryption
    Article number: DB-00107

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800779/How_to _...

    How to - use encryption advanced
    Article number: DB-00106

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800779/How_to _...

    4. This is true and also applies to the micro SD card.

    5. political IT may restrict access to built in memory and the micro SD card.  You can see the COMPUTER of the BlackBerry Enterprise Server Administrator's policy reference guide for more information on COMPUTER strategies.  A FileConnection may also be restricted based by application using Application control policy.  This can be set on the BlackBerry Enterprise Server (for advanced users applications) or modified by the user (Options, Advanced Options, Applications, change the permissions).  An application can also request a change in the permission by using the ApplicationPermissions class.

    6. mobile devices blackBerry have no unique file name restrictions.  What works in Windows should work on a BlackBerry handheld.

  • Problem with delete RecordStore.

    I use this type of Code to delete RecordStore.

    Is something wrong with this code.

    if(Field==Dall)
    {
    Try
    {
    RecordStore.deleteRecordStore (Guid.recordStoreName);
    Close();
    } catch (Throwable e)
    {
    System.out.println (e.getMessage ());
    e.printStackTrace ();
    }
    }

    It gives the error is

    'rssRecords '.

    No stack trace»

    Hello everyone, I am trying to delete RecordStore.

    But I try two method, but the problem is the same.

    First method is highest and the Second is below.

    I want to delete all records froms there.

    This is the code and please tell me that where is the problem.

    RecordStore rs = null;
    Try
    {
    int i = 0;
    RS = RecordStore.openRecordStore (Guid.recordStoreName, true);
    RecordStore.deleteRecordStore (Guid.recordStoreName);
    int num = rs.getNumRecords ();
    System.out.println("==="+num+"===");
    While (i<>
    {
    rs.deleteRecord (i);
    i ++ ;
    }
    rs.closeRecordStore ();
    Close();
    } catch (System.Exception e)
    {
    System.out.println (e.getMessage ());
    e.printStackTrace ();
    }

    My RecordStore record have only 6 but it Print on 192 console.

    What I would do.

Maybe you are looking for

  • Low screen on my Satellite Pro A60-191 image quality

    Hello Today, when I came to this site I noticed it is of poor quality lines down on the grey area of this site (under the TOSHIBA logo) I can't show you because the camera does not have a picture of the lines. also when I go on to a new folder before

  • Battery draining very fast - help please!

    My new bike 360 ran great. A load was throughout the day. I was playing with some of the apps (i.e. Fit) and now when I take it off the cradle it discharge completely in about 2-3 hours and the back of the watch is hot. I tried: Uninstall all the dia

  • Rolling/down shifiting image with low level acquisition of VI

    Hello I do image with low level VI acquisition acquisition. The series of captured images appear as an image rolling/down shift. Each image is captured moves down again and again. If frame 1 a row of pixels is 0 when the row wherever the 100 frame is

  • Error code 646 WindowsUpdate - with Vista

    While trying to run Windows Update for: KB982311 Office 2003 KB982333 Excel 2003 KB982322 Publisher 2003 KB982334 Word 2003 KB982357 PowerPoint 2003 Outlook 2003 Junk e-mail filter KB983503 KB980923 path of information 2003 I received the error 646 a

  • Email app shows me only "put in place of the existing accounts" screen

    Brand new Atrix owner here, new on Android. Whenever I try to open the default Email application (2nd from the left on the dock), I see the "Configuration of existing accounts" screen where I can add things like myspace and facebook accounts. I am bo