Presentation is loading. Please wait.

Presentation is loading. Please wait.

V0.01 © 2009 Research In Motion Limited Understanding Java APIs for Mobile Devices Trainer name Date.

Similar presentations


Presentation on theme: "V0.01 © 2009 Research In Motion Limited Understanding Java APIs for Mobile Devices Trainer name Date."— Presentation transcript:

1 v0.01 © 2009 Research In Motion Limited Understanding Java APIs for Mobile Devices Trainer name Date

2 © 2009 Research In Motion Limited Agenda In this course, you will cover the following topics: –Introduction to Java application development for mobile devices –Understanding Java APIs for mobile devices –Developing a user interface for mobile devices –Introduction to push technology for Java Applications –Introduction to threading and background processing –Network communication for mobile devices –Testing and debugging

3 © 2009 Research In Motion Limited Understanding Java APIs for mobile devices Objectives –What are Java APIs? –List and describe the various APIs –Explain the features of the various APIs

4 What are Java APIs? Java APIs –An API is an exposed area of interaction between a library of services and the program that consumes those services. –An API usually defines the following items: Code vocabulary Naming conventions Function and subroutine syntax Public and private objects Data structures

5 What are Java APIs? Java APIs –APIs can be language dependent or language agnostic. –Language dependent APIs provide APIs that serve as frameworks to expand the abilities and services of a particular programming language. Language agnostic APIs define services that can be made available to programming languages. –The Java APIs used for application development for the BlackBerry® smartphone are language dependent APIs. They provide frameworks built in the Java language for use by other Java-based applications.

6 What are Java APIs? Java ME –The main development platform for the BlackBerry is Java® ME. Java ME is an industry standard set of Java APIs that defines services for various embedded and mobile devices. Applications developed using Java ME run in the BlackBerry® Java® Virtual Machine; a custom version of the main Java Virtual Machine optimized for the BlackBerry environment. –As with other implementations of the JVM, the BlackBerry® Java® Virtual Machine provides all application runtime services and performs such functions as memory allocations, security checks, and garbage collection.

7 What are Java APIs? Java ME –The MIDP v2.0 standard is part of Java ME and is fully supported by most BlackBerry smartphones as defined in JSR 118 –The MIDP v2.0 standard provides a core set of Java APIs a BlackBerry smartphone supports regardless of the underlying operating system. –You can develop applications in Java ME according to the MIDP v2.0 standard once and run them on a device that is MIDP v2.0 compliant. –BlackBerry smartphones running Software version 4.0 or earlier are not MIDP v2.0 compliant. These devices are MIDP 1.0 compliant. MIDP Mobile Information Device Profile JSR Java Specification Request

8 What are Java APIs? Supported Java APIs –The BlackBerry smartphone supports the MIDP standard and the approximately 85 different APIs that are part of the standard. This core set of functionality provides the majority of the APIs required for the BlackBerry smartphone. –In addition to this core functionality, BlackBerry development also supports the following APIs as defined in the noted JSRs.

9 What are Java APIs? Supported Java APIs JSR 30CLDC version 1.0 –The CLDC defines the base APIs and virtual machine for devices such as mobile phones, pagers, and personal digital assistants. The CLDC, coupled with the MIDP, provides the Java services available for application development. –CLDC version 1.0 is an earlier version supported by older devices. CDLC version 1.0 is supported by devices running BlackBerry® Device Software Version 4.0 or earlier. CLDC Connected Limited Device Configuration

10 What are Java APIs? Supported Java APIs JSR 37MIDP version 1.0 –The MIDP, coupled with the CLDC, provides the core set of Java APIs a BlackBerry smartphone supports regardless of the underlying operating system. –MIDP version 1.0 is an earlier version supported by older devices. MIDP version 1.0 is supported by devices running BlackBerry Device Software version 4.0 or earlier.

11 What are Java APIs? Supported Java APIs JSR 75PDA Optional Packages –The PDA Optional Packages API provides services for accessing PIM data and file systems. This API is only available for devices running BlackBerry Device Software version 4.2 or later. JSR 82Java APIs for Bluetooth® –The Java APIs for Bluetooth provides services for the use of Bluetooth devices with Java applications. These services allow applications to integrate with Bluetooth devices, such as headsets, and make use of their functionality. PIM Personal Information Management

12 What are Java APIs? Supported Java APIs JSR 120 WMA version 1.1 –The Wireless Messaging API version 1.1 defines a set of standardized services for wireless communication resources designed to run on Java ME configurations. JSR 135 MM API version 1.1 –The MM API defines services that allow easy access and control of basic audio and multimedia resources. It also addresses scalability and support of more sophisticated features.

13 What are Java APIs? Supported Java APIs JSR 139 CLDC version 1.1 –The CLDC defines the base APIs and virtual machine for devices such as mobile phones, pagers, and PDAs. The CLDC, coupled with the MIDP, provides the Java services available for application development. –This API is an update to CLDC version 1.0 specified in JSR 30.

14 What are Java APIs? Supported Java APIs JSR 172 Java Platform, ME Web Services –The Java Platform, ME Web Services API defines services for accessing web services using Java ME. JSR 177 SATSA for Java Platform, ME –The SATSA defines services for security and trust services. JSR 179 Location API for Java ME –The Location API defines services for building location- based applications.

15 What are Java APIs? Supported Java APIs JSR 185 JTWI –The JTWI API defines an overall architectural description to coordinate JCP efforts with the wireless industry. JSR 205 WMA version 2.0 –The WMA version 2.0 extends the WMA version 1.1 and defines additional services. JTWI Java Technology for the Wireless Industry

16 What are Java APIs? Supported Java APIs JSR 211Content Handler API –The Content Handler API defines services to handle multimedia and web content so developers can create a seamless and integrated user environment on mobile phones and wireless devices. JSR 226Scalable 2D Vector Graphics API for Java ME –The Scalable 2D Vector Graphics API defines services for rendering scalable 2D vector graphics, like the W3C® SVG format. JSR 238Mobile Internationalization API –The Mobile Internationalization API defines services for providing culturally correct data formatting, text sorting, and resource processing.

17 What are Java APIs? Supported API extensions –In addition to the standard Java APIs supported in the BlackBerry® Java® development environment, a number of API extensions are also supported. These extensions are APIs that are not part of the standard JSR definitions. They provide greater features and functionality over what is available in the standard MIDP version 2.0 APIs.

18 What are Java APIs? Supported API extensions –User Interface Used to create all components of the graphical user interface –Persistent Data Storage Used to store persistent custom data within an application –Networking and I/O Used to establish network connections and read or write data to server-side applications

19 What are Java APIs? –Supported API extensions –Event Listeners Used to respond to user-initiated or system-initiated events on a BlackBerry smartphone –Application Integration used to integrate custom applications with existing BlackBerry email message, phone, calendar, contacts, browser, camera, media player, and task list applications –Additional Utilities used for data encryption and compression, XML parsing, Bluetooth connectivity, and location-based services

20 Summary –An API is an exposed area of interaction between a library of services and the program that consumes those services. An API usually defines the following items: code vocabulary naming conventions function and subroutine syntax public and private objects data structures

21 Summary –APIs can be either language dependent or language agnostic. Language dependent APIs provide APIs that serve as frameworks to expand the abilities and services of a particular programming language. Language agnostic APIs define services that can be made available to programming languages. –The Java APIs used for application development for the BlackBerry smartphone are language dependent APIs. They provide frameworks built in the Java language for use by other Java-based applications. –The main development platform for the BlackBerry is Java® ME. Java ME is an industry standard set of Java APIs that defines services for various embedded and mobile devices.

22 Summary –The BlackBerry smartphone supports the MIDP standard and the approximately 85 different APIs that are part of the standard. This core set of functionality provides the majority of the APIs required for the BlackBerry device. In addition to this core functionality, BlackBerry development also supports many other APIs. –In addition to the standard Java APIs supported in the BlackBerry development environment, a number of API extensions are also supported. These extensions are APIs that are not part of the standard JSR definitions. They provide greater features and functionality over what is available in the standard MIDP version 2.0 APIs.

23 © 2009 Research In Motion Limited

24 Legal Disclaimer The following trademarks and/or registered trademarks of Research In Motion are referred to in this presentation: –BlackBerry® –Research In Motion® (only include if it appears in the webinar/presentation) –RIM® (only include if it appears in the webinar/presentation) The following BlackBerry products are referred to in this presentation: (include all items from the official BlackBerry products list that appear in the webinar/presentation) –BlackBerry® Internet Service –BlackBerry® Enterprise Solution –BlackBerry® Enterprise Server –BlackBerry® Pearl™ 8100 smartphone –BlackBerry® Curve™ 8300 smartphone The following third-party trademarks are referred to in this presentation: (include all third-party products that appear in the webinar/presentation) –Microsoft® Excel® –Microsoft® SQL Server® Please remove any products not mentioned in this presentation and add all mentioned products before completing this presentation. Also, remove any remaining red text. © 2009 Research In Motion Limited

25 Legal Disclaimer © 2009 Research In Motion Limited. All rights reserved. BlackBerry®, RIM®, Research In Motion®, SurePress™ SureType® and related trademarks, names and logos are the property of Research In Motion Limited and are registered and/or used in the U.S. and countries around the world. All other trademarks are the property of their respective owners. This documentation is provided "AS IS" and without condition, endorsement, guarantee, representation or warranty, or liability of any kind by Research In Motion Limited and its affiliated companies, all of which are expressly disclaimed to the maximum extent permitted by applicable law in your jurisdiction.

26 © 2009 Research In Motion Limited Revision history Document versionDateUpdated byDescription of revision 0.1Oct. 23/09David WatsonFirst draft


Download ppt "V0.01 © 2009 Research In Motion Limited Understanding Java APIs for Mobile Devices Trainer name Date."

Similar presentations


Ads by Google