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

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

MySQL and Java Developer's Guide

Now we begin the second book and thats called MySQL and Java Developer's Guide. Book before this is quiet advance for beginner but still for beginner. And i notice that previous book had only 4 chapter. Ill read that book again. Okay Lets start. This book consist MySQL and Java plus Connector/J that connect Java to MySQL. This book is perfect for beginner but not beginner in programming. I think that this book is a hardcore book. Everything they wrote even if they use GUI Object like form and button they only use a "Notepad" or should i say "Text Editor". i really love this book. From this book you need to install three things to make the code in the book work. a. Install mySql b. Install Java SDK @ http://java.sun.com/j2se/1.4.1/download.html. c. Installing Connector/J @mysql.com version 3.0 thats from the book. I use this : jdk-1_5_0_11-nb-5_5-win-ml.exe notice the nb-5_5 that means itll install netbeans 5.5. netbean 5.5 is IDE for jdk 1.5. its devel...