Recently Updated Brew Interview Questions Part – 2
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.”
/brew/ brewApp.mif
Generated by BREW MIF Editor.
/brew/ brewApp/ brewApp.bar
Generated by BREW Resource Editor.
/brew/ brewApp/ brewApp.mod
Compiled and linked with ARM BREW Builder.
/brew/ brewApp/ brewApp.sig
Digital Signature.
All directory and file names on the phone must be in lower case. Any additional files specific to your application may also be copied to the application directory, or subdirectories of the application directory.
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.
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.
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.
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.
What Compilers Can Be Used To Compile Brew Applications?
The ARM BREW Builder can be used to compile BREW applications.
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.
All files that are compiled in thumb mode MUST have the INTERWORK compiler option turned on. If this option is NOT turned on in the make file, the app will very likely crash.
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.
Does Brew Support Multi-threading?
BREW does not support multi-threading. BREW does have support for cooperative multi-tasking.
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.
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.
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.
What Difference Is There Between Using The Phone’s “end” Key To Close An Applet, And Using The “clear” Key To Close An Applet?
A key, that when pressed, will close the current application. Most OEMs designate this to be the AVK_CLR key.
A key, that when pressed, will close all applications. Most OEMs designate this to be the AVK_END key.
When AVK_END is pressed, BREW will immediately send EVT_APP_STOP to the active applet without first sending the AVK_END key. In addition, the FreeAppData() callback routine provided to AEEApplet_New() will be called prior to unloading the applet; no other events or callbacks will occur.
When AVK_CLR is pressed, BREW will first send this event to the applet. If the applet does not handle the event (i.e. returns FALSE in HandleEvent), only then BREW will close the application. In the implementation of your AVK_CLR handler, remember to also call FreeAppData as follows:
What Is The Difference Between Ishell_sendevent() And Ishell_ Postevent()?
XML is no way clashes with HTML, since they are for two different purposes.
ISHELL_SendEvent() :
In the case of ISHELL_SendEvent(), the event is immediately sent to the application of the specified Class ID. If an instance of that class is not currently present, the AEE Shell creates one, and then invokes its IAPPLET_HandleEvent() function with the specified event code and data parameters. Unless it chooses to start itself, the application terminates after it completes processing of the event.
The ISHELL_SendEvent() function allows for control over the destination applet. This function sends the event directly to the destination applet.
ISHELL_PostEvent() :
ISHELL_PostEvent() is similar, except that the destination class’s IAPPLET_HandleEvent() function is not called immediately. The event is placed in a queue and is sent at a later time, which allows the calling application to continue its processing without interruption.
The processing of events posted using ISHELL_PostEvent() is deferred until the next iteration of the event loop. This is useful in providing continued execution while allowing other events to be processed.