Your SlideShare is downloading. ×
Porting Java apps from Symbian to Series 40
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Porting Java apps from Symbian to Series 40

1,775

Published on

If you have Java™ apps for Symbian phones, this webinar is for you. You‘ll learn how to use the newest features for developers on Series 40 phones and why it can be worthwhile to port your Java apps …

If you have Java™ apps for Symbian phones, this webinar is for you. You‘ll learn how to use the newest features for developers on Series 40 phones and why it can be worthwhile to port your Java apps to serve this large market. Java expert Michael Samarin of Futurice will provide an overview of the differences between the Java runtime environments of Symbian and Series 40 and will show you how to adapt your Symbian apps to reach Series 40 users.

Published in: Technology
2 Comments
0 Likes
Statistics
Notes
  • Be the first to like this

No Downloads
Views
Total Views
1,775
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
30
Comments
2
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. PORTING JAVA APPS FROM SYMBIAN TOSERIES 40Michael SamarinDirector,Developer Training and EvangelismFuturice
  • 2. GENERAL CONSIDERATIONS• Same development platform Java ME on Series 40 and Symbian.• Standard Midlets based on CLDC 1.1, MIDP 2.0 and common JSRs will run without even recompiling on both Symbian and Series 40.• However, behavior and User Experience of Java apps might be significantly different.• APIs and Capabilities of Java Runtime on Symbian and Series 40 are different.
  • 3. PORTING CHECKLIST• Nokia SDK 2.0 For Java: Asha Full Touch Emulator, Nokia IDE for Java• Available JSRs and APIs, Media formats• Platform Memory Requirements• Java Runtime System Properties• Performance• UI optimization and User Experience• http://www.developer.nokia.com/Resources/Library/Java
  • 4. NOKIA SDK 2.0 FOR JAVA Integrated SDK + Toolchain JAD Editor App Templates Device SDK Manager (NetBeans is supported as well)
  • 5. PLATFORMS5th Ed., FP1 6th Ed., Lite 6th Ed. 6th Ed., FP1 DP 1.0 DP 1.1 Developer Platform 2.0
  • 6. Asha 311 Asha 309 Asha 205 Nokia 109 E72 S60 3Ed APIs and JSRs (Belle FP1 – Nokia 808 PureView) DP2 DP2 DP1 S40 6 Ed Light FP2JSR 139 Connected, Limited Device Configuration (CLDC) 1.1 Yes Yes Yes Yes YesJSR 118 MIDP 2.1 Yes Yes Yes Yes YesJSR 75 FileConnection and PIM API 1.0 Yes Yes Yes Yes YesJSR 82 Java™ APIs for Bluetooth 1.1 Yes Yes Yes - YesJSR 172 J2ME™ Web Services Specification 1.0 (RPC package) Yes Yes Yes Yes YesJSR 172 J2ME™ Web Services Specification 1.0 (XML Parser package) Yes Yes Yes Yes YesJSR 177 Security and Trust Services API for J2ME™ 1.0 (SATSA-APDU package) Yes Yes Yes Yes YesJSR 177 Security and Trust Services API for J2ME™ 1.0 (SATSA-CRYPTO package) Yes Yes Yes Yes YesJSR 177 Security and Trust Services API for J2ME™ 1.0 (SATSA-PKI package) - - - - -JSR 184 Mobile 3D Graphics API for J2ME™ 1.1 Yes Yes Yes Yes YesJSR 205 Wireless Messaging API 2.0 Yes Yes Yes Yes YesJSR 226 Scalable 2D Vector Graphics API for J2ME™ 1.1 Yes Yes Yes - YesJSR 234 Advanced Multimedia Supplements 1.1 (audio3d) Yes - Yes - YesJSR 234 Advanced Multimedia Supplements 1.1 (camera) Yes - Yes - -JSR 234 Advanced Multimedia Supplements 1.1 (music) Yes Yes Yes - YesJSR 257 Contactless Communication API 1.0 - - - - -IAP Info API 1.0 - - - - YeseSWT UI API 1.0.3 - - - - YesJSR 135 Mobile Media API 1.2 Yes Yes 1.1 Yes YesJSR 179 Location API for J2ME™ 1.0.1 1.0 1.0 1.0 1.0 1.0JSR 211 Content Handler API 1.0.1 1.0 1.0 1.0 1.0 -JSR 248 Mobile Service Architecture Subset 1.1 for CLDC 1.1 Yes Yes Yes - YesJSR 256 Mobile Sensor API 1.2 Yes Yes - - -JSR 257 Contactless Communication API Extensions - - - - -Nokia UI API 1.4 1.6 1.6 1.1 1.1 1.1
  • 7. MEMORY REQUIREMENTS• On Symbian there are no limitations on Java Heap space usage or JAR file size.• Series 40 limits Java Heap space to 2 or 4 Mb and JAR file size to 1 or 2 Mb.• Challenge for developers to minimize memory usage (exclude image processing, big XML parsing). Use memory profiling with SDK Emulator.• Challenge for game making with large graphical assets. Utilize post downloading with caching data in RecordStore.
  • 8. SYSTEM PROPERTIES• Make sure to explore differences in available System Properties on Symbian and Series 40:• http://www.developer.nokia.com/Resources/Library/Java/#!develope rs-guides/application-framework/system-properties.html• There are many unique System Properties available only on Series 40: dual SIM, layout alignment in scripts (LTR, RTL), network ID, country code etc.:• http://www.developer.nokia.com/Resources Library/Java/#!developers-guides/application-framework/system- properties/nokia- specificsystem-properties.html
  • 9. PERFORMANCE• Only testing on real device will give correct perception of your apps’ performance.• Make sure correct usage of threads, on some Series 40 device, having more then 4 running threads doesn’t improving performance.• Defining classes and members as static on Series 40 decreases performance.• Audio playback performance (especially for games) requires per-device optimization. Some devices do not support more then 4 “prefetch” calls on sampled media.• Sensor querying loops should be designed with low performance in mind.• https://www.developer.nokia.com/Resources/Library/Java/#!developers- guides/series-40-performance-optimisation.html
  • 10. UI AND USER EXPERIENCE• Asha Full Touch introduced new Look & Feel for LCDUI components, as well as, new optimized version of LWUIT:• http://www.developer.nokia.com/Resources/Library/Full_Touch• http://projects.developer.nokia.com/LWUIT_for_Series_40• There are significant additions to Nokia UI APIs, including support for gestures optimized for multi-point touch, virtual keyboard, orientation, new extensions to LCDUI (CategoryBar, IconCommand):• http://www.developer.nokia.com/Resources/Library/Java/#!introduction -to-java-me/new-features-in-java-runtime-200-for-series-40.html
  • 11. THANK YOU!Want to learn more?www.developer.nokia.comhttp://www.youtube.com/user/nokiadevforum Michael Samarin, Director of Developer Training and Evangelism, Futurice

×