Database in Blackberry

I need to store my data in my laptop, I need to use a database.

But wich type of database is supported by most blackberry devices?

Pls help me

From 5,0 tou can use Sqlite...

Or you can use RMS or PersistentStore (not exactly the databases but it might do the trick for you)

Tags: BlackBerry Developers

Similar Questions

  • What is the location of the database in Blackberry while using phonegap

    I have a 9800 Simulator.
    I mounted a directory like SD card...

    Now, if I use

    I have a 9800 simulator.
    I mounted a directory as SDcard...
    
    Now if i use 
    
        function populateDB(tx) {
             tx.executeSql('DROP TABLE IF EXISTS DEMO');
             tx.executeSql('CREATE TABLE IF NOT EXISTS DEMO (id unique, data)');
             tx.executeSql('INSERT INTO DEMO (id, data) VALUES (1, "First row")');
             tx.executeSql('INSERT INTO DEMO (id, data) VALUES (2, "Second row")');
        }
    
        function errorCB(err) {
            alert("Error processing SQL: "+err.code);
        }
    
        function successCB() {
            alert("success!");
        }
    
        var db = window.openDatabase("Database", "1.0", "Cordova Demo", 200000);
        db.transaction(populateDB, errorCB, successCB);
    

    So, where will be my database is stored? And how can I see it?

    Try to watch this tutorial...

    http://docs.BlackBerry.com/en/developers/deliverables/8682/Create_a_SQLite_database_761831_11.jsp

  • Database of blackberry problem

    Hiiii all...

    It's my first post

    My problem is when for the first time that I create a database in the SD card using Eclipse plugin jde and also make a table and inserting some values inside works well, but only for once, if now I would add some more in my PB was what I do is, I go to the class where I wrote the insert and insert values statement but when I run my application and browsing my database in SQLite database browser it doesnot turn away all changes. I do not see my new values inserted why so much... I don't know it please help...

    Thanks in advance

    package com.robosoftin.demo;

    Import net.rim.device.api.database.Cursor;
    Import net.rim.device.api.database.Database;
    Import net.rim.device.api.database.DatabaseFactory;
    Import net.rim.device.api.database.Row;
    Import net.rim.device.api.database.Statement;
    Import net.rim.device.api.io.URI;
    Import net.rim.device.api.ui.component.LabelField;
    Import net.rim.device.api.ui.component.RichTextField;
    Import net.rim.device.api.ui.container.GridFieldManager;
    Import net.rim.device.api.ui.container.MainScreen;

    SerializableAttribute public class CreateDatabaseScreen extends form {}
    D database;
    public CreateDatabaseScreen() {}
    LabelField title = new LabelField ("SQLite Create database example and"+ ")
    "inserting a value."
    LabelField.ELLIPSIS | LabelField.USE_ALL_WIDTH);
    setTitle (title);
    Add (new RichTextField ("Creation of a data base and will add a few data" +))
    "MyTest.db on the SD card"));
    try {}
    URI uri = URI.create ("file:///SDCard/Databases/SQLite_Guide/" + "MyTestDatabase.db");
    Why do you need to create new DB? either drop a precedent using
    DatabaseFactory.delete (uri) then create a new, or use
    d = DatabaseFactory.openOrCreate (Uri);
    d = DatabaseFactory.create (uri);
    d.Close ();

    If (DatabaseFactory.exists (uri)) {}
    d = DatabaseFactory.open (uri);
    create should be performed once atmost
    Statement s = d.createStatement (' CREATE TABLE 'People' ('+ ')
    "TEXT,"name +"
    "" Age "INTEGER)"); "
    s.Prepare ();
    s.Execute ();
    s.Close ();
                
                
    Statement s1 = d.createStatement ("INSERT INTO People (Name, Age)" +)
    ("VALUES ('Uttam', 23) ');
    S1. Prepare();
    S1. Execute();
    S1. Close();
                
    Statement s2 = d.createStatement ("INSERT INTO People (Name, Age)" +)
    ("VALUES ('Rakesh', 26) ');
    S2. Prepare();
    S2. Execute();
    S2. Close();

    Statement s3 = d.createStatement ("" SELECT * FROM people "");
    S3. Prepare();
    Cursor cur = s3.getCursor ();
    Line line;
    {while (cur. Next())}
    Row = cur.getRow ();
    GridFieldManager grid = new GridFieldManager (1, 3, GridFieldManager.AUTO_SIZE);
    Grid.Add (new LabelField (row.getString (0)));
    Grid.Add (new LabelField (row.getString (1)));
    Grid.Add (new LabelField (String.valueOf (row.getInteger (1)));)
    Add (Grid);
    }
                
    d.Close ();
    }
                
    } catch (Exception e) {}
    Add (new LabelField (e.getClass () + "" + e.getMessage ()));
    }
            
    }

    }

  • Database of blackBerry Smartphones the address book not available for synchronization

    ... "For help to resolve this problem, refer to KB19454 in the Knowledge Base of Blackberry Desktop Manager".

    I did, and it says this:

    Cause 1: the BlackBerry smartphone does not contain the PIM application you are trying to synchronize with. For example, the screenshot above error has occurred as a result of the application of tasks is not installed on the BlackBerry smartphone.

    Then, of course the BlackBerry has the address book app installed, and if it wasn't the cause.  I followed some of the sons of other related expenses and came up with nothing.

    I synced before - first time that successfully, this worked great, the second time that he kept failing, so I changed the setting to REPLACE my address book on the BlackBerry each sync, who has worked several times, and now this.

    GRRRR... of ideas?

    Worked like a champ, with the only exception to the process.  When I looked at my address book to the end, he had more than one entry for each record.  So I went back to the process, but this time, before you reconnect and resynchronize, I deleted manually additional entries - for some reason, they were still there, even though I "erased" address book information!  I'm guessing that these entries were originally a part of the problem.  Anyway, once deleted I've reconnected, resynced ' by replacing ' content of the BB for the address book - and now I have great 2-way synchronization job. "  Thank you!

  • In BlackBerry 10 SQL databases

    What type of SQL database using BlackBerry 10? It seems that is not SQLite. The docs (https://developer.blackberry.com/cascades/documentation/device_platform/data_access/working_with_sql... are not very useful, anything more than a trivial example and I would like to know what is possible regarding the types of data and DOF. Thanks in advance.

    SQLite support VARCHAR and many other things, even if they are not (as you probably know) it commonly in SQLite works. See http://www.sqlite.org/datatype3.html#affinity and examples of name affinity section 2.2.

  • ID of BBM blackberry

    When I put my I had, in this new phone, he asks if l want to transfer contacts d who said only to realize joint l d No. with dt of my daughter. I then tried to remove it, but it won't. After a while, he brought a message from locking. I tried wiping does not work. What am l doing.

    Hmmm...

    You say you were able to remove the lock of ID, but you cannot connect you now because as your ID (username) has been removed from the database of Blackberry?

    If this is the case, then simply recreate the ID, although, truth be told, most likely you won't get contacts and the associated applications back, but at least the phone could be used, the way it was supposed to be.

    If on the other hand, the phone is always locked ID, you have 1 of the 3 options:

    It's sad to say, officially, it is not that you can do if the phone is locked to ID and make a wipe wouldn't be the same questions help.

    (1) sell the phone on ebay or similar sites and invest money in getting another. Not an option very uncomfortable, I know, but...

    (2) communicate with your carrier or the place of purchase (assuming they are approved vendors/distributors), they should be able to pick up the phone on your part, send it along with your proof of purchase BlackBerry and BlackBerry could remove the lock or send you a replacement unit.

    How long would / could take, is conjecture of the entire organism.

  • How to connect SQL company database with BES Server

    Hello

    I am new to this concept, how to access SQL database via BlackBerry App. Can I access data using BES, please explain. What are futures contracts, I can use when I install BES on Enterprise Server.

    You can find more information on this topic by using the search function.

    BB does not provide a jdbc driver, this means that you will need to use a server as middleware between SQL and BB component.

    How communicate with this server, it is to you, send commands sql as strings, use a Web service, or something else.

  • problem opening database of

    Hi, I am new to using the SQLite database in blackberry, I copied the code from the sample of the weather, and I call the initializeDB() function, which calls for the openDB().

    function openDB() {}
    If (db)
    return;

    If (! window.openDatabase) {}
    Alert ("backward compatibility not yet implemented.");
    return;
    }

    DB = openDatabase ("routes", "1.0", "weather", 200000);
    }

    The problem is always doing me wrong the line if (! window.openDatabase) {,

    Where is the problem? What exactly do the window.openDatabase function? I need to create a database before?

    Thank you

    Is this error that occur in OS 5.0 or 6.0? You have the html5_init.js file included in your project?

  • Smartphones blackBerry ok plese help me!

    There are, I don't know what I thought, but I deleted my BB Messenger.  I lost my list of phone, but the phone actually display my numbers at times.  I went and everything reinstalled (after I saved the info), but now when I go to restore on my Office Manager, he doesn't let me select one of the icons... now I can't restore my phone list in my contacts.  It should automatically start the backup and restore process when I plug my phone into the computer, but it is not... I am very frustrated.  If you know how to help, please do, but use normal information (not a Curmudgeon).  Thank you

    nanciburt,

    Open your Desktop Manager > Backup/Restore > advanced.

    In the left pane, choose file > open and navigate to and select your most recent *.ipd backup file and open it.

    THEN see if you can click to select the database to BlackBerry Messenger and then click the right-pointing arrow in the middle to move the database on your device.

    Good luck.

  • BlackBerry Smartphones Messenger contacts list resets

    I have problems after I updated to OS 4.5.  I have the AT & T 8310 and downloaded the update directly from Blackberry, not the AT & T site.  Whenever I go out the battery and I go to messenger he always tells me that I spent with a new device, I would like to update everyone on my new pin code (which isn't new).  If I didn't, then all my contacts will be deleted. The first time I did it I was stuck on a contact in the waiting, and again, it got rid of all contact that I didn't have before a conversation with.  So I took out the battery and went through the entire process again except says no to update the contacts.  Well I have no contacts now and don't really want to keep for me to add again every time I have to reset the phone or remove the media card upsets.  Someone else has experienced this or knows what to do?  Thank you in advance for any help you can provide.

    Mike

    Hello

    There were these issues over the past two months, but I do not remember how committed people.
    If I were you, when that happens, I write the BBm contacts somewhere and then remove them one at a time.
    Use the Office Manager and in the advanced options, wipe the database of BlackBerry Messenger.

    then the fire to the top of the unit and add them one at a time ("one more time", Daft Punk). It should do the trick and solve your problem

  • BlackBerry database - new screen

    Good afternoon Evereyone,.

    I'm a developer again here for the BlackBerry platform and tried to do a lot of things on my own, but, I'm stuck.

    I can't get the content of the database to a new screen... I can only post it on the second screen...

    It's my constructor for this particular class that is called:

    I have two, one no constructor arg (to make a page with some areas)

    and a constructor argument (to fill and use data)

    This is called locally of the method of the class another way

    {

    DatabaseCreation dbScreen = new DatabaseCreation();

    UiApplication.getUiApplication () .pushScreen (dbScreen);

    }

    public DatabaseCreation() {}

    Logo of bitmap = Bitmap.getBitmapResource ("sca_logo.png");
    logoField = new BitmapField (logo, Field.FIELD_HCENTER);
    Add (this.logoField);
    Add (new SeparatorField());

    Add (test1);
    }

    My method to select data from the database works now because that currently in place all the data of the to my second screen but I can not put in a new screen.

    I tried to use

    UiApplication.getUiApplication () .getActiveScreen () .getScreenAbove ();

    I tried to make the class 'extends' and use the domain manager to the other class (which calls databasecreation screen)

    It does not work

    IM quite a lot of ideas...

    Oh and my donneesselection takes an argument of database... otherwise, it returns null.

    public long selectData (database db) {}

    Excuse my mistakes that I just started developing for the platform and I appreciate all the help and thank you in advance!

    This is the usual way you would with BlackBerry:

    have a database of public method in the class of the screen that is supposed to display your database of reading. Create this screen and save the reference; create a thread that calls that data reading method from the method run(), using the reference of screen recorded; Finally, in the very last operators in the run() method, push the screen (which already has the information) in the stack of the screen (don't forget to wrap this surge in invokeLater())

    Here's some pseudocode to illustrate the idea:

    // inside your screen
    public void populateScreen() {
      // read the database here and create and add fields as you go
    }
    
    ...
    // Somewhere else
    final MyDatabaseScreen myScreen = new MyDatabaseScreen();
    new Thread(){
      public void run() {
        myScreen.populateScreen();
        UiApplication.getUiApplication().invokeLater(new Runnable() {
          public void run() {
            UiApplication.getUiApplication().pushScreen(myScreen);
          }
        });
      }
    }.start();
    
  • Insertion of data in blackberry java database

    Here is my code to insert data into the database

    package mypackage;
    
    import net.rim.device.api.database.Database;
    import net.rim.device.api.database.DatabaseFactory;
    import net.rim.device.api.database.Statement;
    import net.rim.device.api.io.URI;
    import net.rim.device.api.ui.component.LabelField;
    import net.rim.device.api.ui.component.RichTextField;
    import net.rim.device.api.ui.container.MainScreen;
    
    //class untuk insert data ke database table People
    
    class InsertDataScreen extends MainScreen
    {
        Database d;
        public InsertDataScreen()
        {
            LabelField title = new LabelField("SQLite Insert Data " +
                                              "Schema Sample",
                                              LabelField.ELLIPSIS |
                                              LabelField.USE_ALL_WIDTH);
            setTitle(title);
            add(new RichTextField("Attempting to insert data into " +
                                   "MyTestDatabase.db on the SDCard."));
            try
            {
                URI myURI = URI.create("file:///Store/Databases/SQLite_Guide/" +
                                       "MyTestDatabase2.db");
                d = DatabaseFactory.open(myURI);
    
                Statement st = d.createStatement("INSERT INTO People(Name,Age) " +
                                                 "VALUES ('John',37)");
                st.prepare();
                st.execute();
                st.close();
                d.close();
                add(new RichTextField("inserting data successful"));
                System.out.println( "inserting data successful" );
            }
            catch ( Exception e )
            {
                System.out.println( e.getMessage() );
                e.printStackTrace();
            }
    
        }
    }
    

    I checked this database is exist. When I run the above code, my data has been never inserted in the database, code bellows

    add(new RichTextField("inserting data successful"));
    

    never called.

    Anyone know what is my fault? Please

    Problem solved!

    I have successfully insert data and view the database when I change the location of storage on SD card

    I don't know why, but its probably that blackberry can't save the SQLite database on internal memory (OS7)

  • Database that comes with blackberry

    What database management system works well with BlackBerry Z10, SQLite?

    Yes SQLlite and you can also use html5 database

  • Is there a database in memory for Blackberry?

    Hi my dear experts,

    I want to know if there is one in memory of database application (or library) for blackberry with jdbc connector so that it can provide standard SQL based database access... I know that there is no integrated database available for blackberry...

    Anything open source? Or commercial product...

    Or someone has developed for their own use (should support the standard SQL commands, at least a part!)

    Thank you!

    Sybase SQL Anywhere available commercial product UltraliteJ.

    http://www.Sybase.com/products/databasemanagement/SQLAnywhere/BlackBerry

  • Encryption and Protection of SQLite database - App of signature with the Signature of Blackberry tool

    Hello

    I am trying to encrypt and protect my SQLite database. To do this, I have generated a pair of public/private key using the administration Blackberry signature tool. Then, I added the .key file to my project and written the code for encryption and data protection. Then, I signed the app with Blackberry signing authority tool such as mentioned in the documentation. It was duly signed. But my application does not work on the device. It shows that my application tries to access a secure API which means that it is not properly signed.

    What could be the problem?

    And also I want to know what is the difference between the signing of the "Tool of signed" app within the eclipse and sign the application with "Blackberry signing authority tool '?

    I sign my application with eclipse itself "tool of signed" before adding the public .key file and it worked very well.

    Please suggest.

    Thank you.

    You must sign with both.

Maybe you are looking for

  • HP Office Jet Pro 8600 Plus false paper jam message

    I am ready to throw this printer out the window! I'm tired of false paper jam messages. The printer will be fine for a few weeks, then... another message of jam that can take hours to clear. I: reset the printer, looked for jams, checked the latest f

  • El Capitan freezing at startup and randomly crashing

    I have an early 2011 Macbook Pro with 16 GB of RAM with an EVO 840 Samsung SSD (8.2) and I'm running OS X 10.11.1. I've never had any problems with this machine before El Capitan. In short, I believe that others have a similar problem: El Capitan con

  • No tengo sonido en mi dell optiplex 780 tengo wxp

    OLA me lla mo I have a dell optiplex 780 migue y lo muestra in el ordenador no audio rreproduce me pueden decir como instalo el driver of pc audio mid

  • Remove temporary files OK?

    I have more than 3000 files & folders in the path: Users\my name\local\temp Many files have a prefix of HP with a date in 2011.  Is it safe for me to delete these files?

  • 6248P VOIP and issue of trunk

    Hello I am swapping on an old Linksys switch which has our phones to VLAN our phones and computers on the 6248P switch. I installed the 6248P for VLAN1 as PC and VLAN101 voice. Tagged 101 on the 40 port I test and left VLAN1 as not identified. I have