Deprecated: Non-static method Joomla\CMS\Application\SiteApplication::getMenu() should not be called statically in /home/berryinf/public_html/templates/gk_magazine/lib/framework/helper.layout.php on line 152

Deprecated: Non-static method Joomla\CMS\Application\CMSApplication::getMenu() should not be called statically in /home/berryinf/public_html/libraries/src/Application/SiteApplication.php on line 275

ListViews...within a ListView

I've been trying to figure out how to put ListViews within a ListView for certain use-cases that warrant the UI to be able to swipe through multple screens, either horizontally or vertically.  While a ListView on it's own is usefuly for showing various different items in a nice layout, there are many instances where it may be benificial to incorporate another ListView within a ListView.  I personally incorporated into my BetaZone app, Kloudmix, which has a different UI for Keyboard devices and portrait devices for userpages and profiles.  The main use-case that most will probably be familiar with is the featured carousel, where a screen has a vertical listview with one item being a horizontal listview that let's the user swipe through various featured items.  Another use-case may be user profiles, allowing users to swipe through different panes or containers of information.  Long story short, I spent some time tweaking around with it and reading a support forum post to create this nice and simple tutorial and sample app for you!


Simple Active Frames

One of the features that make Native Cascades stand out from Android ports, as well as from competitors like iOS is Active Frames.  Active Frames are a useful tool that can provide important app information to users in the active frames pane on BlakcBerry 10.  Information such as recently viewed articles in an RSS feed app, or latest tweets can provide useful information for users without having to enter the application.  Developers have the ability to pick and choose what they want to show users in active frames and aren't restricted to one definition or use-case.  I personally like to add a nice cover image to the active frame even if I'm not going to invest the time into coding some important information for my active frames.  It looks more professional and visually appealing to users to give them that all-around BlackBerry 10 experience.


Localizing and translating your application


This tutorial focuses on adding localization and translations to your native Cascades app.  Many of you already know that Blackberry has a tremendous following outside of the English speaking world.  Places like the Middle-East, Indonesia and South America have a great BlackBerry userbase.  Even though you could be building an awesome app it's important to understand who your customers are and how you can cater to them.  If you're building a complicated app with lots of labels and text throughout you may want to consider localizing your application and providing translations for other languages. It's a feature that I like to incorporate into my applications so that users can understand what's going on while using my apps.


In-App Purchases Made Simple

The process of adding in-app purchases to a Cascades app has proven daunting for many of you out there, but today I will attempt to make life easier for all of you.  About 6 months ago, when I first attempted to add in-app purchases to a Cascades app, there was a lot of head scratching and staring at the screen, but eventually it clicked well enough for me to implement.  After that, I spent a lot of time really wrapping my head around the code, and I am finally at a point where I can simplify the presentation of this code. Interested? Keep reading...


Basic Web Browser in Cascades

So, it's been a while since I have been able to get any code together for you guys, but now that MockIt! has launched officially, I should have time to get some posts together (big post coming within a few days!).  Also, Brandon Orr (@elbranduco) will be getting some awesome tutorials together for you Cascades devs.

Today, I made a small project for a friend of mine, and thought some of you might find it helpful.  The app is a simple one page web browser built in Cascades.


JavaScript Functions and Preserving Data

Cascades is a framework built on top of Qt, a C++ application framework. Qt allows for fantastic user interfaces with a custom language based on JavaScript called QML, or Qt Modeling Language. Not only is QML based on the structure of JavaScript, but it allows us to use JavaScript in our code.

Coming from a web design background, I have almost ZERO experience with C++. I'm not saying it's difficult to use or challenging, I'm just personally not use to it. When I learned that I can opt for JavaScript to do simple functions instead of C++ I was ecstatic, I just wasn't sure where to start.

In this tutorial I'm going to walk you through making a random number generator using some JavaScript MATH functions as well as creating our own.


Quick Tip: Invoking the Media Preview "Card" [updated 12-31-2013]

The Invocation framework is one of the hallmarks and great strengths of the BlackBerry 10 operating system, and can allow us developers to easily integrate with core and third-party applications. To make the process easier, in this tutorial I will show you how to implement an Invocation Manager that you can can call at will from inside your QML to invoke just about any card or app available.

As usual, we will be starting with a standard empty Cascades project and working from there, so in Momentics, start a new empty project and name it whatever you wish (I will be using 'InvokeMediaCard'), and I will be using an API level of 10.2. 



Fundamentals Brief: Calling C++ functions from QML

This tutorial is the first in a series of very brief and concise tutorials covering some basic fundamentals needed to develop BlackBerry apps using Cascades.

There comes a time when a Cascades developer may need to utilize C++ in conjunction with his or her QML. Many developers use JavaScript for app logic and sidestep using extra C++ logic entirely. Having the ability to use JavaScript  and/or C++ in conjunction with QML is one of the strenghts of Cascades development, so pick your poison. That being said, this tutorial is meant to be a brief and very basic introduction to the "how" when it comes to calling C++ functions from QML and returning the result of the function back to your QML.


Keeping it pithy: Toasts in Cascades

What is a toast? Well according to BlackBerry...

"A SystemToast displays a small message that expires and disappears after a predefined amount of time. This message provides users with information and allows them to continue with the application after the toast expires."

You've seen toasts when you clear your browser history or delete an attachment from a BBM and in many other places throughout BlackBerry 10. When dealing with toasts and any other user prompts, developers need to be cognizant of the user experience and of the fact that users typically do not want to be interrupted (at least not too frequently).

Subscribe to this RSS feed
Subscribe to the official OSBB BBM Channel!



Back to top