Download the version of the library project

Hello

I am aware of how to get the version of an application using ApplicationDescriptor, but now I would like to be able to get the version of a library in the workspace project programmatically.

I have a library that can be used in different applications and I want the application to be able to check what version it uses.

Any ideas?

Assuming that you know the name of cod for the library, the code such as the following might do what you want:

moduleHandle int = CodeModuleManager.getModuleHandle ("");
If (moduleHandle! = 0) {}

Following might give you useful values
CodeModuleManager.getModuleVersion (moduleHandle)
CodeModuleManager.getModuleTimestamp (moduleHandle)
CodeModuleManager.getModuleVersion (moduleHandle)
}

Tags: BlackBerry Developers

Similar Questions

  • Cannot sign the library project

    I am a library project named Ksoap2 containing just the Ksoap2.jar for my main project and it works well on the Simulator, I can get the values of webservices. I try to deploy the project to a real device and test it, and an error is that ksoap2. COD must be signed, so I try to sign my projects. After you have installed 3 RIM csi files, I can sign my main project successfully, but not the library Ksoap2 project and I have this:

    File: Ksoap2.cod

    Status: Not registered

    Category: required

    SignerID: 3

    Name: RIMAPPSA2

    And then I tried with another jar for the library project, the results are the same, the status is not saved. Someone can help me, thank you very much!

    Third-party applications are not able to call regardess period, native methods if they are signed or not with signature keys.

    The native reference to the call should be deleted.

  • Script for the library project files

    I want to create a library project that I can use with multiple Flex applications.  I'm moving the files from one of my apps in this new library.  However, one of the files that I brought to the wire is an actionscript file that I use in several files.  It's a bunch of generic utility methods that are nice to have.  I included it in the files like this:

    < mx:Script " source ="utilityScripts/UtilityScript.as """/ >

    Here is a small sample of code in this file:

    Import mx.rpc.events.FaultEvent;

    Import mx.controls.Alert;

    public function handleFault(event:FaultEvent):void {}

    Alert.show (event.toString (), 'Error');

    }

    In the original file, I said not yet as part of a package and it worked fine.  But now in the library project it gives me this error at the beginning:

    1114: the public attribute can only be used inside a package.

    So, if I give him a package name:

    package utilityScripts

    It then gives me a new error:

    1037: packages cannot be nested.

    How can I get this file in the library project?

    Yes, in your project library of all the files must have a package and class name,

    AFIK

  • Download the Flex project it breaks

    Hi, this is probably the result of something incredibly stupid. Some time ago I would find it easy to create a release build in FB3 and place the SWF again online. It still works, I restructured just my code to use several .AS files I include in the mxml like this: whenever I download now online project, the application crashes (http://eplant.mozzly.com/ePlant.html). It is there, doing nothing. I wonder if I am missing something important... what hell could I have forgotten to do? If I jump the file into a local webserver on my dev system... it loads correctly.  The application depends on a file config.json that is the first thing she pulls. The web version does not do this, but my only hosted locally works perfectly...  Acknowledgement of receipt. What probably would be this?

    you previous upload was 460 KB and your new downloaded file has a size of 765Ko if this isn't a difference of 2 KB. It seems that you have downloaded the debug version, this time not the realease version. But the two files are corrupted if you don't they are not completely download

  • include the library project

    Hello

    Please excuse if this is a stupid question, but all this stuff of C++ is really new for my java developer experiences.

    I created a project C++ Library of BB mylibproject

    with a public folder inside

    then I copied in the public record of this project: my_lib_test.h

    Then I have another mytestproject of normal C++ BB project

    ricght-click-Configure-add-library: added the public record of mylibproject

    then in my main.cpp I've included

    #include

    I could use the library with content injection and open declaration jumps inside the my_lib_test.h inside main() {}

    If everything seems to work

    then the two selected projects and-> Build Project...

    all compiles without error, but I get an error:

    / Developer/SDKs/bbndk-10.0.4-beta/host/macosx/x86/usr/bin/ntoarm-ld: could not find lmylibproject.

    no idea what could be the problem?

    MyTestProject is a project to mylibproject reference

    THX

    uuups... was my fault

    within my library project, there were 2 files of CBC:

    / SRC

    / public

    / SRC was empty and / public contains xxx.h

    creating a class dummi Interior/SRC fixed - now the library has been recognized.

    .. good lessons to learn new environments ;-)

  • Library project cannot find the file MXML PopUp

    In my standard project, I have a component that matter and opens a popup TitleWindow. Run as a standard project SWF file, it works perfectly. However, when I create a library project, I get a compilation like this error:

    "Cannot find source for the mySource.myComponents.myPopUp class."

    I import the popup like this:

    import myComponents.myPopUp

    What I have to edit to make this work for the library project?

    Try to add the location of the popup class to the source path of the library (in Flex Builder, select project > properties > Flex Library Build Path).

    HTH,
    Matt Horn
    Flex docs

  • With the help of the library of BlackBerry

    First, I'm a BlackBerry is of project with project type library. After that, I do the new Application BlackBerry project this by first importing jar file. This is the step that I do to import the jar:

    1. right clik on project

    2. Add the file to the project

    3. change the filter to all files

    4. Select the jar file in the library project.

    After the above steps, I run the Application BlackBerry project on emulator and no luck. Cannot find the icon of the application on the emulator. Can anyone help?

    Third-party libraries that I joined always come with a cod file, a jad, alx and the jar file.  You use the container during the development as well as the cod and alx/jad during installation.  The cod file is signed by the issuing company.

    Which provides you with a template to use?

  • Access to the library data

    Hi all

    I have a problem, and I hope you can help me.

    First of all, I must say, I have an air application, which includes Flex library projects. I would like to read the XML file, which is in the library project, folder - this possible? I did have a problem with playback of files, which are located in the application folder, but I can't find a solution to the folder in the library folder. (each library project is merged into code, no RSL are used).

    Thank you very much and sorry for my English

    Hello

    You can do this by inserting the XML code in the library project.

    Code Project Library:

    package com.example.library{     public class MyClass     {          [Embed(source="MyFile.xml",mimeType="application/octet-stream")]          public static const MyXml:Class;
    
         }}
    

    Project code:

    var obj:Object = new MyClass.MyXml();var xml:XML = new XML(obj);
    

    You can now use the instance variable xml within your code project that you wanted.

    I do not recommend you to use this approach to load XML data. You can do that the loading of the external XML file using class URLLoader instead of embedded in your library project.

    I hope that helps!

    Best regards

    Pablo Souza

  • Creation of a library project in Eclipse using a 3rd party library

    Hello

    I am new to BB development so I hope someone can help me please. I develop my BB application using the plug-in for Eclipse 1.1.2 BB and Eclipse 3.5. I have a master project of UiApplication and some other type lilbrary projects that my main application is dependent on. However, I now need to use a third-party library. I added an external jar file to the main application and if he compiled I get an error when I tried to run in a simulator that the module is not found.

    So my main question is how to do, you use a third-party jar file? I searched the forums and found tips using Ant tools but I prefer to do it in the breast of eclipse or a tutorial, but this implies to use BB IDE but I would perfer to use Eclipse. I thought about it and found a suggestion to create a library project using the 3rd party jar file, but how does that happen? I added a lib folder to a project and the jar file, but I still had to add the jar file to my main application's java build path. To remedy this, I added the jar file in a src folder and made my main application dependent on the library project. However, when he tries to build it said the auditor does not, but I don't know where it is called for.

    I have a jar, cod and alx and jad for a third file. Please help, I am sure that this should be much easier that it turns!

    Since you already have the cod file, you can manually load the file of cod for your library of third party on the simulator by clicking the file menu in the upper corner of the Simulator window.

    Afterwards, when the deployment you need to regroup cod library third party distribution with your application folder AND add the additional appropriate lines in the making .jad file.

    (You need permission to do with third-party library).

    If you need to compile the .jar file in a .cod file so you can find instructions to do it here: http://developers.sun.com/mobility/midp/articles/blackberrydev/#4

    I hope this helps.

  • Flex Library Project does not update

    I created a flex library project, but when it is included in another project, I make some mistakes that make no sense.

    Picture 1.png

    The convertTime method so the mxml file present ControlPanel in the library project, but it's like Flex Builder cannot find them.  How can I fix?

    If you had the component in the library to the correct location, but you still have this error then you should check the library properties and see if this component is included in the source. Even if you the component folder, which is not necessary mean that it is included in the final result (it must be checked in the properties of the project where the source files are included).

  • Trying to access the electronic books in the library of our audience. Downloaded the software, but I get an error saying: the current version of the security of MP's 2.5.0.0 and I need 2.

    Trying to access the electronic books in the library of our audience. Downloaded the software, (Overdrive Media Console) but I get an error saying: the current version of the security of MP's 2.5.0.0 and I need 2.5.0.1. How to do only what I can read ebooks? People have suggested using IE, but I prefer to much HELP Firefox!

    Try to update the media player while using Internet Explorer. Windows Updates site uses ActiveX to perform "duties. Firefox does not support ActiveX.

  • Cannot open iPhoto Library as it says library version is too old - have tried to download the iPhoto library valuation tool - still does not open.

    Hi, I saved my photos on my passport, since I upgraded my phone and now I can't open the photos as it says that the version of the library is too old. I've uploaded my photos from my old laptop to my new office using my passport and still can't open. I tried to download the iPhoto library valuation tool but still does not open. Can someone please?

    Thank you

    I tried to download the iPhoto library valuation tool but still does not open.

    But install you and run the iPhoto Library upgrade?  Just the download is not enough.  You need to open the library in upgrader iPhoto library and let it prepare the library.  After installation, you will find the iPhoto Library upgrade in the "Utilities" folder in the "Applications" folder

  • Try to share your old laptop (XP) ITunes library. Unable to save or download the latest version of ITunes successfully.

    Our ITunes library is on an old laptop running Windows XP. We want to stop using this computer and want to move the ITunes library to our new computer laptop. However, due to the age of the current laptop, we seem unable to ITunes backup properly, or to download the latest version of ITunes. Therefore, we cannot share the music. Tried to put music on our IPod, copying over to the new laptop, but that did not work or the other. We get an error on the source files. Any suggestion would be appreciated.

    You must download and install iTunes 12.1.3 - this is output from output of sequence that enables support of iOS 9 for XP and Vista users (but lack of music to Apple and other features added in 12.2/12.3, which requires Windows 7 or a later version).

    If you simply want to transfer your iTunes library from your old computer to the new, you don't need iTunes to support it, unless you need consolidate the library as a preliminary step - see How to move your iTunes library to a new computer - Apple Support for more information.

  • Download the Version of the LabVIEW project

    Lets say I have a random LabVIEW file.  Can I use the Get file Type.vi in the VI.lib to understand what the file type.  It could be an Instrument, control, project, library, XControl or one bunch of others.  If it is a VI I can use the Version of VI get call node to find what version of LabVIEW, it was made with.  If it is a library I can use the Version of LabVIEW in the Library.Get file for the version, or if it's a project I can use the LabVIEW Version of the Project.Get file.

    What I find strange, is if I have a VI in 2013, and I run the node invoke for the version of LabVIEW reading but my development environment is 2011, he will say that the VI was marked by 2013.  But if I have a project saved in 2013 and use the node invoke for the version, and my development computer is 2011, I get an error indicating that the file version is later than the common mistake of version LabVIEW 1125.

    Is this a bug?  I mean I read the project file as text and analyzed with an XML parser version.  So why this function choke and die trying to read the most recent versions of file, but a VI and the library can be read without problem?

    There was a bug in the "Project.Get LabVIEW Version file" method. LabVIEW has been set in 2012.

  • Download of images allowed as versions of watermark in the library

    After that I have an image in Adobe Stock of license and save it in a library, the watermark low-resolution version is downloaded instead. Question started to happen a few months before; I've been waiting for a fix but nothing has changed. Download the image on the desktop was my solution - that always works for me, but it's far from ideal. Everything used to work perfectly, and the old pictures in the library that I still have a license show as a license and work as expected. Running MacOX El Capitan in Safari, Chrome and FF. See the screenshots below...

    Place the cursor on the image in the library - note that properly, it says "authorized":

    Screen Shot 2016-01-14 at 2.11.33 AM.png

    But there is an error dialog box when I double click on the image for editing:

    Screen Shot 2016-01-14 at 2.13.53 AM.png

    ... And when I drag it to an open document:

    Screen Shot 2016-01-14 at 2.19.08 AM.png

    Anyone got a solution for this?

    Hi Matt,

    I just tried your scenario and I don't get the behavior you describe. I get this message and can't seem to remove the image from my libraries as expected. If you see no similar behavior after running updates let us know.

Maybe you are looking for

  • Pls I need help to reset my bios of my computer compaq mini CQ10

    Pls I need help to reset my bios of my computer compaq mini CQ10-130se error fatal problem with CNU0014WZF TNX!

  • Stopping Subvi and returns a value of Subvi to MainVi

    Hi all I have a MainVI that calls a Subvi. The call in sub - VI of the MainVI is done inside a while loop. If the necessary calculation in Subvi time exceeds say 1 second I want to stop the Subvi and at the same time I want to feed a default value to

  • HP ProBook 450 G2: 8.1 for Windows does not start error 0xc000000f

    My friend laptop has developed an error on startup after use of less than a week. The error reads as follows: Windows could not start. A recent hardware or software change might be the cause. TI solve the problem: 1. Insert the Setup disk and restart

  • Xperia z3 compact showmode

    Hi guys I bought this phone, and because it was the last i had the phone show. ALD is also he reset each time when you do not touch. So I want to ask you if there is showmode or thomething else and how he do there?

  • How to connect my HP 3070 to Macbook Air wireless

    I have a new MacBook Air and want to connect to my HP Deskjet 3070, either wireless or cable.  I have the printer installation disc, but of course no output on the Mac.  Can anyone help?  I'm not very techie I am so afraid it will have to be simple!