Alerts within the app using


Great question and the answer is: Yes you can.

To do this, you must set a element to the blackberry.app JavaScript API in the config.xml file.  Once this operation is complete, you can then make a call to the blackberry.app.version property to retrieve the value of the 'version' field that is defined in your config.xml file.  Note You can even use blackberry.app.name to dynamically fill the value "MyAppName" in your about box.

function showAbout()
{
    var s = "v" + blackberry.app.version + "\n";
    s += "©" + blackberry.app.copyright + "\n";
    s += "By: " + blackberry.app.author + "\n";
    s += blackberry.app.name;
    alert(s);
}

To learn more about the APIs of JavaScript WebWorks, please see the reference guide:

http://www.BlackBerry.com/developers/docs/WebWorks/API/BlackBerry.app.html

See you soon,.

Adam

Tags: BlackBerry Developers

Similar Questions

  • Best way to move data from one page to another within the app

    Hi all as I started to write that and was way to complicated to explain in full without a novel.

    Brief description. I use the query string that begins in the parent (from href in JSON) window must then be moved in the iframe url when moving to other pages to avoid security as a page and iframe is conflicting http and https. and are not accessible... It seems that there must be a better way.

    So my question is what is the best way in a platform open to move data from one page to another?

    You do it this way, it's in the menu.json, but when you work within the iframe and if your loading pages in applications using vairable relative URLS cross they come through.
    Discovered only this framework using the browser and you can se the construction and scope of all URLS used.

    The apps are sandboxed you cannot access aything in the parent frame, this is a feature of derliberate if something you can not do.

    As I said, you have a few methods to your own data storage space.

  • That is the app use to lock my screen/mac instantly.

    There are times where I have to leave my house with my mac on. so in this case, I used to use an app called sleepless. It was a great app it prevents my mac to sleep automatically in addition, it provides a one-click screen lock service. It worked perfectly until I upgraded to the new OSX (El Capitan). so suggestions that either the app that I use now?

    I think your confusing question.

    skthq wrote:

    It prevents my mac to sleep automatically...

    It seems that 'Sleep' provides exactly the functionality you're looking for!  It is immediate, and, if you wish, it can lock your screen immediately.  It allows to "leave the House with my mac on."

    What exactly are you trying to do?  (Not to say how you try to do so, simply enter what you are trying to accomplish).

  • [request] Signature of the App using RBR, CPR, RRT

    Hi all

    I want to create a new version of the app. The app is built using Webworks 1.0. But when I tried to sign, it always displays error because I'm not using the same key signature. How to find the old signature key? Could we ask the signing key using the same ID?

    Thank you.

    Sorry for the late reply. It's for blackberry 10. I found the old barsigner and I could sign the application now.

    Thank you very much.

  • Send Email programmatically within the App (without invoking the electronic card)

    Hello

    I am building an app WebWorks to send email directly from the App (without invoking the electronic card).

    No there is no way to send an email using BlackBerry Webworks without calling card? I mean directly send the email from the app?

    Thank you

    Well Yes, I'm sure that you have only a few options (unless I'm out to lunch here..)

    1. send electronic card

    2. to run a server and use something like sendmail in PHP

  • Ability to upgrade to purchased within the app?

    When I worked on products for Xbox, games have the mechanism to make a demo which could be converted into full version without downloading a different version. Anything like that planned for the Playbook applications? Or should I just do a demo and a full version separately?

    In principle, this can be done using the SDK of payment services. You would make the game free of charge, but include all the assets to the full version. In the application, the user would be able to buy a 'virtual' product match all the features, the app would then open by storing some Pavilion in its app-storage area.

    In practice, they took the payment of the last (1.0.1) SDK API so we do not know what they expect that, at this stage.

  • that is the app uses adobe to capture the movie to work in photoshop etc for their podcasts?

    Hello

    can I know what app uses adobe, to capture the movie to work in photoshop cs6

    for their adobe tutorials and podcasts videos? I've heard, there must be an official app, but I forgot the name

    Thank you!

    In fact, we use a variety of products - feature that is the creation of the video.

  • That is the app use Port 631 IPP

    Hello

    I have a doubt, I know port 631 it's cups or ipp service, but I don't have any printer installed or configured, I recently format my Mac with the restore option as a Trojan horse, but know with only installed pages and numbers that I did with the network utility portscanning and without opening any program , I opened port 631 PPI, and do a netstat it seems local address localhost.ipp and *. * address abroad.

    My question is, which service or program might use this port if I didn't set up a printer or the printer shared on the local area network?

    Generally sound is not open, but I am concern when it is

    Thank you

    try from the command line, copy and paste:

    lsof - i: 631

    In the list use the procces xxxxx

    To release the port, kill the process using it:

    kill xxxxx

    Ref:http://www.catonmat.net/blog/unix-utilities-lsof/

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

  • Read within the App Version number

    Is it possible to access the version number of an application? If for example I wanted to display the version number on the page.

    If you're talking about your own version of apps you can get it using ApplicationInfo::version ()...

    http://developer.BlackBerry.com/native/reference/Cascades/bb__applicationinfo.html#property-version

  • Appstore opening within the app without having 2 or 3 screenflashes/popups/popunders

    Hello

    I want to link my application to another application on the appstore from apple.

    Here on the forum I found the following code

    navigateToURL (new URLRequest (http://itunes.com/apps/appname));

    It works fine, but when run you it, you get a window on the screen and that switches a couple of times before you get to the screen of the actual appstore.

    On the net I found also that you could eliminate this flicker/redirect/whatever... by not using not http:// , but the itms: / / or apps itms: / /

    As below

    navigateToURL (new URLRequest ("itms://itunes.com/apps/appname"));


    navigateToURL (new URLRequest ("itms-apps://itunes.com/apps/appname"));

    But if I use one of the 2 lines below, then absolutely nothing happens.

    Does anybody know a solution for this?

    Kind regards

    Bart

    You can go directly to the page of the product with a url like this:

    GTIS-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=406162881

    and you can take someone directly to a review with this kind of link:

    PLE of the ITMS-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Pur & id = 406162881 + software

    The ID would be the basis of the application of the product ID. I think that you will not get through to the review page, unless the application in question is installed on this device.

  • In El Capitan 10.11.5 keyboard shortcut to switch between windows within the app

    I just started to run El Capitan (10.11.5) and one of my favorite keyboard shortcuts seems to have disappeared: the keyboard shortcut that allow you to move from a windows in the same application. It used to be command + ' (tilde) but now that the shortcut does not work and I can't figure how to get it back.

    Any ideas? Thank you in advance.

    The shortcut is command + '

    At least it is for me.

  • OfficeJet Pro 8620: Scan Back and Front within the app from HP for Pro 8620

    Hello everyone,

    I have an Officejet Pro 8620 printer and I want to scan a document from the application into the computer.

    If I click HP Scan and I place my document on the glass. Once I did I want to scan in the same document, papers, but cela I want to scan double-sided and I want to put in the upper entry not the glass. How can I do? If I tell the program to scan, it is just a face... Do I always have to select two faces in the HP scan before scanning to scan both sides papers? Is it possible to change the mind afterwards and I scans double-sided document in order to have a single document?

    Thank you

    Hi @Printermania17,

    Thank you for visiting the Forums from the HP Support! I see that you scan using HP Scan and want to scan on both sides. Yes, you must select each time the option Print 2 sides before you scan, unless you save it as a preset.

    Have a look here to save the presets on Windows 7: change the printing in Windows settings here you will be walked grace to save the 2 faces in a preset if you don't have to select each time you scan.

    I hope this helps, let me now if you have more questions.

  • build the app using dps in indesign

    I want to rebuild my app in indesign and he keeps asking me to re-download all splash screens, etc... is it necessary whenever we make a change to our mobile application?  There is no way to keep the same settings and rebuild the content?

    Only if the application was built on the same machine and the location of your icons has not changed since the last build of your application, Viewer Builder should remember the path to the icons and ask not to re - new link icons.

  • Is it possible to reproduce a whole document within the app?

    I'm creating a model for a website that will have common elements on the home page and the gallery page. So I can create the home page and then duplicate it to a new document and make the necessary changes?

    PAula Jo

    Hi Paula,

    Yes. You can duplicate a model project absolutely. When you are in the view of the gallery. If you're on an iPad, at the top of every project there is a navigation bar; Tap the icon to duplicate (two places with a +). Who's going to duplicate your project. If you're on an iPhone, in this same bar of nav, instead of a series of icons, you will see an icon «...» ». Tap that. One of your options will be to duplicate the project. (Be super careful to not touch remove.)

    Let me know if this isn't answering your question.

    Sue.

Maybe you are looking for

  • Why my Mozilla Firefox window screen is black when I open it?

    When I open Mozilla Firefox, it starts off-white, then it becomes black. There is not anyone of buttons you can click, except the minimize, maximize and close buttons. Why is this happening?

  • Satellite Pro 6100: fan has stopped working

    I recently decided to copy out all my data from my laptop and it just stopped. It was very very hot, and the hard drive has not worked since. I put a new disc in and installed the software but it heats up really fast. My question is this all a result

  • 400 proDesk G3: any USB-Support - cannot perform a clean Installation

    Hey,. here have a Prodesk G3 400 HP and want to install Win7 x 64 ISO from Microsoft. ISO of Windows Installation is from the MSDN site. Used the optical drive first-> no Mousesupport USB Have created a key USB Flash Drive with Rufus-> burn ISO on US

  • Pavilion g6 - 1185st: Broadcom 4313GN 1 x 1 Wi - fi 802.11b/g/n

    Driver needed real Wi - Fi 802.11b/g/n 1 x 1 4313GN Broadcom. PCI\VEN_14E4 & DEV_4727 & SUBSYS_1483103C & REV_01 out 5.100.82.82, date 20.05.2011My system Windows 10 64 x HP Pavilion G6 - 1185stTHx

  • 10 windows Vista

    I can't know how I can go from Vista, to windows 10. We received a laptop from a friend and it has Vista on it. But I don't like. On our old laptop I have windows 10 and we love it. So the question is how I go from Vista to windows 10 on our most rec