V0.01 © 2009 Research In Motion Limited Introduction to Java Application Development for the BlackBerry Smartphone Trainer name Date.

Slides:



Advertisements
Similar presentations
Operating System.
Advertisements

Week 6: Chapter 6 Agenda Automation of SQL Server tasks using: SQL Server Agent Scheduling Scripting Technologies.
Android Tools & Wireless ADB Αντρέας Λύμπουρας Θεόφιλος Φωκάς Ζαχαρίας Χ’’Λάμπρου.
V0.1 Inclusive and Accessible Application Design June 21, 2012.
Georgia Institute of Technology DrJava Appendix A Barb Ericson Georgia Institute of Technology May 2006.
Introduction to push technology © 2009 Research In Motion Limited.
© 2009 Research In Motion Limited Advanced Java Application Development for the BlackBerry Smartphone Trainer name Date.
V0.01 © 2009 Research In Motion Limited Introduction to Java Application Development for the BlackBerry Smartphone Trainer name Date.
© 2009 Research In Motion Limited Methods of application development for mobile devices.
© 2009 Research In Motion Limited Data structures and memory management on mobile devices.
V0.01 © 2009 Research In Motion Limited Introduction to Java Application Development for the BlackBerry Smartphone Trainer name Date.
V0.01 © 2009 Research In Motion Limited Introduction to Java Application Development for the BlackBerry Smartphone Trainer name Date.
V0.01 © 2009 Research In Motion Limited Understanding Java APIs for Mobile Devices Trainer name Date.
V1.00 © 2009 Research In Motion Limited Introduction to Mobile Device Web Development Trainer name Date.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
V0.01 © 2009 Research In Motion Limited Push technology for Java applications Trainer name Date.
Creating and Running Your First C# Program Svetlin Nakov Telerik Corporation
1 Chapter Overview Introduction to Windows XP Professional Printing Setting Up Network Printers Connecting to Network Printers Configuring Network Printers.
05 | Configuration and Deployment Richard Currey | Senior Technical Trainer–New Horizons United George Squillace | Senior Technical Trainer–New Horizons.
UFCFX5-15-3Mobile Device Development Android Development Environments and Windows.
1 Chapter Overview Creating User and Computer Objects Maintaining User Accounts Creating User Profiles.
DEMONSTRATION FOR SIGMA DATA ACQUISITION MODULES Tempatron Ltd Data Measurements Division Darwin Close Reading RG2 0TB UK T : +44 (0) F :
SEEM4570: XAMPP, Eclipse, Summary of Html Kangfei Zhao Room 711,ERB
Microsoft ® Official Course Module 9 Configuring Applications.
Configuring the Windows 2000 Environment. Overview Configuring and Managing Hardware Configuring Display Options Configuring System Settings Configuring.
Ch 11 Managing System Reliability and Availability 1.
Managing Local and Network Printer Chapter 11 powered by dj.
V0.1 BlackBerry HTML5/WebWorks Applications for the BlackBerry ® PlayBook™ Tablet BlackBerry Academic Program Module 1 - Overview.
Microsoft Visual Basic 2012 CHAPTER TWELVE (ENRICHMENT CHAPTER) Windows Store Apps.
© 2009 Research In Motion Limited Advanced Java Application Development for the BlackBerry Smartphone Trainer name Date.
Course Topics Administering SQL Server 2012 Jump Start 01 | Install and Configure SQL Server04 | Manage Data 02 | Maintain Instances and Databases05 |
Technology Coordinators Training. Confidential Copyright © 2007 Pearson Education, Inc. and/or one or more of its direct or indirect affiliates. All rights.
Motorola Document Classification, File Name, Rev Number Add additional legal text here if required by your local Legal Counsel. MOTOROLA and the Stylized.
ConfidentialPA Testing Mobile Applications A Model for Mobile Testing.
Creating and Running Your First C# Program Svetlin Nakov Telerik Corporation
Hands-On Virtual Computing
© 2009 Research In Motion Limited Advanced Java Application Development for the BlackBerry Smartphone Trainer name Date.
Conditions and Terms of Use
Microsoft ® Official Course Module XA Using Windows PowerShell ®
Capture and Replay Often used for regression test development –Tool used to capture interactions with the system under test. –Inputs must be captured;
ANDROID Presented By Mastan Vali.SK. © artesis 2008 | 2 1. Introduction 2. Platform 3. Software development 4. Advantages Main topics.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 4 1 Chapter 4: Basics of Preventive Maintenance and Troubleshooting IT.
V0.1 BlackBerry HTML5/WebWorks Applications for the BlackBerry ® PlayBook™ Tablet BlackBerry Academic Program Module 5 - Writing HTML5/WebWorks API Extensions.
Section 1: Introducing Group Policy What Is Group Policy? Group Policy Scenarios New Group Policy Features Introduced with Windows Server 2008 and Windows.
9 Chapter Nine Compiled Web Server Programs. 9 Chapter Objectives Learn about Common Gateway Interface (CGI) Create CGI programs that generate dynamic.
© 2009 Research In Motion Limited Advanced Java Application Development for the BlackBerry Smartphone Trainer name Date.
© 2009 Research In Motion Limited Advanced Java Application Development for the BlackBerry Smartphone Trainer name Date.
Module 10: Monitoring ISA Server Overview Monitoring Overview Configuring Alerts Configuring Session Monitoring Configuring Logging Configuring.
Tutorial 111 The Visual Studio.NET Environment The major differences between Visual Basic 6.0 and Visual Basic.NET are the latter’s support for true object-oriented.
CPSC1301 Computer Science 1 Overview of Dr. Java.
BlackBerry Application Development 06PLM – Group 7 Andrian Eduard Bangga Ikhsan Baskara Joovanny Pasuhuk Rangga Fajarullah.
IT Essentials: PC Hardware and Software v4.0. Chapter 4 Objectives 4.1 Explain the purpose of preventive maintenance 4.2 Identify the steps of the troubleshooting.
© 2009 Research In Motion Limited Advanced Java Application Development for the BlackBerry Smartphone Trainer name Date.
NetTech Solutions Security and Security Permissions Lesson Nine.
03 | Manage Team Foundation Server Steven Borg | Co-founder & Strategist, Northwest Cadence Anthony Borton | ALM Consultant, Enhance ALM.
Web Browsing *TAKE NOTES*. Millions of people browse the Web every day for research, shopping, job duties and entertainment. Installing a web browser.
The Development Process Compilation. Compilation - Dr. Craig A. Struble 2 Programming Process Problem Solving Phase We will spend significant time on.
Microsoft Virtual Academy Talbott Crowell | Chief Architect, ThirdM.com Rob Latino | Program Manager in Office 365 Support, Microsoft.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
SQL Database Management
Mobile Device Development
Connectivity to bank and sample account structure
Appendix A Barb Ericson Georgia Institute of Technology May 2006
Chapter 2: System Structures
Download dumps - Microsoft Real Exam Questions Dumps4download
The Application Lifecycle
Microsoft Virtual Academy
Presentation transcript:

v0.01 © 2009 Research In Motion Limited Introduction to Java Application Development for the BlackBerry Smartphone Trainer name Date

© 2009 Research In Motion Limited Revision history Document versionDateUpdated byDescription of revision.01Brian WhiteInitial content creation

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 –Push technology for Java applications –Introduction to threading and background processing –Network communication for mobile devices –Testing and debugging an application

Testing and debugging an application Objectives At the end of this module, you should be able to the following: –Explain the importance of preverifying applications –Identify the available test tools –Explain the available debugging tools in BlackBerry® JDE Plug-in for Eclipse® –Explain gargage collection, memory leaks, deadlocks and their importance –Explain the Event Log

© 2009 Research In Motion Limited Preverifying applications

© 2009 Research In Motion Limited Preverifying applications –Reduces the amount of processing that the BlackBerry® smartphone must perform when you install your BlackBerry Java Application. –Allows you to partially verify classes before transferring an application to the BlackBerry smartphone. –Launched manually with the following command preverify.exe [-d] output -classpath directory input; directory –Performed automatically in IDE

Methods for testing applications

You can test BlackBerry applications with the following methods: –On the BlackBerry Smartphone Simulator –On a BlackBerry smartphone

Methods for testing applications BlackBerry Smartphone Simulator: –Enables you to run BlackBerry smartphone applications on your computer –Includes the applications typically available on BlackBerry smartphones –Is an accurate environment for testing how applications function on a Blackberry smartphone

Methods for testing applications BlackBerry smartphone: –Is the most accurate test for how applications will run –Provides better view of networking functionality –Compatible with the BlackBerry® Integrated Development Environment, and use the debugging tool

Debugging tools available in BlackBerry JDE Plug-in for Eclipse

The BlackBerry JDE Plug-in for Eclipse has the following interfaces for troubleshooting your application: –Console window –Variables and debugging window –BlackBerry Memory Statistics view –BlackBerry Objects view –BlackBerry Profiler View

Debugging tools available in BlackBerry JDE Plug-in for Eclipse Console window: –Displays messages from the BlackBerry® Java® Virtual Machine –Displays custom error messages

Debugging tools available in BlackBerry JDE Plug-in for Eclipse Variables and debugging window: –Displays local variables when the application hits a breakpoint and stops –Allows you to resume, step into, and step over the code –displays the step-by-step functioning of the application –Displays the running threads

Debugging tools available in BlackBerry JDE Plug-in for Eclipse Variable window example:

Debugging tools available in BlackBerry JDE Plug-in for Eclipse Debug window example:

Debugging tools available in BlackBerry JDE Plug-in for Eclipse BlackBerry Memory Statistics view: –Displays the amount of RAM used at a breakpoint –Allows you to save and compare memory statistics at breakpoints RAM random access memory

Debugging tools available in BlackBerry JDE Plug-in for Eclipse BlackBerry Objects View: –Displays all objects from all running applications –Use the Snapshot option to compare the objects between two breakpoints –Use the filter to limit the displayed objects

Debugging tools available in BlackBerry JDE Plug-in for Eclipse Blackberry Profiler View: –The main view displays information about application states –The summary view displays percentage spent in idle, code execution and garbage collection stages –The Method view displays a detailed view of all running packages

Debugging tools available in BlackBerry JDE Plug-in for Eclipse BlackBerry Profiler View (Method view) example:

Garbage collection, memory leaks and deadlocks

Garbage collection: –The BlackBerry smartphone implements garbage collection to periodically free its memory and resources. –All the objects that do not have a reference remain in memory until a garbage collection runs and frees that memory. –No other application runs while garbage collection is running.

Garbage collection, memory leaks and deadlocks Garbage collection: Garbage collection typeTime required RAM only.5 seconds Flash + RAM (full)1 second Persistent10 seconds Emergency20 + seconds Thorough20 to 30 seconds

Garbage collection, memory leaks and deadlocks Memory leaks: –Created when a reference to an unneeded object is maintained –Usually found in the following data structure local variables runtime store listeners

Garbage collection, memory leaks and deadlocks Memory leaks: –The following symptoms suggest memory leaks Hourglass appears often as the device is trying to do garbage collection messages start being deleted –To view the free object handles, go to Options/Status on your BlackBerry smartphone. The File Free number appears. If the number is low, it can indicate a memory leak.

Garbage collection, memory leaks and deadlocks Deadlocks: –Occur when two or more threads are waiting for each other, and therefore the application becomes blocked. –Use the Interrupt debugger on potential deadlock feature on the BlackBerry Smartphone Simulator to detect deadlocks.

Event Log

–View the log of system events –Write to the event log using the available APIs –Access the event log on the BlackBerry smarthphone or copy it to your computer using the application called Javaloader –Open the event log from the the Home screen by holding down the Alt key, and typing lglg

Event Log Example Event Log:

Event Log Select an item in the event log to see additional details about the event.

Summary –When you preverify your classes, you reduce the amount of processing that the BlackBerry® Smartphone must perform when you install your BlackBerry Java application. –You can test applications in the BlackBerry Smartphone Simulator or on the BlackBerry Smartphone. –The BlackBerry Smartphone Simulator runs the same Java code as the Blackberry smartphone, so the BlackBerry Smartphone Simulator provides an accurate environment for testing how applications functions on a Blackberry smartphone. You can test on a BlackBerry Smartphone to better verify functions such as network connections. –BlackBerry JDE Plug-in for Eclipse allows you to debug an application with the following interfaces: Console window, which displays the output from the virtual machine, as well as the message from your own application. Variable and debug window, which displays the values of all local variables at the breakpoint BlackBerry Memory Statistics View, which displays amounts of RAM used by an application BlackBerry Objects View, which displays all objects, from running applications to view memory usage BlackBerry Profiler View, which displays information about application states –Garbage collection periodically frees memory and resources. All the objects that do not have a reference remain in memory until a garbage collection runs and frees that memory. –Memory leaks are created when a reference to an unneeded object is maintained. Even if you design code that deletes these references, a reference remains in the system that still prevents that object from being deleted. –Deadlocks occur when two or more threads are waiting for each other, and therefore the application becomes blocked. –The Event Log is a log of all system events. You can write to the event log using available APIs.

© 2009 Research In Motion Limited

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

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.

© 2009 Research In Motion Limited Revision history Document versionDateUpdated byDescription of revision