Presentation is loading. Please wait.

Presentation is loading. Please wait.

Lab 3: More Phone-Based Techniques

Similar presentations


Presentation on theme: "Lab 3: More Phone-Based Techniques"— Presentation transcript:

1 Lab 3: More Phone-Based Techniques
MIT D-Lab ICT4D Lab 3: More Phone-Based Techniques Luis F. G. Sarmenta draft 1: 4/10/2008

2 Recap: What can you do with mobile phones?
Computation / logic general-purpose language limited only by processor speed and memory Multimedia Graphics 3D Graphics on new phones Camera Audio / Video recording and playback Connectivity SMS, MMS, Bluetooth, HTTP connect to server-based resources/services connect to other users Other Features NFC / RFID Location / GPS Sensors (e.g., accelerometer)

3 More References Examples
Note: Our lab sessions for this class are only meant to jump-start you and get you on your way. You should read further on your own! Recommended Books Li and Knudsen. Beginning J2ME: From Novice to Professional, Third Edition. Publisher: Apress. ( Hamer. Creating Mobile Games. Publisher: Apress. ( Examples The Sun Wireless Toolkit has many examples! See also See also source code downloads available from Apress See also Some Lecture Notes by others

4 More References forum.nokia.com non-Java alternatives
SDKs, includes emulators, support for Nokia-specific features non-Java alternatives Symbian “S60” or “Series 60” is a platform version of Symbian “native” code – faster, and more features harder to code in, and less portable Python runs on Symbian-based Nokia phones Pros may be easier to program may provide access to more features Cons limited to Symbian phones not easy to install for end-users

5 Generic Connection Framework

6 Connector and Connections
Many Features in J2ME MIDP are accessed via the Generic Connection Framework Different classes implementing a subtype of interface Connection HttpConnection MessageConnection (SMS,MMS) SocketConnection StreamConnection etc.

7 General Pattern Call Connector.open( url ) to get a Connection
url specifies connection type Cast Connection to appropriate type Each Connection type has specific methods Open streams (input and output)

8 Other Features

9 Camera Part of Media API Camera is played like Video
To take photo, get snapshot of Video

10 Location Location API presents an abstraction Specify Criteria c
Then call LocationProvider.getInstance(c);

11 NFC (Contactless) NFC – Near Field Communications
communicate with contactless / “RFID” devices Supported by Nokia 6131 NFC phone and a few others Reading Unique ID is simple You can also send more complex commands to the NFC Download Nokia 6131 NFC SDK from forum.nokia.com Get NFC tags from Rich Fletcher


Download ppt "Lab 3: More Phone-Based Techniques"

Similar presentations


Ads by Google