8/22/2019 Module 03 3 - Previewing Your Application in BlackBerry Environment
1/25
Copyright International Business Machines Corporation 2011, 2012. All rights reserved.
US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
15 June 2012
IBM Worklight V5.0Getting Started
Module 3.3 Previewing Your Application in BlackBerryEnvironment
8/22/2019 Module 03 3 - Previewing Your Application in BlackBerry Environment
2/25
Copyright International Business Machines Corporation 2011, 2012. All rights reserved.2
Trademarks
IBM, the IBM logo, and ibm.com are trademarks or registered trademarks ofInternational Business Machines Corporation, registered in many jurisdictionsworldwide. Worklight is a trademark registered in the United States to Worklight, anIBM company. Other product and service names might be trademarks of IBM or othercompanies. A current list of IBM trademarks is available on the Web at Copyright andtrademark information at www.ibm.com/legal/copytrade.shtml.
Java and all Java-based trademarks and logos are trademarks or registeredtrademarks of Oracle and/or its affiliates.
Other company products or service names may be trademarks or service marks ofothers.
This document may not be reproduced in whole or in part without the prior writtenpermission of IBM.
See http://www.ibm.com/ibm/us/en/
About IBM
8/22/2019 Module 03 3 - Previewing Your Application in BlackBerry Environment
3/25
Copyright International Business Machines Corporation 2011, 2012. All rights reserved.3
Agenda
Adding a BlackBerry environment
Brief review of the BlackBerry environment folder structure
Running your application on the BlackBerry Ripple Emulator
Running your application on BlackBerry Simulator and BlackBerry
handsets
8/22/2019 Module 03 3 - Previewing Your Application in BlackBerry Environment
4/25
Copyright International Business Machines Corporation 2011, 2012. All rights reserved.4
Adding a New Environment
Click the IBM Worklight icon and then Worklight Environment to add an
environment to your application
8/22/2019 Module 03 3 - Previewing Your Application in BlackBerry Environment
5/25
Copyright International Business Machines Corporation 2011, 2012. All rights reserved.5
Adding a New Environment
Select the BlackBerry check box and click Finish
8/22/2019 Module 03 3 - Previewing Your Application in BlackBerry Environment
6/25
Copyright International Business Machines Corporation 2011, 2012. All rights reserved.6
Adding a New Environment
A blackberry folder is automatically added
8/22/2019 Module 03 3 - Previewing Your Application in BlackBerry Environment
7/25
Copyright International Business Machines Corporation 2011, 2012. All rights reserved.7
Agenda
Adding a BlackBerry environment
Brief review of the BlackBerry environment folder structure
Running your application on the BlackBerry Ripple Emulator
Running your application on BlackBerry Simulator and BlackBerry
handsets
8/22/2019 Module 03 3 - Previewing Your Application in BlackBerry Environment
8/25
Copyright International Business Machines Corporation 2011, 2012. All rights reserved.8
Review of the BlackBerry Environment Folder Structure
The BlackBerry environment consists of the
following folders:
css properties specified here override CSSfiles from common folder.
images BlackBerry-specific images can be
added here. If image with same file name
exists in the common folder it is overwritten in
the BlackBerry application.
js JavaScript that can extend, and override
if required, JavaScript from common folder.
8/22/2019 Module 03 3 - Previewing Your Application in BlackBerry Environment
9/25
Copyright International Business Machines Corporation 2011, 2012. All rights reserved.9
Review of the BlackBerry Environment Folder Structure
The native folder contains automatically
generated, ready to be packaged, BlackBerry
app code
The css, html, and js files in the native folder
are regenerated every time the application is
built, so any changes made to these files are
lost.
The nativeResources folder containsresources that are used by the native code.
8/22/2019 Module 03 3 - Previewing Your Application in BlackBerry Environment
10/25
Copyright International Business Machines Corporation 2011, 2012. All rights reserved.10
Agenda
Adding a BlackBerry environment
Brief review of the BlackBerry environment folder structure
Running your application on the BlackBerry Ripple Emulator
Running your application on BlackBerry Simulator and BlackBerry
handsets
8/22/2019 Module 03 3 - Previewing Your Application in BlackBerry Environment
11/25
Copyright International Business Machines Corporation 2011, 2012. All rights reserved.11
Previewing in Ripple
Right-click your app and then Run As > Build all and deploy to
build it
Open Worklight Console and choose preview as BlackBerry
A preview page automatically opens
Copy the preview page URL and paste it into the Ripple address bar
8/22/2019 Module 03 3 - Previewing Your Application in BlackBerry Environment
12/25
Copyright International Business Machines Corporation 2011, 2012. All rights reserved.12
Previewing in Ripple
8/22/2019 Module 03 3 - Previewing Your Application in BlackBerry Environment
13/25
Copyright International Business Machines Corporation 2011, 2012. All rights reserved.13
Agenda
Adding a BlackBerry environment
Brief review of the BlackBerry environment folder structure
Running your application on the BlackBerry Ripple Emulator
Running your application on BlackBerry Simulator and BlackBerry
handsets
8/22/2019 Module 03 3 - Previewing Your Application in BlackBerry Environment
14/25
Copyright International Business Machines Corporation 2011, 2012. All rights reserved.14
Packaging Your Application
As described in module 2.3, BlackBerry WebWorks SDK must be
installed in order to package an application for a simulator or handset
In BlackBerry Ripple, click wrench and then Settings
8/22/2019 Module 03 3 - Previewing Your Application in BlackBerry Environment
15/25
Copyright International Business Machines Corporation 2011, 2012. All rights reserved.15
Packaging Your Application
Complete the following values:
Path where
BlackBerry
WebWorks SDK isinstalled
8/22/2019 Module 03 3 - Previewing Your Application in BlackBerry Environment
16/25
Copyright International Business Machines Corporation 2011, 2012. All rights reserved.16
Packaging Your Application
Complete the following values:
The root folder of
your project. To find
the root folder, right-click the native folder
in your Eclipse
blackberry
environment and thenProperties.
8/22/2019 Module 03 3 - Previewing Your Application in BlackBerry Environment
17/25
Copyright International Business Machines Corporation 2011, 2012. All rights reserved.17
Packaging Your Application
Complete the following values:
The root folder of
your project. To find
the root folder, right-click the native folder
in your Eclipse
blackberry
environment and then
Properties.
8/22/2019 Module 03 3 - Previewing Your Application in BlackBerry Environment
18/25
Copyright International Business Machines Corporation 2011, 2012. All rights reserved.18
Packaging Your Application
Complete the following values:
The name for your
archive and the folder
to output the
application to. A
folder outside your
project must bespecified.
8/22/2019 Module 03 3 - Previewing Your Application in BlackBerry Environment
19/25
Copyright International Business Machines Corporation 2011, 2012. All rights reserved.19
Packaging Your Application
Complete the following values:
To run your app on a
BlackBerry handset, it
must be signed with a
BlackBerry developercertificate. In this
case, specify your
certificate password
here. Signing is NOTrequired to run the
application in the
BlackBerry
Simulator.
8/22/2019 Module 03 3 - Previewing Your Application in BlackBerry Environment
20/25
Copyright International Business Machines Corporation 2011, 2012. All rights reserved.20
Packaging Your Application
Complete the following values:
Optional: You can
select a simulator that
is automatically
invoked after yourapplication is
packaged
8/22/2019 Module 03 3 - Previewing Your Application in BlackBerry Environment
21/25
Copyright International Business Machines Corporation 2011, 2012. All rights reserved.21
Packaging Your Application
After the package settings are defined, click wrench again, and then one ofthe Package options
You can find additional information about application packaging on theBlackBerry Developer website
8/22/2019 Module 03 3 - Previewing Your Application in BlackBerry Environment
22/25
Copyright International Business Machines Corporation 2011, 2012. All rights reserved.22
The Result
8/22/2019 Module 03 3 - Previewing Your Application in BlackBerry Environment
23/25
8/22/2019 Module 03 3 - Previewing Your Application in BlackBerry Environment
24/25
Copyright International Business Machines Corporation 2011, 2012. All rights reserved.24
Support and comments
For the entire IBM Worklight documentation set, training material and online forums where you can post questions, see the IBM website at:
http://www.ibm.com/mobile-docs
Support
Software Subscription and Support (also referred to as Software Maintenance) is included with licenses purchased through PassportAdvantage and Passport Advantage Express. For additional information about the International Passport Advantage Agreement and theIBM International Passport Advantage Express Agreement, visit the Passport Advantage website at:
http://www.ibm.com/software/passportadvantage
If you have a Software Subscription and Support in effect, IBM provides you assistance for your routine, short duration installation andusage (how-to) questions, and code-related questions. For additional details, consult your IBM Software Support Handbook at:
http://www.ibm.com/support/handbook
Comments
We appreciate your comments about this publication. Please comment on specific errors or omissions, accuracy, organization, subjectmatter, or completeness of this document. The comments you send should pertain to only the information in this manual or product andthe way in which the information is presented.
For technical questions and information about products and prices, please contact your IBM branch office, your IBM business partner,or your authorized remarketer.
When you send comments to IBM, you grant IBM a nonexclusive right to use or distribute your comments in any way it believesappropriate without incurring any obligation to you. IBM or any other organizations will only use the personal information that you supplyto contact you about the issues that you state.
Thank you for your support.
Submit your comments in the IBM Worklight forums at:
https://www.ibm.com/developerworks/mobile/mobileforum.html
If you would like a response from IBM, please provide the following information: Name Address
Company or Organization
Phone No.
Email address
8/22/2019 Module 03 3 - Previewing Your Application in BlackBerry Environment
25/25
Copyright International Business Machines Corporation 2011, 2012. All rights reserved.
US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
15 June 2012
Thank You