Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Scmad Chapter15

1,263 views

Published on

Cap. 15 - Only for study purposes

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Scmad Chapter15

  1. 1. By Marcel Caraciolo http://mobideia.blogspot.com Chapter 15– JTWI SCMAD Certification 45mm 61mm
  2. 2. Agenda <ul><li>JTWI </li></ul><ul><ul><li>Java Technology for Wireless Information </li></ul></ul><ul><ul><li>API’s requirements </li></ul></ul><ul><ul><li>Other definitions </li></ul></ul>
  3. 3. Java Technology for Wireless Industry <ul><li>Spec that defines no new API </li></ul><ul><li>Defines requirements over Java ME API. </li></ul><ul><li>Helps creating portable applications </li></ul><ul><li>Technologies: </li></ul><ul><ul><li>CLDC 1.0 (1.1 may be used) </li></ul></ul><ul><ul><li>MIDP 2.0 </li></ul></ul><ul><ul><li>WMA 1.1 </li></ul></ul><ul><ul><li>MMAPI 1.1 (conditional) </li></ul></ul><ul><li>Some aspects left as optional by the API’s are required by </li></ul><ul><li>JTWI. </li></ul>
  4. 4. CLDC <ul><li>Must allow creating at least 10 simultaneous threads </li></ul><ul><li>The time difference between two consecutive calls to System.currentTimeInMilis() must not be greater than 40 milliseconds in 80% of all test cases </li></ul><ul><li>Supports TimeZone (“GMT(+/-)XX”) for instance </li></ul><ul><li>TimeZone( “GMT -5”) for eastern time </li></ul>
  5. 5. CLDC <ul><li>Each suite may create at least 5 RecordStores </li></ul><ul><li>Besides PNG, JPEG must be supported </li></ul><ul><li>At least 5 concurrent Timers may be created </li></ul><ul><li>The difference between the scheduled time and the real execution time of timers shall not be greater than 40 milliseconds at 80% of all test cases </li></ul><ul><li>When a TextField or a TextBox are set with constraint = PHONENUMBER, the device must provide a mechanism to get data from the phone book </li></ul><ul><li>PushRegistry alarms are required </li></ul><ul><li>The “microedition.jtwi.version” system property must return the JTWI version </li></ul>
  6. 6. WMA <ul><li>The protocol through which the messages are sent (e.g. SMS) is not defined, but whichever is available must be exposed through WMA’s API </li></ul><ul><li>PushRegistry notifications are required </li></ul>
  7. 7. MMAPI <ul><li>Is not required because the device’s multimedia features are very distinct between devices, but when available, they must be exposed through MMAPI </li></ul><ul><li>All available media types must be accessible via HTTP 1.1 </li></ul><ul><li>MIDI execution and its VolumeControl are required </li></ul><ul><li>If image capture is available (when a camera is present), JPEG encoding is required </li></ul><ul><li>Tone Sequencing support is required </li></ul>
  8. 8. Definitions over resources <ul><li>Minimum screen size: 125 x 125 (versus 96 x 54 from MIDP) </li></ul><ul><li>Minimum number of colors: 12 bits (4096) (versus 1 bit (black and white) from MIDP) </li></ul><ul><li>Runtime memory (heap size): 256 KB (versus 128 KB from MIDP) </li></ul><ul><li>Maximum JAR Size: 64 KB </li></ul><ul><li>Maximum JAD size: 5 KB </li></ul><ul><li>Maximum Persistence size: 30 KB </li></ul>
  9. 9. Permission groups <ul><li>Net Access: Http, socket datagrams, etc </li></ul><ul><li>Messaging: SMS, MMS, etc </li></ul><ul><li>Auto Invocation: Alarm, push, etc </li></ul><ul><li>Local Connectivity: COMM, IrDa, Bluetooth, etc </li></ul><ul><li>Multimedia recording: Camera, microphone, etc </li></ul>
  10. 10. HTTP Connections <ul><li>For “Untrusted” applications: </li></ul><ul><ul><li>“ User-Agent” header must include tokens with data about the device and the security domain </li></ul></ul><ul><ul><li>Opening socket connections at 80 (HTTP) , 443 (HTTPS) an 8080 ports must throw SecurityException. These ports must be opened via HTTP connections. </li></ul></ul><ul><ul><li>Sending datagrams to 9200 – 9205 (WAP gateway) must throw SecurityException. </li></ul></ul>
  11. 11. Other definitions <ul><ul><li>JSR 30: J2ME Connected, Limited Device Configuration. </li></ul></ul><ul><ul><li>http : //www.jcp.org/en/jsr/detail?id = 30 </li></ul></ul><ul><ul><li>JSR 118: Mobile Information Device Profile 2.0. </li></ul></ul><ul><ul><li>http : //www.jcp.org/en/jsr/detail?id = 118 </li></ul></ul><ul><ul><li>JSR 120: Wireless Messaging API. </li></ul></ul><ul><ul><li>http : //www.jcp.org/en/jsr/detail?id = 120 </li></ul></ul><ul><ul><li>JSR 135: Mobile Media API. </li></ul></ul><ul><ul><li>http : //www.jcp.org/en/jsr/detail?id = 135 </li></ul></ul><ul><ul><li>JSR 139: Connected Limited Device Configuration 1.1. </li></ul></ul><ul><ul><li>http : //www.jcp.org/en/jsr/detail?id = 139 </li></ul></ul>
  12. 12. Future Work <ul><li>Next Chapter: </li></ul><ul><ul><li>Mock Exams for the Real Exam </li></ul></ul><ul><ul><li>Tips and a Brief Review </li></ul></ul>
  13. 13. References <ul><li>ALVES F. Eduardo. SCMAD Study Guide, </li></ul><ul><li>27/04/2008. </li></ul><ul><li>Sun Certification Mobile Application Developer </li></ul><ul><li>Website: [http://www.sun.com/training/certification/java/scmad.xml]. </li></ul>

×