Skip to main content

BlackBerry Web Works on Blackberry OS 5

I am trying this for few days. Blackberry web works says its support Blackberry OS 5+. So i taught i create something with JQuery Mobile. After few hours of code my App is done.

but the result is really different than the result in the simulator. simulator is using Ripple on the Google Chrome. the result was its seems the CSS for the JQuery Mobile is not working. and the first loading of the app took forever.

thats why i am going to write a few tutorial, a very simple tutorial of Blackberry OS 5+. this tutorial will begin from simple to complex. i hope i can add few jquery on it.

i once try to create webworks app to use the camera and capture a snapshot. but the camera is not event firing.

For the very first app its always HelloWorld App.



HelloWorld

this is the result image got from Ripple Emulator from Google Chrome.



this is my index.html.

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title> BlackBerry Webworks Tutorial for OS 5</title>
    </head>
    <body>
        <div id="content">
            <h1>BlackBerry Webworks Tutorial for OS 5</h1>
            <p>
                This will be home for every test that i made for blackberry os 5. 
                i don't know why the webworks cant be use for OS 5.
                so this is my hello world.
            </p>
        </div>
    </body>
</html>


this is my config.xml

<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets"
        xmlns:rim="http://www.blackberry.com/ns/widgets"
        version="1.0.0.0">  
    <name>BlackBerry Webworks 5.0 Tutorial</name>
    <author>Riza Nurhadi</author>
    <description>Tutorial App</description>
    <icon src="images/riza_logo.png"/>
    <content src="index.html"/>
    <rim:loadingScreen backgroundImage="images/background.png" foregroundImage="images/background.png" onLocalPageLoad="true"/>
    <rim:orientation mode="auto" />
</widget>


with additional 2 image with 4 Kb each so the file size no more than 8 Kb. but the end result after packaging and all the file become 250 Kb. after installed on my phone, im tryin to execute the app. the loading is doesn't really long its only took about 2~3 sec.

and still with hello world. im gonna try to attach jquery.min.js. which have less then 100kb in size

this is now my index.html

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title> BlackBerry Webworks Tutorial for OS 5</title>
        <script type="text/javascript" src="jquery.min.js"></script>
    </head>
    <body>
        <div id="content">
            <h1>BlackBerry Webworks Tutorial for OS 5</h1>
            <p>
                This will be home for every test that i made for blackberry os 5. 
                i don't know why the webworks cant be use for OS 5.
                so this is my hello world.
            </p>
        </div>
    </body>
</html>

The Files for OTAinstall become 350kb. and after installing it in my Javelin Blackberry 8900 the loading become a lil bit longer its around 10 ~ 12 secs.

if you using OS 7.1 Device 9860 the loading just took 3 sec. so if you want to create WebWorks app just make sure that your client will be using a new generation of BlackBerry. if you just using BlackBerry OS 5 Device such as Javelin 8900 and Torch 1. you should create with JAVA Native.

So right now i will be creating 2 App for BlackBerry. The Native Way and The WebWorks Way.

I think its for the best.

Comments

Popular posts from this blog

JavaScript Real Time Calculation

I've been around looking for javascript that can do Real Time Calculation. javascript real time calculation, javascript real time calculation textbox. by some lucky keywords i found this code. this is exactly the code that i want. it really do the real time calculation. and it doesn't need onChange or OnBlur function. Just try it Example + = this is the javascript code <script type='text/javascript' > function startCalc(){   interval = setInterval("calc()",1); } function calc(){   one = document.autoSumForm.firstBox.value;   two = document.autoSumForm.secondBox.value;   document.autoSumForm.thirdBox.value = (one * 1) + (two * 1); } function stopCalc(){   clearInterval(interval); } </script> this is the html code <form name="autoSumForm">   <input class="right" type=text name="firstBox" value="" onFocus="startCalc();" onBlur="stopCalc();"><br>

Learning Odoo 13 Module Development and Review

USING ODOO 13 Introduction This writing supposed to be a cheat sheet for helping myself to learn about Odoo, Odoo Development and also anyone who want to read this.   Odoo already have a good documentation in their websites you can check it here https://www.odoo.com/documentation/13.0/ What you need Odoo source you can get the source from odoo.com or github https://www.odoo.com/page/download or https://github.com/odoo/odoo. Right now I'm using the  https://www.odoo.com/page/download  . I did using the github twice so I'm already familiar with it but now i want to explore something new and maybe we will find something. Python v3.6++ (intermediate level). https://www.python.org/downloads/windows/ You can learn some basic “web development with python” first if you still new at programming. Search with google. Postgresql https://www.postgresql.org/download/ I’m using win Os for development and Visual Studio Code for IDE What should you re

BlackBerry ListField Tutorial Part 2

Blackberry ListField with Clicked Row this time i create based on rtm4bb code. it used manager as TableRowManager to create the field for each row. first i create MenuListField.java