How to add a sqlite database to package for playbook

I use FlashBuilder Burrito and you have created an application that retrieves data from an sqlite database file. It works fine on my computer, but in the Simulator, it does not find the database. I think that I tried to add the file anywhere in the package, but it never works on the playbook. If I create the database in the code, it works fine, but I need to package the database programmatically.  Can someone point me in the right direction?  Thank you

This database is read-only?  Never need to change?  If this isn't the case, you'll want to copy it in the folder appstorage as shown in this other thread.

In any case, you seem to have lot able to find the database file. Here's what I would do in your place.

Take your .bar file and extract it or dig in there.  It's just a .zip with a different extension file, so I assume that you know how to do it.

Inside, there are files in the file meta-inf / folder (at the less OBVIOUS. MF that is interesting to look at) and air / folder.  All application files (.swf, assets, etc.) are air / folder.

To do anything in this air / folder, use File.applicationDirectory.  Which means that if, for example, your database is in air/foobar/mydata.db in the .bar file, you will get a path as follows:

File.applicationDirectory.resolvePath('foobar/mydata.db').nativePath

Who help me?

You can see that the file is in a different location in the simulator that where you when you run in with ADLS (test on your development computer) and .bar.  If this is the case, you have several choices, one of which is to change the layout of a way to always appear in the same place, anywhere that you test.  Someone who uses actually an IDE would have to help you with that...

Tags: BlackBerry Developers

Similar Questions

  • 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.

  • 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/

  • How to add the source database

    On the source database server have 4 instances.
    I already have install Oracle Audit Vault Agent on this server.
    And when I add the source source DB user, I can't found all role (e.g. DV_ACCTMGR) DV

    My approach is
    On Server1 (Audit Vault Server)
    -Install Oracle Audit Vault Server to Server1
    -addagent on Server1 «avca add_agent nom_agent - HOLTUU1 - agenthost 192.0.66.87»

    The server Server2 (Audit Officer Vault)
    -on this server have 4 instances
    -Create user 'oaudit' OS, create ORACLE_BASE ORACLE_HOME
    -Install Oracle Audit Vault Agent

    I mistaked perhaps one or more step.
    Please suggest me

    Dear suredch,

    Yes you are right, this will create a new House and you need to change the House to use AV agent.

    and the 2nd is the difference between the AV and DV?
    they are all two different products. you don't have to be confused. There is no need to use database on the database.you source vault can add your source database to server AV without database Vault.

    and ultimately that ask you database configurations, dear they are the recommended settings, you need to do to add data source to av server.

    Well my dear you can personally send me on [email protected] so i can give u a full doc include the entire process step by step, I used in my scenario, it would be the best practice for you. and you fight understand.

    Concerning

  • How to add a caption to an image for printing

    Is their a way to add a caption to an image, so it will display on the picture? I would like a different caption for each photo.

    I have what is called windows Photo Gallery.

    I would like to add a caption to each photo separately and do print on the photo

    I have what is called windows Photo Gallery.

    I would like to add a caption to each photo separately and do print on the photo

    =====================================
    Not an option in the Windows Photo Gallery.

    Easy to do with Picasa free software:

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Picasa
    http://Picasa.Google.com/

    After you download and install Picasa...
    Open the program and double left click
    an image to open the editing functions.

    To add text to the front of the photo...
    choose... Simple retouching / text button...

    More info...

    How to add text to your Photos using
    Google Picasa 3
    http://www.ehow.com/how_4599330_text-photos-using-Googles-Picasa.html

    Volunteer - MS - MVP - Digital Media Experience J - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • Create or open the sqlite db in webworks for playbook

    I have a sqlite database. I want to open the db using javascript. Also I have to keep the db locally and wrap it up. Can someone let me know with a sample code how to do CRUD features in sqlite db using JS. Please answer soon, if anyone has an idea.

    Yes its working! I he repackaged his work in the Simulator. Thankz

  • How to add a second database connection

    Hello

    I added a new database connection. Then, I want to create tables business components but I do not see the schema of the database connection newly added in the drop-down list schema.


    Is there something else to do to be able to add a second connection to the base?

    Thank you

    JDev 11.1.1.6

    DB connections are strongly coupled with modules of the application. The best way would be to create a new project template and use this second model to access the database. Then, you use each application as application root module modules so that each gets its own connection.

    If you need to have these two dbs data in a table or query, you must use a link db or synonym to access data from ad of your DB connections.

    Timo

  • How to add a dependency to the library for the java service modules?

    Hello

    I try to add Google gson jar as a dependency of the sample of chassis (/ chassisRackVSphere-service) and I'm facing some problems with the installation of osgi.

    ////////////////////////////////////////////////////////////////////////////////////////

    Report of resolver:

    A Package Import could not be resolved. Resolver error data < Import-Package: com.google.gson; version = "0.0.0" >. Caused by the constraint missing bundled < com.vmware.samples.chassisrackvsphereservice_1.0.0 >

    constraint: Import-Package: com.google.gson; version = "0.0.0" >

    at org.eclipse.virgo.kernel.install.pipeline.stage.resolve.internal.QuasiResolveStage.process(QuasiResolveStage.java:46)

    at org.eclipse.virgo.kernel.install.pipeline.internal.StandardPipeline.doProcessGraph(StandardPipeline.java:62)

    at org.eclipse.virgo.kernel.install.pipeline.internal.CompensatingPipeline.doProcessGraph(CompensatingPipeline.java:73)

    at org.eclipse.virgo.kernel.install.pipeline.stage.AbstractPipelineStage.process(AbstractPipelineStage.java:41)

    at org.eclipse.virgo.kernel.install.pipeline.internal.StandardPipeline.doProcessGraph(StandardPipeline.java:62)

    at org.eclipse.virgo.kernel.install.pipeline.stage.AbstractPipelineStage.process(AbstractPipelineStage.java:41)

    at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.driveInstallPipeline(PipelinedApplicationDeployer.java:359)

    ////////////////////////////////////////////////////////////////////////////////////////

    Here are the things I did based on the addition of the gson - 2.2.4.jar to the list of libraries (which I'll use my service module).

    1 added gson - 2.2.4.jar to chassisRackVSphere-service\lib

    2. added gson - 2.2.4.jar to the list of libraries referenced in STS.

    3. fixed the ANT build file to add this jar to the classpath

    < target name = "java-compilation" depends = "clean" description = "do not select objective in-house." >

    < javac includeantruntime = 'false' destdir = fork "${CLASSES}" = "true" debug = "on" >

    < path src = "${basedir} / src/main/java" / >

    <!-< path src = "${basedir} / src/test/java" / > for future test-> files

    < classpath >

    <! - remove this if you are not using the SDK with java - >

    < pathelement path="${VSPHERE_SDK_HOME}/libs/vsphere-client-lib.jar"/ >

    < pathelement path="lib/commons-logging-1.1.1.jar"/ >

    < pathelement path="lib/gson-2.2.4.jar"/ >

    < / classpath >

    < / javac >

    < / target >

    4. fixed the manifest file to include the package gson

    /////////////////////////////////////////////////////////////////////////////////////////

    Import-Package: org.apache.commons.logging,.

    com.google.Gson,

    com VMware.vise.Data,

    com VMware.vise.Data.Query,

    com VMware.vise.Data.Uri,

    com VMware.vise.vim.Data

    /////////////////////////////////////////////////////////////////////////////////////////

    I don't know what I'm missing. How can I add third-party libraries for the service module (in this case chassisRackVSphere-service)? Any help is appreciated.

    Thank you

    Shankar

    You forgot a step described in the FAQ ""How to use 3rd party java libraries?', that is to make your available on the server gson library. "  An excerpt from the FAQ:

    Formatted as OSGI bundles libraries should be in a known location on the server:

    • In development mode you can copy in Server/repository/usr, one of the default directories for the loading of libraries (you must restart the server).
    • If the server is already running you can copy also in Server/Pick-up because the beams will be deployed hot (i.e. without having to restart, but this requires you to deploy your plugin after the library, see Note 2 below).
    • Finally, you can keep in their current location and add a path in server/configuration/com.springsource.repository.properties.
    • In production mode , that your plugin is installed as a plugin package, it is neither practical nor recommended to add libraries to server/Pick-up or Server/repository/usr on your production server. Instead you must include them in the directory plugins of your package and your .war and .jar packages. You will also need to list Bundle-SymbolicName of plugin libraries - package.xml.
  • Install RMS 13.1 how to add limits given in the ddl for UK files?

    Hello gurus, the retail
    I installed RMS 13.1 without running the partition.ksh script during installation detail for RMS database and it has created some examples of data too, I saw the Guide installation and especially watched the stages of partitioning in the Guide, can someone give a hint, how the data limits are changed in the ddl for UK files? Since I'm a DBA, I'm a little confused, where to get this data? as the installation guide mentions that the RMS_partition_defintion.xls has modified and used for installation of production combined with partition_attributes.cfg for a production facility.
    Thanks in advance
    -Vivek

    Hi Vivek,
    Let's see...

    UK means United Kingdom of great brittain? I think that there is no UK specific DDL instructions associated with RMS.

    If you look at the Installer (unzip the zip to edelivery.oracle.com for example RMS 13.1), order folders

    V16908-01\rms_13.1_install\rms13dbschema\rms\dbschema\dbscripts_rms\examples\part
    V16908-01\rms_13.1_install\rms13dbschema\rms\dbschema\dbscripts_rms\ddl\part

    This package contains a ksh script which is driven by a script configuration and some lists of specific partitions in the data_def folder.
    This script partition.ksh can recreate DOF to other unpartitioned tables to partitioned.

    The XLS file mentioned also in this file and helps defining the number of partitions and make one or for example multidimensional (e.g. range/hash).

    The whole process is explained in a lot of details in the last chapter of the guide to implementation of goods merch-131 - impg.pdf.

    When your system already contains data, this should be saved and re-established.

    Note that indexes on partitioned tables may need too many partitioning, it takes at least some reflection on this and AFAIK the RMS installation program tries to respond to this also.

    Best regards
    Erik Ykema

    Published by: ErikYkema on October 29, 2010 08:05

  • How to add a shortcut on the desktop for the microphone system?

    original title: advice, please

    How can I place a shortcut to the system of Windows 7 on my desktop microphone?

    Hi GeorgeGranger,

    You should be able to drag the icon on your desktop by following these steps:

    1. Click on the Start orb
    2. Select Control panel
    3. Select the devices and printers
    4. Locate your microphone
    5. For a long time, the micro-click and drag it to your desktop

    Let us know if that helps.

  • How to add commands to the context menu for the types of files (add associations)?

    I would like to download anime and re - encode standard dvd (mpeg2) format before you burn it to a DVD for better quality.  I have a program suite that supports the grunt work, but to do a contextual menu command that calls the original batch file that the user must manually add it to the menu of context by file association.  I found that I can access the menus of file associations, but the option to add a new association with an existing file type does not seem to exist.  Is there a registry entry, I need to change or add to allow me to customize my context menus in Windows 7?

    Create a text file (make sure you have the framework where you DO NOT hide known file extensions unmarked)

    Change the new text file... Copy the following: [quote]

    Windows Registry Editor Version 5.00

    [HKEY_CLASSES_ROOT\WMP11. AssocFile.AVI\shell\Queue for encoding]
    @= "& Queue for encoding.

    [HKEY_CLASSES_ROOT\WMP11. AssocFile.AVI\shell\Queue for Encoding\command]
    "@="c:\\dvdstudio\\scripts\\Queue.bat \"%1\"

    [HKEY_CLASSES_ROOT\WMP11. AssocFile.MP4\shell\Queue for encoding]
    @= "& Queue for encoding.

    [HKEY_CLASSES_ROOT\WMP11. AssocFile.MP4\shell\Queue for Encoding\command]
    "@="c:\\dvdstudio\\scripts\\Queue.bat \"%1\"

    [HKEY_CLASSES_ROOT\CCCP. WMP. AssocFile.MKV.1\shell\Queue for encoding]
    @= "& Queue for encoding.

    [HKEY_CLASSES_ROOT\CCCP. WMP. AssocFile.MKV.1\shell\Queue for Encoding\command]
    "@="c:\\dvdstudio\\scripts\\Queue.bat \"%1\"

    [/ quote]

    Save the text file..., rename the text file with the .reg extension

    Double-click the new registry file to add the context menu commands to your registry... everything is done! :)

    And thank you very much, BluePlateSpecial!

  • How to add the driver to the computer for my microphone?

    original title: I accidentally delete the driver microphone on my Toshiba computer, how to make my microphone work again

    I accidentally delete the driver microphone on my Toshiba computer, how to make my microphone work again

    Most often when a device does not work, it's because the driver has been corrupted.

    Try reinstalling your.

    http://Windows.Microsoft.com/en-us/Windows7/update-a-driver-for-hardware-that-isn ' t-work correctly? SignedIn = 1

    http://captaindbg.com/how-to-update-drivers-on-Windows-7/

  • How to add a shortcut on the desktop for streets &amp; trips 2013 for windows 7

    Just installed MS streets and trips 2013, I do not see anywhere how to send a shortcut on the desktop. Tried to do a right click on the programs, but this option is not started.

    I don't have the application under test, but normally you right click on the exe programs (or registering in the program menu) and either "create shortcut" or "send to" and then "desktop".

    If the options are not there, your office, do new right click - shortcut, find your exe file of programs (the actual file you want to run) and and we should end up with a shortcut on your desktop to your program. (hopefully :-))

  • How to add my country to see weather for Afghanistan?

    Hello

    I'd add my country to see the fight of condation of time not worked '.

    Go to Control Panel > region and language >location and make sure it has correct information. Right click on the weather gadget, click Options , and do the same thing.

    If the problem persists, set your location to the United States and then add the Afghanistan. I noticed that I had to do in order to get the weather Gadget to provide information for the Jamaica.

  • How to add a license via command line for C60 key

    Could someone remind me what the command would be to add a license key via the command line interface?  I want to downgrade the software and it was initially delivered with version TC7.

    Hello Douglas.

    Here are the commands:

    xCommand SystemUnit OptionKey Add Key(r):

    xCommand SystemUnit ReleaseKey Add Key(r):

    You can also enter them via the web interface by going to the maintenance > Software Upgrade.

Maybe you are looking for

  • Logging data source expressions

    Hello We use NI TestStand 2012 here in our society, and I have a simple question. In any test pass/fail (numeric, String, pass/fail regular), is it possible to have the TestStand to include the data source expression in the default report? I can add

  • Discover the 1280 X 1024 on s1931a without distortion

    Hello- is it possible to change a resolution of 1280 x 1024 on my new s1931a without distortion?  I don't care if it shows with black side bars.  currently when I try to do this in windows 7 it distorts the image (fun vertically it fills the entire s

  • HP Envy 4500 series: print 'Photo printing without borders' and 'best quality '.

    Problem: It only prints in the borderless Photo printing option. Text in black it prints appears in gray. It prints only in quality adjustment 'Best '. The test (after cleaning the print head) page shows the 6 colored rectangles but no black text. I

  • Vista Premium upgrade to Windows 7 Premium or Ultimate

    I want to upgrade to Windows 7 from vista premium,... would like to know if I go to the premium 7 or 7 ultimate... There is the question of 32 or 64 bit selection... I have an Asus M50VM series, still has a bit of kick but I don't want to overload hi

  • Help me understand the Vista backup

    I just started using Vista backup to backup my PC to an external hard drive.  There are several things I want to ask about the Vista Backup utility. 1. with many other backup programs (by example, utility backup Windows XP), I was able to review what