1.How to transfer compiled applications to a phone?Use BREW AppLoader to upload applications to the phone. The following example shows files and locations for an application with the name " brewApp."
The Digital Signature file is generated using the BREW TestSig Generator, then renamed with the name of the application. The first part of the .sig filename must be the same as the first part of the .mod filename. After uploading files, reset the phone. 2.How to compile an application to run on a handset?To build applications for the phone requires the ARM Developer Suite of tools, which are used to compile and link a project that has been developed using the PC-based BREW SDK, and related tools. Running an application built using the ARM tools requires a BREW-enabled phone, a data cable for establishing a serial connection to the phone, and file copying software such as QUALCOMM's BREW AppLoader application. See How to Build a Downloadable BREW Application for more details. 3.How to upload a device configurator file (.qsc) to a phoneThe ?The device configurator file (.qsc) is used by the BREW Emulator application, and is not required to run applications on the phone. 4.How to debug output on emulator and phone?When an application is running on the BREW Emulator, DBGPRINTF outputs messages to the Visual C++ Debug Window. Currently, DBGPRINTF messages are not available while running on a phone. Support for outputting debug messages to a host PC via serial connection is under development. 5.What compilers can be used to compile BREW applications?The ARM BREW Builder can be used to compile BREW applications. 6.What guidelines should be followed when compiling an application in Thumb mode?function AEEMod_Load() must be moved to a different source file and this file must be compiled in ARM mode. AEEMod_Load() must always be compiled in ARM mode. 7.What to do if we installed ARM BREW Builder or ARM Development Suite into a path with spaces?The solution is to modify your makefile in the following fashion: 8..What are the Operating System requirements of the BREW SDK?Due to the requirement for Unicode support, the SDK runs only on the Microsoft Windows NT™ 4.0, Windows 2000™ and Windows XP™ platforms. Windows 98 is not supported by the BREW SDK. 9.Does BREW support multi-threading?BREW does not support multi-threading. BREW does have support for cooperative multi-tasking. 10.Can we link to Windows DLLs from the SDK?No. You should treat the SDK as a fully integrated stand-alone platform, which includes avoiding the C Standard Libraries. BREW has provided a port of the most common functions. 11.On what devices is BREW supported?Currently, support for BREW is only available for devices based on the following QUALCOMM chipsets: MSM3100, MSM3300, MSM5000, MSM5100, and MSM5105. In addition, for a particular phone or other device to support BREW, it must be "BREW enabled" with a version of the BREW runtime provided by the device's manufacturer. 12.What events must an applet handle?In addition to the obvious EVT_APP_START and EVT_APP_STOP, your applet must support EVT_APP_SUSPEND and EVT_APP_RESUME in order to pass True BREW Testing. 13.What difference is there between using the phone's "End" key to close an applet, and using the "Clear" key to close an applet?
case AVK_CLR:
Make sure that your FreeAppletData() properly cleans up all allocated memory and resources. All objects and interfaces created by CreateInstance, CreateDialog, MALLOC, etc., must have an associated call to Release or FREE.
if (pMe->OnMainMenu == TRUE) { // App is on main menu. Therefore pressing CLR key should cause app to exit HelloWorld_FreeAppData(pi); //clean up return FALSE; //return FALSE so that BREW will now close application } else { // Not on main menu. // Therefore pressing CLR key should cause app to undo one level of menu // nesting. Show previous menu in menu hierarchy return TRUE; } 14.How do I deal with a Low Battery Warning?BREW sends the running application an EVT_APP_SUSPEND event in the case of a Low Battery Warning. In order to handle low battery condition, you must correctly handle EVT_APP_SUSPEND and EVT_APP_RESUME events. 15.What is the difference between ISHELL_SendEvent() and ISHELL_ PostEvent()?
XML is no way clashes with HTML, since they are for two different purposes.
16.What notification events can an app register for?notifications: 17.How to test application for proper handling of Suspend/Resume events on a non- provisioned phone?On the Kyocera 3035, you can test your app's handling of Suspend/Resume events by enabling automatic Keyguard (Main Menu->Settings->Keyguard) before running your app. When the Keyguard kicks in, the running app will receive a Suspend Event. The app will receive Resume event when the screen is unlocked. 18.How to recover the phone from an "UndefInst Exception?""Undef Inst Exception" stands for "undefined instruction exception," and means that the program pointer has jumped to a code segment that contains an undefined instruction. This can be the result of memory corruption, a stack overrun, or version-related incompatibilities between applet code and the BREW image on the phone. 19.What is a "Re-entrant Data Abort?"The "Re-entrant Data Abort" exception is often caused by stack overrun. When an applet is running on the phone the stack size is small, and you are more likely to see stack overrun problems than when running on the emulator. Solutions to this problem are reducing the size or number of objects on the stack, and using objects allocated on the heap instead of automatic variables. 20.What is a "Pref Abort Exception?"A "Pref Abort Exception" usually indicates that memory important to the phone operating system has been trashed. The two most common causes of this exception are data corruption (i.e. running off the end of an array), and stack overruns. |