One of the unique new features in BlackBerry 10 is the the minimized view of an app, also called the active frame. By default it is a smaller version of whatever the app looks like when maximized, however app developers have the ability to change it. Not only can it be changed to a static view, it can also be dynamically updated from signals within the code. Both of these features seem to be under utilized in most apps I see in BlackBerry World currently. Maybe nobody knows about it or maybe they don't know how to implement it... Well that's about the change!
Few coding active frames facts:
- Can be static or dynamic
- For all-touch smartphones, the active frame is 334 pixels wide by 396 pixels high
- For smartphones with a physical keyboard, the active frame is 310 pixels wide by 211 pixels high
- A complete list of best practices when creating active frames can be found here.
Next, I've put together a video tutorial showing BlackBerry's stock example of the dynamic actives frames in action, then took it a step further and tied it to a QTimer to have the active frame update itself. I have added both the code for DynamicFrame and ActiveTimer to my CrackBerry Weekend Coder Github repository. One note that I did change the ActiveTimer JavaScript a little bit in the uploaded project to account for the timer stopping when hitting zero. As always feel free to sound off in the comments below with any questions.
- More information / Download DynamicFrame from Github
- More information / Download ActiveTimer from Github
Read more
BlackBerry 10 device simulators updated to 10.3.1.2072
A little something for BlackBerry developers. If you head over to the BlackBerry developer site, you'll find a new batch of device simulators available for download. The last release shows them as running v10.3.1.2072 which should help with testing out any apps you're working on. As always, they're available for Window, Mac and Linux via VMWare images. There is no notable changes or...
BlackBerry OS 10.3.1.1949 device simulator now available
Just a little bit of a heads up for any developers (and those who just like to play around) who might not have spotted the update as of yet. You can now download the latest device simulator from the BlackBerry website, which sits at OS 10.3.1.1949. Keep in mind, if you plan on giving it a look you will need some VMWare tools in order to run it all but you can find the full details on...
Watch the application infrastructure for BES12 webcast
If you missed out on the application infrastructure for BES12 webcast on December 4th, you can now catch the replay of the event on your own time. We'll review the mobile app infrastructure built into BES 12 including how corporate systems can minimize risk when opening access to apps outside their firewall, and ensure data is secure through its journey from inside the corporate...
Application Infrastructure for BES 12 webcast
Creating apps for Enterprise customers can keep a developer busy but when doing so corporate data and systems need to be carefully managed. If you're building apps for BES12 customers, BlackBerry is hosting an application infrastructure for BES12 webcast on December 4, 2014, at 2 pm – 3 pm EST to help educate corporate app developers about best practices. We'll review the mobile...