read the version from inside the app

I am creating a control of update for my application. I'm using eclipse and setting the version by going to the blackberry project properties and changing the version there.  Anyway for me to access this info from in the program, or is there a better way for me to set the version of project of in the program in order to access and do not have to change it in several places?

Thank you!

Here is a code that I use in my screen 'About', which I think is what you want.

        ApplicationDescriptor ad = ApplicationDescriptor.currentApplicationDescriptor();
        int moduleHandle = ad.getModuleHandle();
        SimpleDateFormat sdFormat = new SimpleDateFormat("EEE, dd MMM yyyy");
        String buildDateString = CodeModuleManager.getModuleVersion(moduleHandle) + "-" +
                                 sdFormat.formatLocal(CodeModuleManager.getModuleTimestamp(moduleHandle));
        add(new RichTextField(_resources.getString(UI_ABOUT_BUILD) +
                              " " + ad.getVersion() +
                              ", " + buildDateString, Field.READONLY));

Tags: BlackBerry Developers

Similar Questions

  • Read VeriStand channel from inside the custom device that are not part of the custom device?

    Is it possible to read VeriStand channels from within a custom device VeriStand (RT Driver) that are not part of this custom device?

    For example, suppose I want to be able to configure a channel in my custom device to always be twice the value of a string of material that my user selects (I know, better/more simple ways to do this, but this is just a simple example ).  Can I do this from the device custom without programmatically create a mapping of the system? (I've done this before and it is messy and VERY prone to error of the user).

    Thank you!

    good point

    the channel ID (U64s) are not the same in the engine config of vs. Instead, you must set 'references to dependent item' in the config and then get these references in the engine.

    See the source jarrod linked, which makes it

  • installation: my version of elements adobe 12 is unable to read the raw files from my canon 70 d SLR.

    my version of elements adobe 12 is unable to read the raw files from my canon 70 d SLR.

    You need Camera Raw 8.2 or higher.

    12 items delivered with 8.1.

    Click Help > updates to update Camera Raw

  • •2.20: developers 'spamming' the App Store with many versions of similar applications will be removed from the iOS Developer Program

    Hi support them

    My application was rejected by the App store of Apple and the code rejection is 2,20 details as below:

    "We found that your application provides the same set of features as the other applications you have submitted to the App Store; It only varies the content or language. »

    The app review team suggested ""it would be appropriate to consolidate all issues of the same publication/magazine in 1 container app " "

    I was wondering how do I still do i container app magazine?

    Thanks in advance.

    Alvin

    You need a professional license or company DPS. Then you can you do a multi-folio application. A multi-folio application would be the container for all of your magazines folios.

    Digital Publishing Suite help | Understand the different types of applications DPS

  • Move data directly from inside the loop

    Is it possible to move data directly from inside a loop outside the structure of matter in real time? I would like a chart of the data in a structure of matter in real time outside the structure of the case. Ideally, it would include information of the real deal and then the waiting period as a '0' for false case. Attached is a version simplified VI I'm working. I tried the local variables, but they only read the first item for loop puts each cycle T/F. One idea is welcome including a complete change in the structure of the VI.

    Thank you!


  • get information from inside a trigger of the other tables in the schema even

    Addendum:

    ... Sorry I forgot: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64 bit

    *******************

    Hello

    I'm trying for a few hours to get information from inside a trigger to another table in the same pattern.

    My trigger is PSE_BKB. NUM_PHANTOM_BP

    I first tried a simple solution...


    CREATE OR REPLACE TRIGGER PSE_BKB. NUM_TR_PHANTOM_BP
    BEFORE DELETING, INSERTION OR UPDATE
    ON PSE_BKB. NUM_PHANTOM_BP
    REFERRING AGAIN AS NINE OLD AND OLD
    FOR EACH LINE
    DECLARE

    v_recht NUMBER (1): = 0;
    v_recht2 NUMBER (1): = 0;
    v_change_mitarbeiter NUMBER (1): = 0;
    v_recht_mitarbeiter NUMBER (1): = 0;
    v_typ varchar2 (20);
    v_obj_key varchar2 (11): = "gugus";
    v_ph_key varchar2 (11);
    -ph_key varchar2 (11);
    v_obj_keys varchar2 (4000): = ', ';

    anz_num NUMBER: = 0;
    anz_num_tmp NUMBER: = 0;
    anz_st_si NUMBER: = 0;


    BEGIN

    ...
    Select count (*)
    in anz_num
    of pse_bkb.num_objekt o
    where o.obj_key in
    (select distinct (ov.obj_key)
    of pse_bkb.num_objekt_verb ov
    where ov.phantom_key =: old.phantom_key
    )
    and o.typ = "NUM";

    ...

    Explanation: my trigger table is PSE_BKB. NUM_PHANTOM_BP.

    On the pse_bkb.num_objekt_verb of the table, I have a relationship 1: n to one or several object-key (field named obj_key!) on my referenced key: old.phantom_key. With this obj_key, I want to watch the weather, I have one or more lines in the table type num_objekt "NUM". So the internal selection gives me all the num_objekt_verb obj_key with my: old.phantom_key and with whom I count the number of lines I have on num_objekt with type "NUM".

    The problem is that the trigger does not see the table.

    I tried many variations.

    The latest version I tried was with a cursor inside the trigger definition as in the block of code below.

    For debugging purposes, I inserted a RAISE_APPLICATION_ERROR in the inner loop - see below. The v_obj_key variable is never defined, as in all the other variations, I tried-, I still see the predefined "gugus" in the declare section.

    It seems that oracle can not read other tables at this point. La: old.phantom_key is defined (in this simple example there would come a return obj_key).

    Thanks in advance for your help - and excuse my English.

    Trigger code:

    CREATE OR REPLACE TRIGGER PSE_BKB. NUM_TR_PHANTOM_BP
    BEFORE DELETING, INSERTION OR UPDATE
    ON PSE_BKB. NUM_PHANTOM_BP
    REFERRING AGAIN AS NINE OLD AND OLD
    FOR EACH LINE
    DECLARE

    v_recht NUMBER (1): = 0;
    v_recht2 NUMBER (1): = 0;
    v_change_mitarbeiter NUMBER (1): = 0;
    v_recht_mitarbeiter NUMBER (1): = 0;
    v_typ varchar2 (20);
    v_obj_key varchar2 (11): = "gugus";
    v_ph_key varchar2 (11);
    -ph_key varchar2 (11);
    v_obj_keys varchar2 (4000): = ', ';

    anz_num NUMBER: = 0;
    anz_num_tmp NUMBER: = 0;
    anz_st_si NUMBER: = 0;


    BEGIN


    Start
    declare

    cursor nums is

    Select obj_key
    of PSE_BKB.num_objekt_verb
    where phantom_key =: old.phantom_key;

    Start

    for the RC looping nums
    v_obj_key: = cr.obj_key;

    RAISE_APPLICATION_ERROR (-20099,' AGAIN 9 v_obj_key: ' | v_obj_key |) ': old.phantom_key ' | (: old.phantom_key);

    When the exit nums % NOTFOUND;

    Select count (*) in the pse_bkb.num_objekt anz_num_tmp where obj_key = v_obj_key and type = "NUM";
    anz_num: = anz_num + anz_num_tmp;
    end loop;

    end;
    end;

    Published by: user832075 on 14.01.2013 06:18

    The reason why you get count_n = 0 in tr_c is that there is no line in B with key_c = 17, to the moment you arrive at tr_c. The removal of B has already occurred, and since you're in a single transaction, the application for tr_c:

    select count(*)
      into   counter_n
      from   a aa
      where  aa.key_a in (select distinct(bb.key_a)
                          from   b bb
                          where  bb.key_c = v_ph_key
                         )
      and    aa.typ = 'n';
    

    'knows' that the row has been deleted then gets a number of 0.

    I added a set of instructions dbms_output to show the order in which triggers run, and that's what I get:

    SQL> delete from b_vw where key_a = 1 and key_c = 17 ;
    in trigger b_tr_vw
    In tr_b
    in tr_c
    delete from b_vw where key_a = 1 and key_c = 17
                *
    ERROR at line 1:
    ORA-20077: Remark: counter_n: 0 counter_s: 0 v_ph_key: 17 old.key_c: 17
    new.key_c:
    ORA-06512: at "OPS$ORACLE.TR_C", line 38
    ORA-04088: error during execution of trigger 'OPS$ORACLE.TR_C'
    ORA-06512: at "OPS$ORACLE.B_TR_VW", line 17
    ORA-04088: error during execution of trigger 'OPS$ORACLE.B_TR_VW'
    

    Thus b_tr_vw trigger is triggered first and deletes a B. trigger fires tr_b as part of this statement to remove and check against A, happening apparently so no error is triggered and succeeds the removal of B. Now tr_b_vw takes back control and deletes C. Since the B line which has key_c = 17 already deleted a control for counter_n > 0 and counter_s = 0 fails and raise you the-20002 error. Note that I'm assuming that the error of-20077 you lift is just to see the values and is not intended to be part of your actual code.

    Because I have really no idea what you're trying to accomplish here I can't offer a lot of advice that you might want to try entering two tr_c of the tr_b_vw trigger validation queries before deliver you the removal of b and put the counter_n > 0 and counter_s = 0 control under tr_b_vw to decide whether or not you want to remove.

    John

  • LR4.0 will not read the traces for iPhone App "Traces GPS"

    Hello

    I tried to understand, looking at this forum and another search on Google, why LR4 import tracklogs from the iPhone App GPS tracks.

    As far as I can tell, the tracklog information and format corect seems to me. Here is a sample of the app:

    <? XML version = "1.0" encoding = "UTF-8"? >

    < gpx version = "1.0".

    Creator = "traces GPS - " http://highorderbit.com "

    " xmlns: xsi =" http://www.w3.org/2001/XMLSchema-instance "

    " xmlns =" http://www.topografix.com/GPX/1/0 "

    " xsi: schemaLocation =" http://www.topografix.com/GPX/1/0 http://www.topografix.com/GPX/1/0/gpx.xsd' > .

    < time > 2012-03-18T 23: 20:59Z < / time >

    < trk >

    < name > Track Log 2 < / name >

    < number > 1 < / number >

    < trkseg >

    < trkpt lat = '+ 48.473296' lon = "-68.429246" >

    < model > + 65.511414 < / ele >

    < time > 2012-03-18T 23: 20:13Z < / time >

    < / trkpt >

    < trkpt lat = '+ 48.473379' lon = "-68.429238" >

    < model > + 63.738411 < / ele >

    < time > 2012-03-18T 23: 20:15Z < / time >

    < / trkpt >

    < / trkseg >

    < / trk >

    < / gpx >

    Any idea?

    Thank you

    Steve,

    The problem with the tracklog is the '+' in the specifications of the latitude. Remove the brands '+' the legible tracklog. Now, I'm not sure if a '+' is valid or not (http://developer.garmin.com/schemas/gpx/1.0/oxygen/index.html_h882410155.html), but for this time Jeffrey Geoencoding Plugin will not read the tracklog...

    Beat

  • I just bought an iPhone 4 and it's not let me download from the App Store because it says I need iOS 8 but the iPhone 4 does not support 8, how do I get apps?

    I just bought an iPhone 4 and now I can't download apps from the App Store because it says I need iOS 8 but the iPhone 4 supports ios 8, how can I download apps?

    Return the iPhone 4 and buy an iPhone more later from model.

    The iPhone 4 does not support any version of iOS iOS 7.1.2 above.

  • How can I transfer files from aol safari app to the mail app?

    People,

    I'm trying to transfer my files from my aol email in safari for my mail app on my Mac Air 13?  What should the steps I'm indoing this?

    Thanks in advance

    AOL provides the documentation here

    https://help.AOL.com/articles/how-do-i-use-other-email-applications-to-send-and-Recevoir-my-AOL-mail

    Excerpt:

    Mail for Mac (Apple)
    Set up your AOL email account or email

    1. launch the Mac Mail using the mail icon on your dock.

    2. click on the menu of messaging in the upper left corner of the screen next to the symbol of the Apple.

    3. click on accounts...

    4. scroll until you see AOL on the right side of the window and click on it.

    5. Enter your AOL email account information in the fields.

    6. click on connect / setting up, depending on which version of Mac OS x you are using.

    7. once the account information has been validated you will be invited to a new window. Select the applications you want activated by placing a check mark in the box next to the application.

    8. click done once, finished activating/deactivating the Apps.

    That's all! Your AOL email account has been set up in the Mac Mail.

  • All Mac OS x versions marked as downloaded in the App Store.

    I was going to check something another user and noticed all Mac OS x versions dating back to Lion are marked as "Downloaded" tab purchases despite having removed installers there are chandeliers. Any thoughts?

    TIA

    Never mind. I thought that if installers were removed from my iMac that they is marked as "Download". The installers have been saved on an external drive that the App Store can see apparently.

  • Cannot download updates to buy apps from the app store

    Apple support communities, someone please help on my iMac I can't download updates of the apps I bought in the app from app store. iMac 21.5 in mid 2010 processor 3.06 ghz intel core i3 with 16 GB of memory and a hard disk of 2 TB. Please email me at * with some help how to solve this problem. I even reinstalled the software system and update of OS X EL Capitan version 10.11.4 now running. Thanks in advance for your help.

    Carlos Zaldivar

    < email published by host >

    Not a good idea to post personal information on a public site.

    This is a user help forum, and help you here through these threads. Can you explain what keeps you update your applications?

    I'll ask the hosts to change your personal information.

    See you soon,.

    GB

  • "this identifier apple is still used with the app store - 3times deducted from my credit card.

    I am trying to connect to the iStore, but I receive the following message: "" this identifier apple is still used with the app store.

    I following the registration process, but nothing happened just 3times deducted from my credit card...

    I filled the fields are all required and still does not work, just my credit card losing ~ $7 Dollar (2.2 dollar every time with the following msg: ITUNES ITUNES.COM/BILL.) COM READ) I don't want to spend more money for a simple registration... Thanks for help.

    They are fresh from holding temporary store, your card issuer should remove in a few days or more: on the payment card's authorization in the iTunes Store - Apple Support

    A card having a chance to be accepted it must be registered with the same name and address (including the format and spacing etc) that you have on your iTunes account and have been issued by a bank in the country where you are (and, therefore, the country that sits on your iTunes account). If it is you can check with the card issuer to see if it is them who are in decline. Or do you have another card you could try?

    Or to create a new account without giving details of the payment: create an iTunes Store account, App Store and iBooks Store without credit card or other method of payment - Apple Support

  • How can I contact Apple on their impression of being too light and too small for me to read on the App Store?

    Dear Apple Inc.:

    Could Apple or someone please re - write, or send me this Web page on Apple Apps again in a larger type darker so I can read it?  I wrote my full address, e-mail address, telephone number and hours when I'm usually home at the bottom of a page and tried to send it to Apple, but don't really know where to send it as apple.com/feedback/ doesn't seem to work.  I'm an old doctor with a vision 20/20 to the left eye and vision of 20/40 in the right eye.  I bought Apple hardware and software for an amount over $30 000,00 since I started in 1986, and possessed a large number of shares of Apple since 1984.  Many of the biggest private to Apple hardware and software purchases comes from older people like me.  There is no reason that Apple cannot leave us the possibility to make the type larger and darker.

    There are millions of us who need larger type darker than updates and others on the App Store.

    Option/⌘ + / = (is Option/command/Equals if not print) won't the darker type.  Although it gets bigger, it causes aliasing (anti-aliasing).

    We are all end users here like you

    You can give your comments to http://www.apple.com/feedback

  • When I buy an app on the app store from my iPhone download the app even for my macbook?

    When I buy an app on the app store from my iPhone download the app even for my macbook?

    If there is a version of Mac OS X, and if it's a paid app, you buy the version of it at its normal price. The developer must create and maintain separately.

    (139412)

  • How to read the Notes of Apple recovered from the HARD drive has crashed

    I tried to use DiskWarrior 5 to repair the hard drive that crashed on the previous laptop I was using (Macbook Pro mid-2010 7.1) last year.  I was running OS X 10.9 Mavericks for sure, and I'm almost certain that I had updated to OS X 10.10 Yosemite at the time where the hard drive crashed.  DiskWarrior does not completely fixing the reader, but I was able to recover most of the important files that I needed back.

    The only thing that I still have to get back that I really wanted were my Notes of Apple (not sticky).  I could save a few files com.apple.Notes with these files:

    NotesV1.storedata

    NotesV1.storedata - wal

    NotesV1.storedata - shm

    I tried to add the .html extension and open it in TextEdit, and Safari, and I see a lot of code, but none of my actual notes.  I noticed at the top of the NotesV1.storedata file, it says: SQLite 3 format, which leads me to believe that SQLite might serve to open/decode what I so that I can actually read.  I don't know anything about SQLite except that it can be opened and used in the Terminal, and it is already installed by default on my current computer which is a Macbook Pro mid-2012 (9.1).

    Here's a sample of what I see if it helps.

    Someone who knows what I'm doing and who also knows what they are doing can give me instructions step by step on how I can open these files with SQLite in the terminal, or decode, or something.  And no, unfortunately I do not have a back-up hard drive anywhere, and I was using iCloud in time.

    SQLite is a database format.

    Your Mac must have an integrated tool to read these files, it's a Terminal command that has this manual...

    https://developer.Apple.com/library/Mac/documentation/Darwin/reference/ManPages/ man1/sqlite3.1.html

    If it's too hard, you can try an app like...

    https://www.sqlitepro.com/

    .. .or one of the many that are discussed at...

    http://StackOverflow.com/questions/100959/Mac-SQLite-Editor

    You must open the "NotesV1.storedata", you may have to search in different tables to find relevant data, the data will be broken so that the pieces are unique, it is usually how are structured databases, if you need everything intact (as dates change etc) you need to perform queries to retrieve relevant items. Otherwise, you can export in CSV or other formats via this application.

    I recommend you change the original & working on a copy, just in case you save the changes.

    I don't think that this database is encrypted, but it is possible so post back if all of this sounds like gibberish. Also keep in mind that the data should not have images or other multimedia files that can be put in place, sometimes they are kept in databases as files.

    Another option is to find the location that the Notes.app stores these databases in your user account, you may be able to place these copies & get the app to read. Ideally, you would have a similar version of the operating system installed to do this.

Maybe you are looking for