Locations of the SQLite database

Hi all

IM developing an application that is run on OS 5.0 and more.  I know there is a limitation on what devices can store a database sqlite on the device itself.  I was wondering if anyone had a list of devices that support sqlite or where I could find it?  Also all os 5.0 do not come with the sd cards or bought them separately?

Thanks in advance

Hi zidane, please take a look at this thread

http://supportforums.BlackBerry.com/T5/Java-development/persistent-storage-or-SQLite/TD-p/812739

--

Tags: BlackBerry Developers

Similar Questions

  • Rejection of the AppStore: location of the SQLite database

    I have an application that downloads data from the internet in a local SQLite database.

    Data are not generated for the user, and Apple has rejected my application because of it.

    The database may not be stored in/Documents /, but it should be stored in/Library/Caches /.

    How can I change this?

    http://www.saumitrabhave.com/2011/11/air-iOS-solving-apps-must-follow-iOS.html should help.

  • How to find the SQLite database browser on an imac

    Where is the SQLite database browser on an iMac?

    Here, you can get a http://sqlitebrowser.org/

  • Is it possible to display the SQLite database?

    I can debug my app on my Playbook, but is it possible to display the SQLite database? I want to confirm it works.

    If you can recover on your PC/Mac, I use "Lita" SQLite DB management applications (its an AIR application).

  • view the contents of the sqlite database

    Hey

    Have created a sqlite database and entries stored in the database, I'm stuck all trying to display the contents of the database on the screen.

    I tried thi, but it does not work.

    Try
    {
    D database;
    Var myURI = URI.create ("file:///SDCard/Databases/SQLite_Guide/" +)
    "MyTestDatabase.db");
    d = DatabaseFactory.open (myURI, true);
    Statement st = d.createStatement ("SELECT * FROM data ;"); ")
    St.Prepare ();
    St.Execute ();
    St.Close ();
    d.Close ();
    }

    Can someone tell me please on how should I proceed?

    Thank you very much.

    Remove the rank r = c.getRow (); exposed outside the while loop and check.

    because, it is the 1st row in the result set is assigned to the r. If the query returns only one record, the while loop will not run.

    Before you ensure that the data are available in the table.

  • Unable to connect to the SQLite database in 9700

    Hi all, I have created a dt application dynamically retrieves data from a database stored locally Sqlite the strange thing is that this application works correctly on my 9800 and a friend 9930 but every time that the use of this app on 9700, it is impossible to connect to the database. Here is the code that I use to connect to the database (same code has been compiled and tested on all 3 devices):

    Connect to the database
    try {}
    Var myURI = URI.create("/store/home/user/documents/database.db");
    DB = DatabaseFactory.openOrCreate (myURI);
    } Catch (Exception e) {}
    If (db == null) {}
    Dialog.Alert ("unable to Access database');
    }

    Is there something on the 9700 device that I don't know? Because this code works on other devices... Help please.

    Finally, I discovered that it does not give the error if the database is stored on an SD card maybe 9700 does not support access sqlite on the memory of the device. Thanks for trying

  • Using copyTo to copy the Sqlite database file to the directory of the user

    I am trying to copy my database Sqlite directory of private enforcement directory of documents accessible to the user. Here is my code:

    // closing db connection
    dbConnection.close();
    // clearing the db file variable
    dbFile = null;
    
    // new handle on the same db file
    dbFile = File.applicationStorageDirectory.resolvePath("mydb.db");
    // copy to documents directory
    dbFile.copyTo(File.documentsDirectory);
    

    When I try to run the code on the device, I get:

    There is an example on the Adobe AIR help page:

    original var = air. File.documentsDirectory.resolvePath ("AIR Test/test.txt");

    newFile var = air. File.documentsDirectory.resolvePath ("AIR Test/copy.txt");

    original.copyTo (newFile, true); true means crushes!

    Therefore, specify the new file name too not only the directory.

  • find the location of the program database file

    I'm having the same problem. I tried the approach of a file 'save data' and appearing in the file of users/app data.

    There are 2 problems with this: 1) application data file does not appear in the Explorer for me to access, even if I know it is exisits and 2) I'm trying to transfer a backup file, and the program is very specifically looking for a c:\programdata\... etc.

    Where can I find the program data file?

    Thank you

    Joan

    Hi Joan,

    Application data are not a real record, it is a crossroads which is only there for backward compatibility. A crossroads is a shortcut that redirects the programs and files to another location, and for the most part hidden.

    This particular junction points to the C:Users\username\AppData\Roaming folder.

    Also the steps suggested by Dave 9 from this link.

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-files/how-do-i-find-the-AppData-file-location/bf8c7d84-55ba-45B0-A378-0ca1d4acb34f

  • Protect the SQLite database

    Hi all

    In my application, I have a database that must be protected with a key to restrict other apps on this device to access.

    The problem is that I can't get the key signature at run time: whatever I do (...) CodeSigningKey.get always returns null.

    This is my code

            final CodeSigningKey key = CodeSigningKey.get(AbstractDB.class);
            if (key != null) {
                Log.d("+ GOT SIGNING KEY");
                final DatabaseSecurityOptions secopt = new DatabaseSecurityOptions(key);
                db = DatabaseFactory.create(name,  secopt);
            } else {
                Log.d("- SIGNING KEY IS NULL");
            }
    

    I downloaded Signing Authority Tool and created a TEST.key use it and put it in {project_root}/keys/TEST.key in my Eclipse project

    Also, I have TEST.key doule-click in Eclipse and class selected AbstractDB to be signed with it

    I run my application on a real device, not in the Simulator

    I run as follows

    1. start debugging on a device - this introduces packaging and siging the .cod file. (However, in the signature tool window, I get a warning on my TEST.key: "Unregistered" and "please contact the signer and register with signing authority.")

    2. with the signing authority tool, I sign my .cod file obtained in step 1 using my TEST.key

    3. I click on debug on the device once more, sign tool signs the main .cod file again, and then the application will start on the device.

    However, the key I get from CodeSigningKey.get (.) is always zero.

    Do I did wrong

    First of all, you need an instance of object in CodeSigningKey.get (...), like get (this). However, there is one thing, you should: If your object extends certain classes and/or implements interfaces, then ALL those who must be signed with the same key, in order to work. If no ancestor classes/interfaces is not signed, you get null.

    This can be a problem if your hierarchy is deep enough. Information on classes are signed with keys that are stored in BlackBerry_App_Descriptor.xml and copied in the signature tool settings when you click on debug. It may happen that command line gets too long so the signing tool fails with the message "Invalid parameter" in the console.

    So I extracted a class specially for the purposes of the signature:

    final public class SignatureClass {    private static final SignatureClass INSTANCE = new SignatureClass();
    
        private SignatureClass(){}
    
        public static CodeSigningKey getKey(){        return CodeSigningKey.get(INSTANCE);    }}
    

    I only sign this class with my key and use SignatureClass.getKey () to get the key.

    PS: Also, if you move/rename the classes or the keys to verify this signature references in the BlackBerry_App_Descriptor.xml are valid. They are not being updated automatically.

  • Select the query in the sqlite database

    Hello friends,

    I used this application in my application... It worked fine...

    Select fld_name in the limit of 0.10 tbl_placelist

    But when I used the query below, he showed me error...

    «Select fld_name in the limit of tbl_placelist «+ s1, 10»»

    I do not have how to pass two values (i.e) a global variable and an integer in the limit

    Can someone help me...

    Maybe I'm missing something but you want to say something like this:

    S1 int = 0;

    int s2 = 10;

    String q = 'select fld_name from tbl_placelist limit' + s1 + ', ' + 's2;


  • When sqlite database will be located in the Simulator.

    Hi all

    I wanted to get the location of the sqlite database file, but don't really know where it is located.

    Here is my code to create a database.

     QSqlDatabase database = QSqlDatabase::addDatabase("QSQLITE");
     database.setDatabaseName("./data/customerDatabase.db");
    

    Any help would be appreciatied.

    Oh, I think that I understand your question now.

    The db file will be updated

    //data/customerDatabase.db

    The com.example.quotes.testDev_mple_quotes19e3de88 file will be little difference in your Simulator. You must use the System target file browser (Windows--> views show others-->--> QNX target--> target file system browser) to navigate to this folder.   You should find the folder with the name of the started by your package declared in your bar - descriptor.xml name.

  • Location of the CRG App Sqlite and explore

    Hi all

    I use Jdeveloper 12.1.3 with PSM 2.1 to build an application that uses Oracle A-team persistence accelerator to implement offline functionality.

    I'm exploring the database of lite sql that is generated once the data is stored inside.

    I used the Android DDMS tool to explore the file system. Under/data/data / < app_package > / / files, I found a .db file < AppName >. I guess it comes to the sqlite database that is used.

    However, I can not open a browser of SQLite.

    I assumed it is because it is encrypted by the MAF.

    There are two issues here:

    1 - is the actual location where the sqlite database is stored? If this isn't the case, could you please provide me with the location?

    2. is it possible to explore the contents of the database in development mode? So, lets say, turn off encryption for her, while developing?

    Kind regards

    Bogdan Zegheanu

    Hello Bogdan,

    1. Yes, it's the actual location.

    2. Yes, this is caused by encryption, and you can disable the encryption by adding the following line to mobile-persistence - config.properties:

    DB. Encryption = false

    Steven Davelaar,

    Oracle Mobile A-team.

  • How to display a SQLITE database being created

    In my application Iam using the SQLITE database. I discovered the code how to create DB and create a disk etc. My question is:

    Is it possible to display dashboards created DB and its fields and records which is recorded in this table. I can't find any answer for this that I've seen to recover the data in the table by using queries and display in a listView, etc..

    Is it possible to display the SQlite DB tables and their fields and the saved recordings in their. Please help me out

    In Momentics choose View Navigator of the target file system. You can use 'copy to file system' to copy the database on your PC.
    On the PC, I use the Firefox "SQLite Manager" plugin to display and manipulate data. You can find it using the plugin manager.

  • location on the content of sqlite

    Hello

    I am trying to locate my application in another language, my application uses an internal Sqlite database among others to read the contents of a table of category to display avaiable categoriesvia a listview.  What I want to know is if something is similar to QsTr("") where I could tell the application easier to retrieve content for categories another field in the same table based on the language used... This way I could have a field of CategoryNameEng, a CategoryNameFr on the ground etc...

    If there is not any recommendations on the best way to handle this would be great...

    Thank you

    I have

    create table yourn structure in order to have these localized text in an additional table as well as the locale itself as the key ("" "fr"...)

    then use the current locale as part of your query to find the right

    only one way to do

    still not easy to localize the content of databases

  • 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