10

Click here to load reader

Ask The Expert: Communication and networking in Series 40 apps

Embed Size (px)

Citation preview

Page 1: Ask The Expert: Communication and networking in Series 40 apps

ASK THE EXPERT: COMMUNICATION AND NETWORKING IN SERIES 40 APPS

Michael Samarin Director, Developer Training and Evangelism Futurice

Page 2: Ask The Expert: Communication and networking in Series 40 apps

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

Page 3: Ask The Expert: Communication and networking in Series 40 apps

Communication options • Networking:

• Http / Https • TCP sockets, secure sockets • UDP

• Messaging: • SMS / MMS

• Bluetooth: • L2CAP, RFCOMM, OBEX

Page 4: Ask The Expert: Communication and networking in Series 40 apps

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

Page 5: Ask The Expert: Communication and networking in Series 40 apps

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://");

Page 6: Ask The Expert: Communication and networking in Series 40 apps

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

Page 7: Ask The Expert: Communication and networking in Series 40 apps

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

Page 8: Ask The Expert: Communication and networking in Series 40 apps

Bluetooth (JSR-82): • L2CAP “btl2cap://” • RFCOMM “btspp://” • OBEX “btgoep://”

• http://www.developer.nokia.com/Resources/Library/Java/-!developers-

guides/networking/bluetooth-connections.html

Page 9: Ask The Expert: Communication and networking in Series 40 apps

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

Page 10: Ask The Expert: Communication and networking in Series 40 apps

Want to learn more? www.developer.nokia.com

Michael Samarin, Director of Developer Training and Evangelism, Futurice

THANK YOU!