15. WRT Plug-in
Testing
Widget automically generate 4 files
info.plist index.html
container for Flash Lite container for Flash Lite
SWF content SWF content
basic.css basic.js
design & layout of
logic layer
widget’s contents
16. WRT Plug-in
Testing
Optional: Adding an application icon
• No custom icon is added, a default icon is shown
• Custom icon is in PNG and named as icon.png
• Icon size is 88x88 pixels
• Icon is in the same directory at the root
Submission Requirement
• Minimal 256x256 pixel
• Maximal 2000x2000 pixel
25. WRT Plug-in
Testing
OR info.plist
<dict>
...
<key>MiniViewEnabled</key>
<true/>
...
</dict>
• widget should have a static part to be shown on the
home screen of the device
• Use Homescreen widget guidelines to add the widget
to the home screen of the device (Available on limited
Nokia such as Nokia N97)
28. WRT Plug-in
Testing
Launch Method Pros Cons
Ability to add Content appears
HTML embedded assets around in browser
SWF context
White blank
Widget content
screen after exit.
SWF Launch appears as
Prompt user to
stand-alone SWF
save SWF on exit
Customized
<meta> Refresh Simple HTML
content in
Launch refresh tag
original window
30. WRT Project
Testing
1) Create a Flash Lite project .fla
2) Publish Flash Lite .fla into .swf and .html
3) Open *.html and copy <object> code only
4) Insert the code into WRT Widget index.html
inside HTML <body> tag
5) Import .SWF into WRT Widget
31. Adobe Flash
Testing
Create a New Flash file (Mobile)
41. Adobe Flash
Testing
Start coding in ActionScript...
42. WRT Project
Testing
1) Create a Flash Lite project .fla
2) Publish Flash Lite .fla into .swf and .html
3) Open *.html and copy <object> code only
4) Insert the code into WRT Widget index.html
inside HTML <body> tag
5) Import .SWF into WRT Widget
44. WRT Project
Testing
1) Create a Flash Lite project .fla
2) Publish Flash Lite .fla into .swf and .html
3) Open *.html and copy <object> code only
4) Insert the code into WRT Widget index.html
inside HTML <body> tag
5) Import .SWF into WRT Widget
46. WRT Project
Testing
1) Create a Flash Lite project .fla
2) Publish Flash Lite .fla into .swf and .html
3) Open *.html and copy <object> code only
4) Insert the code into WRT Widget index.html
inside HTML <body> tag
5) Import .SWF into WRT Widget
48. WRT Project
Testing
1) Create a Flash Lite project .fla
2) Publish Flash Lite .fla into .swf and .html
3) Open *.html and copy <object> code only
4) Insert the code into WRT Widget index.html
inside HTML <body> tag
5) Import .SWF into WRT Widget
57. Testing
Nokia Developer Forum
Registered Nokia Developer Benefits
Emulator Device
Emulator Nokia Device Anywhere
Browser Nokia Remote Device
Access (RDA) Service
S60 Device
58. Testing
Browser
To test the widget in a browser,
just open the index.html
59. Testing
Emulator
• N97 SDK emulator can verify a homescreen
widget that display on homescreen
• Nokia WRT plug-in has preview feature
supported by Aptana Studio
Download Nokia S60 SDK
Nokia N97
Nokia 5th Edition
Nokia 3rd Edition Feature Package 2
http://www.forum.nokia.com/info/sw.nokia.com/id/ec866fab-4b76-49f6-b5a5-
af0631419e9c/S60_All_in_One_SDKs.html
60. Testing: Device
Testing
PC Use Nokia PC Suite to
connect the mobile phone
using 1) Bluetooth or 2) USB
cable. Double click on
the .wgz package to install
and open the app
Mac Use 1) Bluetooth or 2) USB
cable to transfer the .wgz
package from Memory Card.
Use File Manager App to
install the package. Open the
app in the App.
61. Testing
Nokia Device Anywhere
https://www.deviceanywhere.com/nokia/welcome.htm
• Hundred of models • Can’t test location
• Avoid purchase • Can’t test accelerometer
• FREE • Can’t test sound
• Limited to no. of hrs per month
62. Testing
Nokia Remote Device Access
http://www.forum.nokia.com/Technology_Topics/
Application_Quality/Testing/Remote_Device_Access
• Hundred of models • Can’t test location
• Avoid purchase • Can’t test accelerometer
• FREE • Can’t test sound
• Limited to no. of hrs per day
70. WRT Widget
Testing
Basic WRT Widget works
1) WRT-supported S60 3rd Edition Feature Pack 2
Nokia E72 or Nokia N96
2) WRT-supported S60 5th Edition
Nokia 5800 XpressMusic or Nokia N97
3) SDK emulator
73. Advance WRT Widget
Testing
Advantages
• Preview, debug, validate, package, and deploy
• Code completion for Web Runtime API
• Sample data for platform services API
• Ability to create device events
Adobe Microsoft
Aptana Studio
Dreamweaver Visual Studio
74. Advance WRT Widget
Testing
APIBridge
• Enables WRT widgets to communicate with
Symbian plug-ins
• Plug-in architecture to add access to any Symbian
features
• Tool package includes JavaScript code that
support APIBridge and a .SIS file that adds the
plug-ins to Symbian devices
75. Advance WRT Widget
Testing
APIBridge Exmaples
• Upload files to website
• Capture videos, images, audios
• Read files resident on a device
• Resize images
• Access and create thumbnail images
• Access device’s log
• Access device’s location
• Access media on device
• Issue DTMF tones to a active call
76. Advance WRT Widget
Testing
Nokia Platform Services 2.0
• JavaScript API to access device data & info
• Addition of one or two lines of JavaScript code into a widget
• Access location, contact
http://www.forum.nokia.com/info/sw.nokia.com/id/cccea743-f4e5-418f-
ad9f-0a7a7f50868f/Nokia_Platform_Services_2_0.html