How the packet data / * ($HOME /) files by using the bar - descriptor.xml

Hi, using sdk native c / c ++ with playbook Simulator 1.0

I want to distribute with my application some data files that likely should fall under the ' data /' ($HOME?)

folder.

(I've written / will update them sometimes, so app/native/does not appropriate I suppose.)

in the bar - descriptor.xml, I tried adding them as an 'active '.

who drops their bottom right in app/native / *.

so I change the XML .bar to try to get them grounded in data.

Here's what I found:

by train: data/filename landed the file in app/native/data/filename

try:... /... / Data/filename received the error

by train: / data/filename received the error (hoping to slash leader was compared to the sandbox)

I even on a lark tried: $HOME/filename, who literally created file app/native / $HOME!

so he tried a ${HOME} with the curlies. I got an error saying unable to resolve the path variable.

How can I get the data files in the folder/data ($HOME) using the .bar packaging?

You cannot package the file into the data, you copy your files at startup, if they don't not exist your app/native/data for example

Tags: BlackBerry Developers

Similar Questions

  • The file of the bar - descriptor.xml (and make the application of command line)

    I made a game with air and it is online for sale on Android and iOS. It is somewhat popular and I thought to put up on Blackberry for quite awhile now and with the Port of soon-to-start-A-Thon, this seems to be a great time to finally make it.

    BlackBerry is not very common that here where I live in Sweden, however it still looks like an interesting with a potential platform if I want to get the trip. Unfortunately I don't own a camera myself so I'll use the Simulator. With some graphic problems with the simulator when running in mode BB10DevAlpha (icons does not appear right) and the Simulator is very slow when running in mode BB10DevAlphaSafe (chart appears on the right, but it seems that updating them requires more CPU my computer are available).

    The game is built using nothing other than Adobe Flash Professional CS6 and a bunch of command line tools to build the package and sign. I've only got an old computer with Windows XP now since the death of my main PC, all at the time and since the Port-A-Thon is just a few days I do with what I got.

    Firstly I understand that only AIR 3.1 is supported by Blackberry 10, so I use the old AIR SDK 3.1 to create a SWF (flash) file.

    What I really need to do should be used in the exported SWF file of the game, then use the command line tools provided by RIM to build the package, right?

    Except that I did not count on bar - descriptor.xml to be so difficult to understand.

    I was brought to the documentation here: https://developer.blackberry.com/air/documentation/bb10/bar-descriptor_config_file.html

    It says Adobe AIR at the top, the platform selected is Blackberry 10 and the title says "bar-descriptor configuration file", so it must be in the right place!

    I start by trying the 'bar-descriptor configuration example file"on this page:

    ===========================================================



      
          None
          fake
      

     
      
       Name of the author
     
      
       gXXXxXXx ##XxXxXxxxXxXX #xxx
     
      
       Core.Games
     
      
       Icon.PNG
     
      
       HelloWorld - splash.png
     
      
       read_geolocation
       use_camera
     
      
       1

    ===========================================================

    Of course during the test I replaced a few things in the example above with the correct filenames for images etc, I just copied the example of right - off this time to you guys show what I mean.

    Firstly, I extract "blackberry-tablets-sdk - 3.0.0" in a folder on the disc, then I make sure as a full path to the "bin" in the SDK folder inside the path on the OS environment variable.

    Then I read on "Applications of Test using the command line": https://developer.blackberry.com/air/documentation/bb10/testing_your_application_cmd_ms_2010851_11.h...

    Now I run:

    BlackBerry - airpackager.bat - package installApp - blackberry-myappname - new.bar - launchApp myappname-blackberry-bar - descriptor.xml myappname.swf myappnameicon86.png bg splashscreen1024.png - device 192.168.8.128

    Note that "bg" is a folder with 500 images that must be accessible from the app. I hope that I can just add the folder like this and not type a path to each image file...

    What I get (in lib\adt.jar via the bat file):

    error 101: Namespace is missing
    Error: Validation of the AIR is not

    Okay, so the example did not straight on the box.

    Now, I've read all paragraphs in the first URL I linked above ("the bar-descriptor configuration file"). I start my own XML file and make sure to include everything that is marked as "necessary". That's what I'm left with:

    ===========================================================



        MyCompany
        
            
            com.mydomain.myappname
            My App name
            3.0.0
            
                splashscreen1024.PNG
            

            1.5.0
        

        run_native
        
            application
            
                bb.action.VIEW
                application/octet-stream
            

        

    ===========================================================

    I have no idea of what concerns the block whole call target, but it took, so he must be there.

    Now I launch (notice that myappnameicon86.png is gone since no icon is mentioned in the above XML code, it is not mandatory):

    BlackBerry - airpackager.bat - package installApp - blackberry-myappname - new.bar - launchApp myappname-blackberry-bar - descriptor.xml myappname.swf bg splashscreen1024.png - device 192.168.8.128

    Yet once, I get:

    error 101: Namespace is missing
    Error: Validation of the AIR is not

    Frustrated I get autour on the forums for answers, because the official documentation is nowhere getting me.

    I'm left with this:

    ===========================================================


    http://ns.Adobe.com/air/application/3.1">
        com.mydomain.myappname
        1.5.0
        
        My App name
        
        My App name
        
        
            myappname.swf
            standard
            fake
            true
            true
            landscape
            GPU
            fake
        

        
            myappnameicon36.PNG
            myappnameicon48.PNG
            myappnameicon72.PNG
        

        fake
        fake
        
            qnx.fuse.ui.skins.QNXDevice
            qnx.fuse.ui.skins.QNXNetwork
            qnx.fuse.ui.skins.QNXSensors

            qnx.fuse.ui.skins.QNXSkins
        

    ===========================================================

    Looks like the XML code that I use when I build for Android.

    First of all it doesn't have the tag root of qnx, but also nothing of the icons are of the required size (86 x 86). The tag required splashscreens and invoke target is also absent, to name a few. No idea of what the entire block of 'extensions' really do.

    Surely, this does not work:

    BlackBerry - airpackager.bat - package installApp - blackberry-myappname - new.bar - launchApp myappname-blackberry-bar - descriptor.xml myappname.swf QNXDevice.ane QNXNetwork.ane QNXSensors.ane QNXSkins.ane myappnameicon36.png myappnameicon48.png myappnameicon72.png bg-device 192.168.8.128

    Success in building the package BAR to my infinite surprise!

    He even managed to install on the Simulator. An icon for the game. However when it auto-couru the app went into landscape, thought for a second and then crashed (or you leave?) without a message.

    Perhaps because the required qnx tag was missing in the XML?
    Perhaps because images in the bg file could not be loaded?
    Perhaps because he had no permission to keep screen from dimming?

    I have no idea. I tried to add XML to qnx at the address previous to the bar - descriptor.xml, I thought that maybe he needed both the qnx block for when you run the application and the application block for when packaging. But now, he has complained of something like XML is not not clean ("' fatal error: markup in the document following the root element must be well-formed." ").

    So he came to it, I have to ask for help if I ever make the deadline of the Port-A-Thon.

    (1) how am I supposed to write the bar - descriptor.xml?
    (2) what command line starting by "blackberry - airpackager.bat" is OK to use?
    (3) all I have to do is build the SWF using Adobe Flash Professional CS6 and then pack it using the Blackberry SDK, right?

    First of all, there are two xml files that you need.

    One is called the manifesto, is to AIR and is called yourappname- app.xml. It is identical to the ones you use for Android and IOS, though some elements will be ignored. It's one you need to switch on the command line, and is probably causing the 'Namespace' missing error message. A file manifest a minimum is:

    
    http://ns.adobe.com/air/application/3.1">
    
        com.example.appname
        My Fabulous Game
        1.0.0
    
        FileNameOfYourSwfWithoutExtension
        YourCompanyName
        
            [This value will be overwritten by Flash Builder in the output app.xml]
            true
            false
            none
            cpu
            false
        
    
    

    Replace the text in red with your own stuff.

    The second xml file is called to the bar of descriptor. It is for App World and the installation process and is called bar - descriptor.xml. It contains information about signing code, icon, permissions etc. A simple bar - descriptor.xml is:

    
    
       
          none
          true
          landscape
          false
          cpu
       
    
       
       your-name-on-certificate
       your-id-on-certificate
    
       core.games
    
       
       1
    
       
       
          icon86x86.png
       
       splash-landscape.png
    
       
       2.1.0.1314
    
       
       access_shared
       access_internet
       play_audio
       set_audio_volume
    
    

    Make sure that you at least change the red dots.

  • Access to the bar - descriptor.xml within the app

    Is it possible to get the properties of the bar - descriptor.xml? Particularly interested in the app id to understand app whenever it is a free or paid application version

    There are PackageInfo and ApplicationInfo classes that contain this information:

    http://developer.BlackBerry.com/Cascades/reference/bb__packageinfo.html

    http://developer.BlackBerry.com/Cascades/reference/bb__applicationinfo.html

    To extract the appId:

    #include ...
    
    bb::PackageInfo pi;
    QString appId = pi.name();
    

    Add LIBS +=-lbb in the .pro file

    You can also analyze the file manually, these threads contain more information on how to locate it:

    http://supportforums.BlackBerry.com/T5/native-development/extract-version-number-from-bar-descriptor...

    http://supportforums.BlackBerry.com/T5/native-development/APIs-to-access-bar-descriptor-XML/m-p/1737...

  • Disable the file of the bar - descriptor.xml automatically update

    Hello

    My application is dependent on an engine.so file.  the bar - decripptor.xml contains the following lines:


    armle-v7
    MyTest
    lib/libengine.so.1

    The problem is, when I clean and engine rebuilding in the IDE, the following line will automatically be removed from the .xml file. How do I disable this feature?

    lib/libengine.so.1

    Try turning off the generator called validator descriptor bar (right click-> properties-> Builder project)
    Make sure the library is there, then close the bar descriptor Editor
    So don't rebuild you.

  • How to open data.bin file without using exe?

    I had downloaded a game on the internet its really big in size, I downloaded 2 GB of files and when decompressing, it would be gb(that's_what_the_installer_say).i 8-5 files there are 4 data1.bin, data2.bin and so on until data4.bin and one installer with it, but when I install with installer there is unpack to the slowly so I want to decompress without using the installer some alternative program to make it work. But when I try to open it with ultra iso or winrar it shows the error invalid or unknown format. What should do? Sorry for my bad English.

    A .bin file is a binary data file, you cannot unpack without the program who can read binary data.  You must continue to use the correct Installer.

  • How to check the authorization of app that is declared in the file of the bar - descriptor.xml

    How can I check the programitcally app permission is enabled or disabled.

    Suppose the first when we launch the application that any permission has been activated once the user has disabled permissions from the setting. So, I need to check the permissions are enabled and disabled.

    Thank you.

    access_shared , you can check with QFileInfo

    QFileInfo info("shared/documents");
    if (info.isWritable()){
        qDebug() << "SHARED PERMISSION OK";
    }else{
        qDebug() << "SHARED PERMISSION ERROR";
    }
    

    and the access_internet hm, if you do not have permission to access_internet in your application, then app still has access to internet, so that you can not check. You check only if app is connected to the internet

  • What is the file *.so in bar - descriptor.xml

    Hello

    in the bar - descriptor.xml to assets, that I find under build paths of target configurations for the debugging of the device, the device profile etc. For the configuration of the path the target name of the application, for example, in the notebook-app the target path is portable.

    Only for the configration of device-release, it is notebook.so.

    Can some explain to me why there is the suffix .so?

    I searched the web but can't find an explanation to this day.

    .so is a library.

    For a Release version that the main application is packaged as a library, it has been introduced with 10.1 (?) and gave a performance gain important that all qt libraries are compiled into a single.

  • bar - descriptor.xml: which category for app use?

    Hi @all,

    I'm developing an application of battery. In the file of the bar - descriptor.xml I choose as single category 'media' and 'games '. Do I have to select 'Media' or let him no classified?

    Thank you very much!

    Peter

    I don't think it's really important, but I would not leave classified

  • Retrieves the version number of bar - descriptor.xml programmatically

    Is there a way to extract a version number, and other information of bar - descriptor.xml file similar to how's done it in the Android world via getPackageInfo() in PackageManager?

    It would be a convenient way to play around these values in your code.

    Thank you

    There are various APIs of the platform that you can use for example the PackageInfo

    http://developer.BlackBerry.com/Cascades/reference/bb__packageinfo.html

    ApplicationInfo or,

    http://developer.BlackBerry.com/Cascades/reference/bb__applicationinfo.html

  • ADF: How to restrict data based on responsibilities using the JAAS implementation?

    Hello

    I have a requirement to limit the data of a user based on the responsibility that is assigned to.

    Let me explain my requirement in short.

    I am trying to create an EXCEL spreadsheet based for a creation of invoice using the ADF DI.

    Now when the user navigates the U.S. responsibility., then it should be able to view/Create invoice only for operational unit of the United States.

    whereas that, another user browsing responsibility UK should be able to see/create invoices for UK unit of operation only.

    Is this possible?

    I read a few posts on how the data can be filtered by using roles. However, since it is instance EBS R12, responsibilities allows instead of roles.

    The customer may not agree to create custom for each responsibility roles.

    Please help.

    Jdev version: 11.1.1.6.0

    Thank you

    AG

    Thanks Timo.

    The doc has been useful. However, as the customer is not eager to create roles for responsibilities, we would try to reach the requirement through session Management.

    In this way, the responsibility and the function details can be extracted from the EBS.

  • How understand you what vdmk files are used by servers?

    I inherited an esx/esxi 2 cluster system. Vdmk files are stored on a San. The previous sys admin was a bit sloppy with data warehouses and I'm trying to compile a list of files used vdmk so I can remove the vdmk which are not used. The problem however is that there are many vdmk stored files by folder on server. The only way I know used recovery vdmk (in vSphere) is to modify the parameters & gt; material & gt; hard drive that shows the disk file. It is, however, completely unreadable (grayed out) because of the length of folder of the server and the fact that the server is on. How should be done to find what vdmk files are used by a server turned on without turning it off?

    Hello and welcome to the forums.

    Check out the free RVTools.  The tab vDisk will give you the information you are after.

    Good luck!

  • ReadyNas 316 | How to remove \data\home\Backup

    I can't remove the \data\home\Backup on the admin page. I can't find this file on the mac Finder

    The file has now been eliminated.

    Once the balance, I'm finished running please run another UI, accessing the system > Volumes, selecting the volume and choosing the balance.

    Once this is done, I would like to run a Defrag.

    It is better not to fill the volume to more than 80-85%.

    I recommend you to plan a balance every few weeks or more. I also plan a defragmentation.

  • How can I delete a file in use by demon updater?

    How can I delete a file that says it's in use by Daemon updater.exe?

    I have a computer with a hard drive of GB 914, who recently said that it is impossible to install a program because the disk is full. While they inspected, I found that it only reported about 200 GB of usage and after you remove files non-essential, I released 57 GB of disk space.

    I made sure to show all files and installed a file tree Locator and found a log of 684 GB file but when I tried to remove it, it said that the file was not in the specified location. Then I manually found the file in system32 tree and he said that it is impossible to delete the file because it is used by daemonupdater.exe.

    can anyone help please?

    Credonem, welcome to the forum.

    I suggest start safe mode to see if that helps with your problem.  Safe mode starts only the drivers and programs needed.

    Please, click on "Thumbs Up +" if I helped you and click "Accept as Solution" If your problem is resolved.

  • How to decompress a compressed file? Using Vista and IE 9?

    I use Vista. U use Internet Explorer 9. I download E-books from loc.goc. They come zipped (compressed.

    How to open these files? Where to locate.

    How can I move these files unzipped to a memor stick (Flash drive)

    I am an older person who is computer illiterate. So, I need SIMPLE instructions.

    "OPEN" does not work for me. I need... Click on... a right click or double click!

    Hello

    I suggest you to refer to this link and check if it helps: (you want to view the information provided regarding the self-extracting files)
    http://Windows.Microsoft.com/en-us/Windows-Vista/compress-and-uncompress-files-ZIP-files

    It will be useful.

  • How can I recover deleted files without using any software?

    How can I recover deleted no matter what folder, image, Word & excel files without using any software inculd Recycle Bin?

    Monday, June 11, 2012 11:03:01 + 0000, dipakparate wrote:

    How can I recover deleted no matter what folder, image, Word & excel files without using any software inculd Recycle Bin?

    You cannot retrieve files deleted with the help of software. And even using
    software, you may or may not be able to recover.

    What you have against the use of software? The first thing to try is to
    being trash. If she isn't here, read on.

    "Deleting" a file does not actually delete it marks just the space
    also available to be used. There are third-party programs that can
    sometimes recover deleted files. The problem is that the space used by
    the file is likely to be replaced very quickly, and it makes
    the unrecoverable file.

    So your chances of successfully recover this file are decent if you
    Try it again immediately after the deletion of it and go quickly
    downhill from there. If you have used the computer since then (for
    example to write this question and read this answer), your chances may
    be very poor now.

    But if the file is large enough, it's still worth a try. Stop
    using the computer in question immediately, if you have not done
    already. Download an undelete program (and here's one:)
    http://www3.TELUS.NET/mikebike/restoration.html but there are several
    others to choose from; Do a search) on a friend's computer (do not
    it on yours because that would overwrite the files you want
    Undelete) and bring it to you on a CD or thumb drive to try.

    If that fails, your only recourse is to bring or send the disc
    a company of professional file recovery. This kind of service is very
    expensive and may or may not work in your case.

    Ken Blake, Microsoft MVP

Maybe you are looking for

  • IPhone more stolen 6s

    Hey guys,. My Iphone was stolen today, I reported it to the police immediately. I'm tracking my but online phone of no use. I also asked to wipe the device and it is said that erase will occur when it is connected to the internet. Is there anyway tha

  • Can we install Windows MCE 2005 on Qosmio G20

    I want to improve my operating system from Windows XP to Windows XP MCE 2005 is there a way to do it. Help, please

  • What programs work with new pencil?

    I'll try to find programs that I can use the i pad pro pencil to write in word and other programs than suppor Doner pencil.  I use one is not and I can import documents in there and then add notes, but it is Klucky at best.

  • Can what function block I use in my vi to configure a NI USB6008 of ANALOG OUTPUT.

    Hello I have a USB6008 that I use to watch the 3 entries. I would like to add the analog output AO0 to control a 0-5 volts. Which function to use in Labview 2010 for this? The DAQ assistant let me only to acquire signals do not generate so I need som

  • I activated all the computer management services, now my pc is slow

    Please tell me any unnecessary service off of here: https://lh6.googleusercontent.com/-6udy07-D37Q/ULo1DtbhQSI/AAAAAAAAAJw/E76_iBVifZU/S730/Untitled.jpg My pc is running very slowly :( Help! Note: I have disable many services to make it a lot faster,