About this group

The core value of this group is to bring developers up to speed with BB technology, concentrating on BB10.Exploring efficiency, beauty and power BlackBerry provides to its users by designing Apps that can be used globally and that improves developers life as it improves community life.

Contact Name: Michael Kimathi
E-mail:
  Contact the manager of this GroupSpaces group
Category: Other

News & Announcements

BlackBerry Developer Meet-up September (Built For BlackBerry Revitilized)

  • Saturday, 14th September 2013 at 3:30pm - 8:30pm
    Location: ihub Bishop Magua Building George Padmore Lane Nairobi, Nairobi KE

    Register Here

    • 12 people attended

Built For BlackBerry and Certification

  • Saturday, 3rd August 2013 (all day)
    Location: Ihub 4th Floor Bishop Magua Centre

    Now that everyone is looking forward to build application which qualifies for built for BB We…

    • 45 people attended

TAKE IT TO THE NEXT LEVEL

  • Saturday, 4th May 2013 at 10am - 5:30pm
    Location: IHub Nairobi

    It was amazing to get great ideas hit the floor as we get new developers started as well as…

    • 22 people attended

Previous items

RSS Feed

Charts for BlackBerry 10 Apps

http://www.jafed.xyz

Adding charts to apps has always been a problem for developers. There isn’t an easy solution that allows for simple integration of charts in a BlackBerry 10 app. To solve this problem I have developed, and added to the Cascades examples on GitHub, a project that shows how to insert a chart with a few simple steps, allowing the possibility of reusing existing code. The type of charts available are:

  • Bar
  • Line
  • Radar
  • Polar Area
  • Pie & Doughnut
  • Bubble

The system is based on the integration of a web page inside a QML page in which the chart will be shown using a WebView component. You create the datasets, the labels and the options of the charts inside a Javascript function in the QML page which is sent to the HTML page. In that HTML page, another Javascript function catches, evaluates, and uses them using the ChartJS library. Then it creates and shows the final chart inside the app. The HTML page can return a response message to the WebView that you could use for a several purposes: one of them is to encode the chart to Base64, to save the image of the chart.

charts-for-bb10-process

The Javascript library used is ChartJS. The library is simple to integrate and to use. See the link for the complete documentation and all relative examples: (www.chartjs.org).

Using ChartJS is simple and the official documentation of the library is very rich. The only modification that you must do to your HTML page is adding code to get the messages that the WebView sends (see this link: https://developer.blackberry.com/native/documentation/ui/webview/javascript.html to understand how the WebView communicates with a HTML page).

To catch the message containing all the data for the creation of the chart, we should insert the following Javascript function inside the HTML page. The body of this function will contain the code for the display of the chart.

navigator.cascades.onmessage = function onmessage(message) {
   /** create the chart here **/
}

In practice, we see that the HTML page will always remain the same, except some modifications for specific uses (for example, the settings of the tooltips, the visualization of the axis, and for the labels). The Javascript code included in the QML for the generation of the parameters that build the chart will change relative to our chart settings.

To generate these parameters you must insert a WebView component in the QML page with the path to the HTML file assigned to the URL property (it’s necessary to add local: at the path. Ex: “local:///assets/html/crazyCharts.html”). You must create a Javascript function (inside the project that is named as example: createChart) which has the task of generating the parameters for the chart. They’re the datasets that you want to display, the labels to visualize on the horizontal axis, and the options that you want to assign to the chart. This function will convert the created object into a JSON string, which is sent to the HTML page.

In the WebView event onLoadingChanged the function just created will be called to generate the chart when the HTML page loads.

To summarize:

  1. The createChart function generates everything necessary for the creation of the chart (datasets, labels, and options), converts the Javascript objects in a JSON string, and sends it to HTML page with the WebView postMessage event.
  2. The HTML page catches the event from the attached function with navigator.cascades.onmessage and creates the chart with the data decoded from the received JSON string.
  3. Optionally, the HTML page can return a Base64 format string that encodes the image of the chart.

We mentioned how the HTML page response sent back to the WebView may have several uses. Indeed, in some situations, it’s necessary to get the image of the chart just created to save or use it inside the app. For this we can use toBase64Image() a method, available from the ChartJS library, that encodes the image in a Base64 string.

After the creation of the chart, the Javascript function of the HTML page converts the chart into a Base64 string and sends it as the response to the WebView using the function navigator.cascades.postMessage(base64string); The WebView receives the response in the event onMessageReceived and passes the obtained string to a C++ method for the conversion and saving of the image in PNG format. This function takes the Base64 string and the path where the image will be saved as input parameters, and it returns true or false in case of successful or not.

In this way, it’s possible to use the image inside the app or to share it.

I’ve created an example project in the Cascades-Community-Samples on GitHub (https://github.com/blackberry/Cascades-Community-Samples) with the name ChartsForBB10. The app is composed of 7 Tabs, 6 of them for the creation of each supported chart type, and the seventh Tab for viewing custom charts and the optional saving function for each chart.

 


3 days ago
Developers: The BBM Enterprise SDK Is Now Live!

A young man multi-tasking

Earlier this month, we announced the BBM Enterprise SDK. Built upon the secure foundation and renowned communications infrastructure of BBM Enterprise, it represents our first foray into the fast-growing Communication-Platform-as-a-Service (CPaaS) market. And starting today, the BBM Enterprise SDK is available to any developer that wants to securely build enterprise-grade messaging, voice, and video functionality into their applications.

Productivity and efficiency aside, BBM Enterprise SDK allows developers to integrate the most secure solutions of its kind on the market. There are several reasons for this:

  • Each message is encrypted through a PGP-like encryption model in which the sender and recipient each have unique public/private encryption and signing keys chosen by the developer or ISV.
  • TLS encryption between any iOS or Android smartphone and BBM’s NOC infrastructure helps protect messages from eavesdropping or manipulation. This encryption can help developers’ apps work with regulations such as HIPAA in the US or the Directive on Data Protection in the EU.
  • On-device messages within the ISV app are encrypted through a Triple DES 168-bit scrambling key
  • Enterprise-Grade Security with BlackBerry’s renowned NOC architecture built with security in mind to meet the most demanding enterprise needs.

Together, these factors mean that any developer that uses the BBM Enterprise SDK to bake messaging into their applications can rest assured that the functionality is built with security foremost in mind for our partners, where they own and manage the encryption keys used. With the BBM Enterprise SDK, you can focus on integrating BlackBerry’s leading messaging functionality into your apps and giving your enterprise customers access to built-in secure messaging no matter what app their end users are using.

And thanks to BlackBerry’s IP-based network architecture, they’ll also have access to that functionality no matter where they’re using it.

Man Video Chatting With DoctorGiven the above, it should come as no surprise that the release of the SDK has generated praise from analysts and the media. The Next Web says it shows our “serious enterprise software ambitions.” Jack Madden feels the announcement is a great way for us to start 2017, and Industry Analyst Raul Castanon-Martinez of 451 Research notes that it places us in a strong position in the embedded communications market. Meanwhile, our developer partner, Yappn Corp., says “real-time automatic language translation delivered securely becomes possible with BBM Enterprise SDK and Yappn’s solutions framework integration.”

Imagine an ER physician connecting to a colleague across the globe for a consultation. Imagine an undercover officer coordinating a sting operation with his fellow officers. Imagine a team of designers in geographically-distant offices collaborating on a project without having to back out of their design app.

These are just a few of the things you can do with our new SDK. And it doesn’t even scratch the surface of what you can do with BlackBerry Dynamics, which gives you access to more than 4,000 certified ISV apps (and counting). We work closely with ISVs, customers, and developers to help you deliver the best experience possible across the board.

And this new release is just one more step that we’ve taken in doing so.BlackBerry Developer Summit Europe

The BBM Enterprise SDK will be made available for Android and iOS here (partners will need to have an account on the community and request to be added to the private area for this release). To learn more, please contact us at BBMSDK@BlackBerry.com and join our webinar on February 22 at 1 p.m. ET. To sign up for the webinar, please visit: blackberry.com/enterprise/bbm-enterprise-sdk. And if you are in Europe or the Middle East, please consider joining us at the BlackBerry Developer Summit Europe in mid-March – click on link to the left for details.


5 days ago
LIVE Enterprise Developer Webcast: BBM Enterprise SDK allows you to securely add voice, video, and messaging based workflows to your apps and services

Today, it is imperative that you provide rich, high touch experiences as part of your apps and services. Even in the most secure environments, users want immediate access to information from their peers and service providers. Providing this rich end user experience with real time communications will drive adoption and loyalty for your offerings. How can you provide multi-level communications securely within your apps? Enter communication platforms as a service (CPaaS). CPaaS allows developers to add voice, video, and messaging to their applications thru APIs. In this webinar learn best practices for how you can bring rich new interactions to your apps and services. Understand how CPaaS offerings can immediately bring new levels of interaction to your apps, and create new types of service models for your business.

Webcast topics we will explore:

  • How to integrate secure, enterprise-grade communications functionality into applications with ease
  • The advantages of using a proven IP-based communication stack for voice, video, and messaging
  • Best practices for leveraging a secure communications framework, which can free up valuable development time and resources
  • Understand the risks and rewards of providing real time, multi-level communications in your apps and services

BBM Enterprise SDK allows you to securely add voice, video, and messaging based workflows to your apps and services

DATE: February 22, 2017
TIME: 1:00 PM ET

Register Now

 


5 days ago

Create a site like this for your own group.
Take a Tour or Sign Up

Members

Events

February 2017
 
« »
Mon Tue Wed Thu Fri Sat Sun
30 31 1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 1 2 3 4 5

BlackBerry Enterprise Developers Kenya

Powered by GroupSpaces · Terms · Privacy Policy · Cookie Use · Create Your Own Group