Home > Uncategorized > Blackberry on Phonegap

Blackberry on Phonegap

This morning, I decided to take a look at the Blackberry support for phonegap. So far, their sample app works a charm.

Here is the steps to create and build this sample app:

ant create -Dpro
h=E:\research\phonegap\phonegap-0.9.4\BlackBerry\WebWorks\Sample
Buildfile: E:\research\phonegap\phonegap-0.9.4\BlackBerry\WebWorks\build

clean:

build-javascript:
[mkdir] Created dir: E:\research\phonegap\phonegap-0.9.4\BlackBerry\
\build\javascript
[delete] Deleting: E:\research\phonegap\phonegap-0.9.4\BlackBerry\Web
ild\javascript\phonegap.0.9.4.min.js.tmp

build-extension:
[mkdir] Created dir: E:\research\phonegap\phonegap-0.9.4\BlackBerry\
\build\ext
[zip] Building zip: E:\research\phonegap\phonegap-0.9.4\BlackBerry
s\build\ext\phonegap.0.9.4.jar

create:
[mkdir] Created dir: E:\research\phonegap\phonegap-0.9.4\BlackBerry\
\Sample
[copy] Copying 10 files to E:\research\phonegap\phonegap-0.9.4\Blac
ebWorks\Sample
[copy] Copying 2 files to E:\research\phonegap\phonegap-0.9.4\Black
bWorks\Sample\www\javascript
[copy] Copying 1 file to E:\research\phonegap\phonegap-0.9.4\BlackB
Works\Sample\www\ext
[mkdir] Created dir: E:\research\phonegap\phonegap-0.9.4\BlackBerry\
\Sample\lib\phonegap.0.9.4
[copy] Copying 3 files to E:\research\phonegap\phonegap-0.9.4\Black
bWorks\Sample\lib\phonegap.0.9.4
[echo]
[echo] Project Creation Complete!
[echo] ==========================
[echo]
[echo] Getting Started:
[echo] —————-
[echo]
[echo]   cd E:\research\phonegap\phonegap-0.9.4\BlackBerry\WebWorks
[echo]
[echo]   ant help
[echo]

BUILD SUCCESSFUL
Total time: 9 seconds

E:\research\phonegap\phonegap-0.9.4\BlackBerry\WebWorks>cd sample

E:\research\phonegap\phonegap-0.9.4\BlackBerry\WebWorks\Sample>dir
Volume in drive E is Data
Volume Serial Number is 9E79-47CC

Directory of E:\research\phonegap\phonegap-0.9.4\BlackBerry\WebWorks\Sa

22/03/2011  10:33    <DIR>          .
22/03/2011  10:33    <DIR>          ..
22/03/2011  10:33             9,193 build.xml
22/03/2011  10:33    <DIR>          lib
22/03/2011  10:33             1,966 project.properties
22/03/2011  10:33    <DIR>          www
2 File(s)         11,159 bytes
4 Dir(s)  99,064,516,608 bytes free

E:\research\phonegap\phonegap-0.9.4\BlackBerry\WebWorks\Sample>notepad p
roperties

E:\research\phonegap\phonegap-0.9.4\BlackBerry\WebWorks\Sample>ant build
Buildfile: E:\research\phonegap\phonegap-0.9.4\BlackBerry\WebWorks\Sampl
xml

generate-cod-name:
[echo] Generated name: PhoneGapSample.cod

clean:

package-app:
[mkdir] Created dir: E:\research\phonegap\phonegap-0.9.4\BlackBerry\
\Sample\build\widget
[copy] Copying 9 files to E:\research\phonegap\phonegap-0.9.4\Black
bWorks\Sample\build\widget
[zip] Building zip: E:\research\phonegap\phonegap-0.9.4\BlackBerry
s\Sample\build\PhoneGapSample.zip

build:
[exec] [INFO]                      Parsing command line options
[exec] [INFO]                      Parsing bbwp.properties
[exec] [INFO]                      Validating application archive
[exec] [INFO]                      Parsing config.xml
[exec] [WARNING]                   Failed to find the <author> elem
[exec] [INFO]                      Populating application source
[exec] [INFO]                      Compiling BlackBerry WebWorks ap
n
[exec] [INFO]                      Generating output files
[exec] [INFO]                      BlackBerry WebWorks application
g complete

BUILD SUCCESSFUL
Total time: 32 seconds

E:\research\phonegap\phonegap-0.9.4\BlackBerry\WebWorks\Sample>ant load-
r
Buildfile: E:\research\phonegap\phonegap-0.9.4\BlackBerry\WebWorks\Sampl
xml

generate-cod-name:
[echo] Generated name: PhoneGapSample.cod

clean:
[delete] Deleting directory E:\research\phonegap\phonegap-0.9.4\Black
bWorks\Sample\build

package-app:
[mkdir] Created dir: E:\research\phonegap\phonegap-0.9.4\BlackBerry\
\Sample\build\widget
[copy] Copying 9 files to E:\research\phonegap\phonegap-0.9.4\Black
bWorks\Sample\build\widget
[zip] Building zip: E:\research\phonegap\phonegap-0.9.4\BlackBerry
s\Sample\build\PhoneGapSample.zip

build:
[exec] [INFO]                      Parsing command line options
[exec] [INFO]                      Parsing bbwp.properties
[exec] [INFO]                      Validating application archive
[exec] [INFO]                      Parsing config.xml
[exec] [WARNING]                   Failed to find the <author> elem
[exec] [INFO]                      Populating application source
[exec] [INFO]                      Compiling BlackBerry WebWorks ap
n
[exec] [INFO]                      Generating output files
[exec] [INFO]                      BlackBerry WebWorks application
g complete

load-simulator:
[echo] Simulator directory=C:\BBWP\simpack\5.0.0.469
[echo] Simulator executable=C:\BBWP\simpack\5.0.0.469/9550.bat
[echo] MDS directory=C:\BBWP/mds
[copy] Copying 4 files to C:\BBWP\simpack\5.0.0.469

BUILD SUCCESSFUL
Total time: 19 seconds

SCM 4.1.5.32 32 2008/04/23
<2011-03-22 10:36:53.631 GMT>:[0]:<MDS-CS_MDS>:<INFO >:<LAYER = SCM, J2SE 1.6.0_24 Charsets supported:Big5,Big5-HKSCS,EUC-JP,EUC-KR,GB18030,GB2312,GBK,IBM-Thai,IBM00858,IBM01140,IBM01141,IBM01142,IBM01143,IBM01144,IBM01145,IBM01146,IBM01147,IBM01148,IBM01149,IBM037,IBM1026,IBM1047,IBM273,IBM277,IBM278,IBM280,IBM284,IBM285,IBM297,IBM420,IBM424,IBM437,IBM500,IBM775,IBM850,IBM852,IBM855,IBM857,IBM860,IBM861,IBM862,IBM863,IBM864,IBM865,IBM866,IBM868,IBM869,IBM870,IBM871,IBM918,ISO-2022-CN,ISO-2022-JP,ISO-2022-JP-2,ISO-2022-KR,ISO-8859-1,ISO-8859-13,ISO-8859-15,ISO-8859-2,ISO-8859-3,ISO-8859-4,ISO-8859-5,ISO-8859-6,ISO-8859-7,ISO-8859-8,ISO-8859-9,JIS_X0201,JIS_X0212-1990,KOI8-R,KOI8-U,Shift_JIS,TIS-620,US-ASCII,UTF-16,UTF-16BE,UTF-16LE,UTF-32,UTF-32BE,UTF-32LE,UTF-8,windows-1250,windows-1251,windows-1252,windows-1253,windows-1254,windows-1255,windows-1256,windows-1257,windows-1258,windows-31j,x-Big5-Solaris,x-euc-jp-linux,x-EUC-TW,x-eucJP-Open,x-IBM1006,x-IBM1025,x-IBM1046,x-IBM1097,x-IBM1098,x-IBM1112,x-IBM1122,x-IBM1123,x-IBM1124,x-IBM1381,x-IBM1383,x-IBM33722,x-IBM737,x-IBM833,x-IBM834,x-IBM856,x-IBM874,x-IBM875,x-IBM921,x-IBM922,x-IBM930,x-IBM933,x-IBM935,x-IBM937,x-IBM939,x-IBM942,x-IBM942C,x-IBM943,x-IBM943C,x-IBM948,x-IBM949,x-IBM949C,x-IBM950,x-IBM964,x-IBM970,x-ISCII91,x-ISO-2022-CN-CNS,x-ISO-2022-CN-GB,x-iso-8859-11,x-JIS0208,x-JISAutoDetect,x-Johab,x-MacArabic,x-MacCentralEurope,x-MacCroatian,x-MacCyrillic,x-MacDingbat,x-MacGreek,x-MacHebrew,x-MacIceland,x-MacRoman,x-MacRomania,x-MacSymbol,x-MacThai,x-MacTurkish,x-MacUkraine,x-MS932_0213,x-MS950-HKSCS,x-mswin-936,x-PCK,x-SJIS_0213,x-UTF-16LE-BOM,X-UTF-32BE-BOM,X-UTF-32LE-BOM,x-windows-50220,x-windows-50221,x-windows-874,x-windows-949,x-windows-950,x-windows-iso2022jp>
<2011-03-22 10:36:53.786 GMT>:[1]:<MDS-CS_MDS>:<INFO >:<LAYER = SCM, EVENT = Default Job Pool size = 10>
<2011-03-22 10:36:53.787 GMT>:[2]:<MDS-CS_MDS>:<INFO >:<LAYER = SCM, maxMem: 518979584 maxPoolSize: 10>
<2011-03-22 10:36:54.270 GMT>:[3]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Connected, TOPSERVICE = SRPH, LOWERSERVICE = GME>
<2011-03-22 10:36:54.271 GMT>:[4]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Connected, TOPSERVICE = IPPP, LOWERSERVICE = GME>
<2011-03-22 10:36:54.271 GMT>:[5]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Connected, TOPSERVICE = GME, LOWERSERVICE = MDP>
<2011-03-22 10:36:54.272 GMT>:[6]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Connected, TOPSERVICE = MDP, LOWERSERVICE = GPAK>
<2011-03-22 10:36:54.273 GMT>:[7]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Connected, TOPSERVICE = GPAK, LOWERSERVICE = UDP>
<2011-03-22 10:36:54.275 GMT>:[8]:<MDS-CS_MDS>:<EVENT>:<LAYER = SCM, EVENT = MDS-CS server has started>
<2011-03-22 10:36:54.453 GMT>:[9]:<MDS-CS_MDS>:<DEBUG>:<LAYER = MDP, EVENT = Initialization>
<2011-03-22 10:36:54.453 GMT>:[10]:<MDS-CS_MDS>:<DEBUG>:<LAYER = MDP, EVENT = Started>
<2011-03-22 10:36:54.455 GMT>:[11]:<MDS-CS_MDS>:<DEBUG>:<LAYER = MDP, EVENT = Started, THREAD = MdpLayerHigherLayerListeningThread:GME>
<2011-03-22 10:36:54.456 GMT>:[12]:<MDS-CS_MDS>:<DEBUG>:<LAYER = MDP, EVENT = Started, THREAD = MdpLayerLowerLayerListeningThread:GPAK>
<2011-03-22 10:36:54.457 GMT>:[13]:<MDS-CS_MDS>:<DEBUG>:<LAYER = MDP, EVENT = Started, THREAD = MdpLayerDatagramGC>
<2011-03-22 10:36:54.528 GMT>:[14]:<MDS-CS_MDS>:<DEBUG>:<LAYER = UDP, EVENT = Initialization>
<2011-03-22 10:36:54.529 GMT>:[15]:<MDS-CS_MDS>:<DEBUG>:<LAYER = UDP, EVENT = Started>
<2011-03-22 10:36:54.531 GMT>:[16]:<MDS-CS_MDS>:<DEBUG>:<LAYER = UDP, EVENT = Started, THREAD = UdpLayerSenderThread:GPAK>
<2011-03-22 10:36:54.531 GMT>:[17]:<MDS-CS_MDS>:<DEBUG>:<LAYER = UDP, EVENT = Started, THREAD = UdpLayerReceiverThread>
<2011-03-22 10:36:54.824 GMT>:[18]:<MDS-CS_MDS>:<INFO >:<LAYER = IPPP, Sending Queue Size per device =200>
<2011-03-22 10:36:54.839 GMT>:[19]:<MDS-CS_MDS>:<INFO >:<LAYER = IPPP, IPPP: Receiving Queue Size =20>
<2011-03-22 10:36:54.840 GMT>:[20]:<MDS-CS_MDS>:<INFO >:<LAYER = IPPP, IPPP: Receiving Queue Size =20>
<2011-03-22 10:36:54.868 GMT>:[21]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, LAYER = IPPP, EVENT = Started>
<2011-03-22 10:36:54.870 GMT>:[22]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = Started, THREAD = ConnectionsInputStreamesReader0>
<2011-03-22 10:36:54.871 GMT>:[23]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = Started, THREAD = ConnectionsInputStreamesReader2>
<2011-03-22 10:36:54.871 GMT>:[24]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SRPH, LAYER = SRPH, EVENT = Initialization>
<2011-03-22 10:36:54.873 GMT>:[27]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = Started, THREAD = ListenForClientsPackets>
<2011-03-22 10:36:54.873 GMT>:[26]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = Started, THREAD = ConnectionsInputStreamesReader3>
<2011-03-22 10:36:54.875 GMT>:[29]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = Started, THREAD = ConnectionsInputStreamesReader4>
<2011-03-22 10:36:54.872 GMT>:[25]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = Started, THREAD = ConnectionsInputStreamesReader1>
<2011-03-22 10:36:54.877 GMT>:[31]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = Started, THREAD = IPLayerHttpClientIdleConnectionTimeoutThread>
<2011-03-22 10:36:54.876 GMT>:[30]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = Started, THREAD = ListenOnDatagramStatus>
<2011-03-22 10:36:54.874 GMT>:[28]:<MDS-CS_MDS>:<DEBUG>:<LAYER = IPPP, EVENT = Started, THREAD = QueuesManager>
<2011-03-22 10:36:54.882 GMT>:[32]:<MDS-CS_MDS>:<INFO >:<maxMem: 518979584 maxQueueSize: 250>
<2011-03-22 10:36:54.885 GMT>:[33]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SRPH, LAYER = SRPH, EVENT = Started>
<2011-03-22 10:36:54.887 GMT>:[34]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SRPH, EVENT = Started, THREAD = SRPHprotocolMainThread>
<2011-03-22 10:36:54.888 GMT>:[35]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SRPH, EVENT = Started, THREAD = SRPHListenForClientsPackets>
<2011-03-22 10:36:54.890 GMT>:[36]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SRPH, EVENT = Started, THREAD = SRPHQueuesManager>
<2011-03-22 10:36:54.890 GMT>:[37]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SRPH, EVENT = Started, THREAD = SRPHListenOnDatagramStatus>
<2011-03-22 10:36:54.896 GMT>:[38]:<MDS-CS_MDS>:<DEBUG>:<LAYER = GPAK, EVENT = Initialization>
<2011-03-22 10:36:54.897 GMT>:[39]:<MDS-CS_MDS>:<DEBUG>:<LAYER = GPAK, EVENT = Started>
<2011-03-22 10:36:54.899 GMT>:[40]:<MDS-CS_MDS>:<DEBUG>:<LAYER = GPAK, EVENT = Started, THREAD = GpakLayerHigherLayerListeningThread:MDP>
<2011-03-22 10:36:54.900 GMT>:[41]:<MDS-CS_MDS>:<DEBUG>:<LAYER = GPAK, EVENT = Started, THREAD = GpakLayerLowerLayerListeningThread:UDP>
22-Mar-2011 10:36:55 org.apache.catalina.startup.Embedded start
INFO: Starting tomcat server
22-Mar-2011 10:36:56 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.23
22-Mar-2011 10:36:56 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
22-Mar-2011 10:36:57 org.apache.catalina.startup.ContextConfig defaultWebConfig
INFO: No default web.xml
22-Mar-2011 10:36:57 org.apache.catalina.core.ApplicationContext logINFO: AdministrationController (Status):init
22-Mar-2011 10:36:57 org.apache.catalina.core.ApplicationContext logINFO: C:\BBWP\mds
22-Mar-2011 10:36:57 org.apache.catalina.core.ApplicationContext logINFO: AdministrationController (Statistics):init
22-Mar-2011 10:36:57 org.apache.catalina.core.ApplicationContext logINFO: C:\BBWP\mds
22-Mar-2011 10:36:57 org.apache.coyote.http11.Http11BaseProtocol initINFO: Initializing Coyote HTTP/1.1 on http-28080
22-Mar-2011 10:36:57 org.apache.coyote.http11.Http11BaseProtocol startINFO: Starting Coyote HTTP/1.1 on http-28080
<2011-03-22 10:36:57.581 GMT>:[42]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, Web Server Started>
<2011-03-22 10:37:03.157 GMT>:[43]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Expire records from device storage that are expired or older than 0 hours; 0>
<2011-03-22 10:37:03.158 GMT>:[44]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Expire records process ended; 0>
<2011-03-22 10:37:03.234 GMT>:[45]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Admin. Task- refresh media management>
<2011-03-22 10:37:03.235 GMT>:[46]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = The push service is ready to receive requests>
<2011-03-22 10:37:03.236 GMT>:[47]:<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = Admin. Task- pending push messages>

Advertisements
Categories: Uncategorized
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: