Blackberry JAVA DEVELOPMENT ENVIRONMENT Руководство по началу работы - Страница 25

Просмотреть онлайн или скачать pdf Руководство по началу работы для Программное обеспечение Blackberry JAVA DEVELOPMENT ENVIRONMENT. Blackberry JAVA DEVELOPMENT ENVIRONMENT 32 страницы. Version 4.7.0
Также для Blackberry JAVA DEVELOPMENT ENVIRONMENT: Примечание к выпуску (8 страниц)

Testing a BlackBerry device application

Obfuscating a BlackBerry device application

Preverifying a BlackBerry device pplication

Testing a BlackBerry device application
Obfuscating a BlackBerry device application
The compiler in the BlackBerry® Java® Development Environment and the BlackBerry® JDE Plug-in for Eclipse™ is
set to minimize the size of the application. The .cod file that results provides services that are similar to those that
obfuscation packages provide in an effort to reduce the size of the .cod file. For example, the BlackBerry Java
Development Environment removes the following information from a .cod file:
all debug information
local variable names
source
private method and member names
As such, RIM does not believe it is necessary for you to provide obfuscation for your applications in addition to the
existing obfuscation that, by default, the BlackBerry® Java® Development Environment and the BlackBerry® JDE
Plug-in for Eclipse™ provide for all applications. In fact, Research In Motion does not perform any additional
obfuscation of its own products.
The BlackBerry® Java® Development Environment and the BlackBerry® JDE Plug-in for Eclipse™ do not integrate
support for obfuscation through third-party tools. As such, you must include a command-line procedure to
obfuscate .cod files for use on BlackBerry smartphones.
Preverifying a BlackBerry device pplication
To partially verify your classes before you load your application on a BlackBerry® smartphone, use the Preverify
tool. When you preverify your classes, you reduce the amount of processing that the BlackBerry smartphone must
perform when you load your application.
For more information on using the Preverify tool, see the online help for the BlackBerry® Java® Development
Environment or the BlackBerry® JDE Plug-in for Eclipse™.
Testing a BlackBerry device application
When you build a project using the BlackBerry® Java® Development Environment or the BlackBerry® JDE Plug-in
for Eclipse™, source files compile into Java® bytecode, preverification of source files occurs, and a single .cod file
and .jad file is created for the BlackBerry device application.
3