How to read the file in db sqlite of assets?

I found that there are two ways to read the Sqlite db file.

(1) QSqlDatabase

database.setDatabaseName (filePath)

(2) DatabaseFactory

StrURI URI = URI.create (filePath);   file:///xxx/xxx.DB
DB = DatabaseFactory.create (strURI);

Does anyone know how can I write the path to the db file in the current folder by one the above cases?

I thank very you much.

You have write access to the active folder ONLY when you're in development mode.

In an application signed output, the entire application / folder tree is unalterable to your application (and not accessible to other applications).

See http://developer.blackberry.com/native/documentation/bb10/com.qnx.doc.native_sdk.devguide/com.qnx.do... for the background.

If you want to change such a data base, you must add logic to copy in the application data / folder is the first time the app tracks, or (optional, if it a such writing can never occur for most users) only when you first need to make changes.

Tags: BlackBerry Developers

Similar Questions

  • How to read the files on time capsule

    How to read the files on time capsule from iPad?

    Thank you

    Using an application like navigation on the iPad. More info here:

    Stratospherix - FileBrowser - overview

  • How save/read the file on devices BB10?

    Hello!

    I want to save data in the text using JavaScript file, but I can't use blackberry.io.file because it cannot support the BB10.

    How save/read file on BB10?

    For the moment the BB10 device has the best HTML5 browser, so you can use the file HTML5 feature.

    https://developer.BlackBerry.com/HTML5/APIs/FileReader.html <- sadly="" theres="" no="" sample="" code="" here="" for="" noobs="" like="">

    I went www.html5rocks.com for samples.

  • 10.1.3.4 - how to read the file in excel BPEL?

    I want to be analysis and read a simple excel file in BPEL. How can I do? Does anyone have a sample code to do?

    Use the Java Excel API - a Java API to read, write and modify Excel JExcel spreadsheets: http://www.andykhan.com/jexcelapi/
    Then, you must do all the coding Java in BPEL JavaExec.

  • How to read the file audio .wav on lumia 620

    I'm not able to play the audio .wav on lumia 620. I used an online converter and converted this track in mp3 format. But even in this case, there is no sound if I play this. pl advice.

    I'm not able to play the audio .wav on lumia 620. I used an online converter and converted this track in mp3 format. But even in this case, there is no sound if I play this. pl advice.

    Unfortunately, files .wav is not supported by the phone. You can convert the audio file to a different format by using an audio converter application so that it can be played on the mobile device.

  • I am trying to record an mp3 file, but firefox does not allow me to save... it allows me to read the file but not download and asave to my computer. How can I enable to save the mp3 files on my computer?

    I am trying to record an mp3 file, but firefox does not allow me to save... it allows me to read the file but not download and asave to my computer. How can I activate the Firefox save MP3s on my computer?

    Go to Options > Applications tab > MPEG Layer 3 audio(audio/mpeg) image search > use the "Save file" option on the menu drop down.

  • How to read the VI Analyzer config file?

    Hello

    How to read the analuzer vi configuration file? I'm getting a lot of errors on the size of the front panel and I don't know what should be the size you want. Where is the maximum expected size of the specified front panel?

    Kaspar says:

    Hello

    How to read the analuzer vi configuration file? I'm getting a lot of errors on the size of the front panel and I don't know what should be the size you want. Where is the maximum expected size of the specified front panel?

    If you have VI Analyzer installed, you can load the configuration file and look at the section select the Tests. There is a test for the maximum size of front under front-> User Interface. The default value is the resolution of the current monitor of the PC (including multiple monitors). You can change to the desired option.

  • How to read the date and time of a file by labview information

    How to read the date and time of a file by labview information? for example, time created and updated time.

    The similar question had already spoken here (this is the old thread but still seems topical):

    http://forums.NI.com/T5/LabVIEW/file-date-created/TD-p/109836

  • my download install when it reads the file "missing acroread.msi '.  How to do this?

    my download install when it reads the file "missing acroread.msi '.  How to do this?

    Hi tedm81099702

    First of all, I'm no expert, but I had exactly the same problem and did the following.  It worked for me:

    First go to this site: ftp://ftp.adobe.com/pub/adobe/reader/win/11.x/11.0.10/en_US/

    From this link I downloaded/installed the previous version of the US 11.0.10 of the drive.  Don't panic when it does not work... It gives the same error, BUT click Browse for button location and the AcroRead.msi file appears (should in any case).  Click top and then OK...

    After I installed the previous version, I then installed the new version of Acrobat Reader DC from here: Adobe Acrobat Reader DC install for all versions

    It removes the old version and install.  I hope this helps!

  • How to read the .txt adfLib pot file to the model layer by using the relative path

    Hello

    In my application, I use the ExtendedDynamicFldTbl (extends weblogic.wtc.jatmi.DynamicFldTbl), which the manufacturer requires the field file path table as a parameter.

    In the API, it is said that this name of path can be an absolute path, a relative path to the directory where Java has started, or a relative path that can be found as a resource on the classpath.

    I have created this ExtendedDynamicFldTbl to the model layer project, placed the fild_tbl.txt in a separate package and pass the path relative to the DynamicFldTbl constructor.

    Given my code below to get the instance of ExtendedDynamicFldTbl
    package model.tuxedo;
    
    public class ExtendedFldTbl  extends DynamicFldTbl
    {
    
        private static ExtendedFldTbl extendedFldTblinstance = null;
        
        public ExtendedFldTbl(String tablePath, boolean flag)
        {
            super(tablePath, flag);
        }
        
        public static ExtendedFldTbl getInstance()
        {
            if (extendedFldTblInstance == null)
            {
                URL url = extendedFldTblInstance.class.getResource("resource/fldtbl.txt");
                if (url == null)
                {
                    throw new RuntimeException("Tuxedo Service : fldtbl.txt is not found in the path 'model.tuxedo.resource' ");
                }
                extendedFldTblInstance = new ExtendedFldTbl (url.getPath(), true);
                String[] list = extendedFldTblInstance .getFldNames();
                System.err.println("fldtbl loaded. Total FML entries loaded = " + list.length);
            }
            return extendedFldTblInstance ;
        }
    }
    I just added the output of the build of the layer model to view the project of the layer and tested. It works fine and I am able to get the ExtendedFldTbl instance with all loaded fields. But rather than add dependencies, if I create an adfLibJar for the layer model project and you add to view the project of the layer, it does not work. It is not ablt to read the file of adf lib jar file.

    Issues related to the:

    1. How can I solve this?
    2. Although I have kept the field text file table in the source of the project itself, when I read the url, it is
    "C:/Documents and Settings/raguramanv/Application Data/JDeveloper/system11.1.1.4.37.59.23/DefaultDomain/servers/DefaultServer/tmp/_WL_user/SampleWtc/3gkmt9/war/WEB-INF/lib/SampleWtc_Model_adflibSampleWtc1.jar!/model/tuxedo/resource/fldtbl.txt"
    Instead of the physical directory, how can I use application in model layer context?


    Thanks in advance

    Rambeau

    Hello

    Try /adf/ or /afr/ in the URL. Then includes the ADF resource loader which is used to get the contents of a lib of the ADF. Take a look at the structure of ADF library where the file is located in. It should be in a directory with /adf in the folder structure

    Frank

  • How to read the data of BLOB and save to the file system

    Hi friends.

    I have called DEMO table there image stored as a BLOB. now my requirement is to know how to read the data of BLOB and saved in the file system. is there a procedure
    to read the blob object and stored in the file system. pls suggest me with an example.
    Thank you

    HI - don't know what version you have, but have a read through this:

    http://www.Oracle-base.com/articles/9i/ExportBlob9i.php

    Hoek link is to import the blobs in the db, it is export, to a file.

  • How to read a file of all the text in a pl/sql variable?

    Hi, I need to read an entire text file - which actually contains an e-mail message from a system of content management - in a variable in a pl/sql package, in order to insert the database information and then send the email. I want to read the whole of a sudden text file, no not one line at a time. Shoud I use Utl_File.Get_Raw or is there a more appropriate to do this?

    How to read a file of all the text in a pl/sql variable?

     ...
    your_clob_variable := dbms_xslprocessor.read2clob('YOUR_DIRECTORY','YOUR_FILE');
    ....
    
  • I have a 16G SD card on my laptop where I store my music... How WMP 11 (latest version) to see & read the files?

    I keep my music on a SD instead of on my hard drive... the Player Windows media won't let me play music... can I use wmp to discover & read the files only located on one sd card?

    Hi radioman9,
    also try this link:
    http://Windows.Microsoft.com/en-us/Windows-Vista/Windows-Media-Player-library-frequently-asked-questionshope this helps
    Eddie

  • How to read the jad file property

    I am able to read the properties of the my application JAD file. My requirement is that through my application, I will download some other app via OTA, so is it possible to read the file property PPP through my application jad, I downloaded.

    you don't know. to download another app ota you need the address of the file jad online. with this you can download and analyze its contents.

  • irig106 data Plugin to read the file extension .ch10

    Hi forum,

    I'm reading the IRIG106 (.) Ch10) using use IRIG106 use http://www.ni.com/example/31585/en/

    Can someone help me how to read a file using this use in LabVIEW or tiara.

    I tried to use this use to read IRIG106 (file .ch10 Extn) in LabVIEW but LV is getting crashed without reason!

    Thanks in advance.

    Hi all

    Changes to the use of IRIG_106 to read these new data files have been posted on the www.ni.com/dataplugins site today.

    http://www.NI.com/example/31585/en/

    Brad Turpin

    Tiara Product Support Engineer

    National Instruments

Maybe you are looking for