Click here to load reader
Upload
microsoft-mobile-developer
View
799
Download
6
Embed Size (px)
Citation preview
ASK THE EXPERT: COMMUNICATION AND NETWORKING IN SERIES 40 APPS
Michael Samarin Director, Developer Training and Evangelism Futurice
INTERACTIVE SESSION • This is special webinar “Ask the Expert” on all things related to
building connected apps for Series 40 • It is interactive, and your questions are driving discussion • You can ask questions right now in the chat window, or for future
sessions send your questions in advance to [email protected]
• Today, we will go first through questions we have received and F.A.Q. and then will switch to interactive mode
Communication options • Networking:
• Http / Https • TCP sockets, secure sockets • UDP
• Messaging: • SMS / MMS
• Bluetooth: • L2CAP, RFCOMM, OBEX
Generic Connection Framework (GCF) • Defined in Connected Limited Device Configuration (CLDC) 1.0
specification • Package: javax.microedition.io • All communication options are based on CFG • http://www.developer.nokia.com/Resources/Library/Java/_zip/GUID-
A8A297BB-EA23-4E2C-A9D1-6403BBEE0CD9/javax/microedition/io/package-summary.html
Connector, factory class from GCF • Any type of connectivity can be initialized with Connector:
• Connection c = Connector.open(“protocol://”);
• All supported protocols implement Connection, and general communication architecture is quite similar, for example:
• UDPDatagramConnection u = (UDPDatagramConnection)Connector.open("datagram://”);
• HttpConnection c = (HttpConnection)Connector.open("http://");
MIDP 2.0: • HttpConnection “http://” • HttpsConnection “https://” • SecureConnection “ssl://” • ServerSocketConnection “socket://” • SocketConnection “socket://” • UDPDatagramConnection “datagram://”
• http://www.developer.nokia.com/Resources/Library/Java/_zip/GUID-
0D0A1092-5037-4421-B466-B958CB777414/javax/microedition/io/package-summary.html
WebServices API (JSR-172): • RPC Package:
• Subset of J2SE API JAX-RPC 1.1
• XML Package: • Subset of JAXP 1.2
• http://www.developer.nokia.com/Resources/Library/Java/-!developers-guides/networking/web-services.html
Bluetooth (JSR-82): • L2CAP “btl2cap://” • RFCOMM “btspp://” • OBEX “btgoep://”
• http://www.developer.nokia.com/Resources/Library/Java/-!developers-
guides/networking/bluetooth-connections.html
Wireless Messaging API (JSR-205): • SMS (text, binary) “sms://” • MMS (text, video, image, audio) “mms://” • http://www.developer.nokia.com/Resources/Library/Java/-!developers-
guides/messaging/wireless-messaging-api-20.html
Want to learn more? www.developer.nokia.com
Michael Samarin, Director of Developer Training and Evangelism, Futurice
THANK YOU!