Monday, March 19, 2012

Blackberry Webworks Build and Load Build to Smartphone Device

Blackberry create Build

è Make a zip file of you blackberry code which has the configuration.xml file.

è Open command prompt

è Go to C:\BBWP

è Enter the following command BBWP E:\Path\to\Your\AppName.zip /g SigningPassword

è Now this will create two folders of bin\StandardInstall\ and bin\OTAInstall

è To load these files to device enter below command

Bin\javaloader –u load E:\Path\to\Your\www\ bin\StandardInstall\AppName.cod

è Now you can access the application in the device.

Some other ways of build creation

Load COD file into the device

1) Start the MDS server from C:\BBWP\mds\run.bat

2) Open command prompt and go to C:\BBWP\bin

3) Now type javaloader –USB load C:\filepath\and\name.cod

è Make Blackberry build using latest Phonegap 1.3:

1) Go to E:\Latest\CBQUAT

2) There will be four mandatory files of

lib,

www,

blackberry.xml,

build.xml,

project.properties

3) Open cmd then cd to to E:\Latest\CBQUAT

4) Run below command to make a build

E:\Latest\CBQUAT>ant blackberry build

5) After build successful

6) Cd to webworks installation directory C:\BBWP>

7) Type below command to sign the build

C:\BBWP>bbwp E:\Latest\CBQUAT\build\CBQUAT.zip /g SymphonySV

8) Now go to E:\Latest\CBQUAT\build\bin\StandardInstall

9) Copy .cod file and paste it to c:\

10) The from cmd cd to C:\BBWP\bin>

11) Type below command

C:\BBWP\bin>javaloader -u load c:\CBQUAT.cod

Log of installed version:

Microsoft Windows [Version 6.1.7600]

Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\msubra02>e:

E:\>cd E:\Latest\CBQUAT

E:\Latest\CBQUAT>ant blackberry build

Buildfile: E:\Latest\CBQUAT\build.xml

blackberry:

build:

generate-cod-name:

[echo] Generated name: CBQUAT.cod

clean:

package-app:

[mkdir] Created dir: E:\Latest\CBQUAT\build\widget

[copy] Copying 41 files to E:\Latest\CBQUAT\build\widget

[zip] Building zip: E:\Latest\CBQUAT\build\CBQUAT.zip

build:

[exec] [INFO] Parsing command line options

[exec] [INFO] Parsing bbwp.properties

[exec] [INFO] Validating application archive

[exec] [INFO] Parsing config.xml

[exec] [INFO] Populating application source

[exec] [INFO] Compiling BlackBerry WebWorks applicatio

n

[exec] [INFO] Generating output files

[exec] [INFO] BlackBerry WebWorks application packagin

g complete

BUILD SUCCESSFUL

Total time: 34 seconds

E:\Latest\CBQUAT>c:

C:\Users\msubra02>cd\

C:\>cd bbwp\bin

C:\BBWP\bin>cd..

C:\BBWP>bbwp E:\Latest\CBQUAT\build\CBQUAT.zip /g SymphonySV

[INFO] Parsing command line options

[INFO] Parsing bbwp.properties

[INFO] Validating application archive

[INFO] Parsing config.xml

[INFO] Populating application source

[INFO] Compiling BlackBerry WebWorks application

[INFO] Starting signing tool

[INFO] Signing complete

[INFO] Generating output files

[INFO] BlackBerry WebWorks application packaging complete

C:\BBWP>cd bin

C:\BBWP\bin>javaloader -u load c:\CBQUAT.cod

RIM Wireless Handheld Java Loader

Copyright 2001-2009 Research In Motion Limited

Connected

Loading CBQUAT Done

1558408 bytes sent at ~623363 bps

Disconnected

C:\BBWP\bin>

How to take screenshot of blackberry smartphone

javaloader -u screenshot c:\[name].jpg

http://www.blackberrycool.com/2006/03/10/taking-screenshots-of-your-actual-blackberry/

No comments: