Original Author: Niu niu (sorting)
2005-02-28
Nhf_2008@hotmail.com
Nhf_2003@hotmail.com
Email: nhf20021166@163.com
Message: I hope to give you a basic introduction to brew. If you have any questions, please contact.
Supplement: smilelance
Lmoon2001@163.com
Http://www.mobileforum.cn/
1. Can users upload information to the developer's server? How are fees charged for data uploaded by users?
Yes. Brew supports socket and iWeb can also complete this task. (Brooks)
China Unicom's policy is to place all online servers in China Unicom's IDC network and allocate an internal URL and IP address to the server. Data uploaded by users is free of charge. However, China Unicom will charge information fees on your server
2. An error occurred while running the program after installing ads. The "the C-dilla Licence Management System" dialog box is displayed.
Has become into upt or is incomplete ", why?
After installing ads, you should first run debugger and then run ARMCC
3. When I run an application on the simulator, a digital signature failure error occurs when the application is started. Why?
When running an application on the simulator, the. Sig file should not be contained in the folder where the application is located; otherwise, a digital signature failure error may occur.
4. This application has been unloaded save memeory.
You must download a new version
The corresponding execution file, such as DLL or mod, cannot be found. If multiple execution files have similar problems...
5. privilege upload upt
Note that the priority is selected in the MIF file.
6. failed to create Interface
1)
Change the red font to your own struct.
If (CLSID = aeeclsid_tetris)
{
If (aeeapplet_new (sizeof (gameapp), CLSID, pishell, Po, (iapplet **) ppobj,
(Aeehandler) piece_handleevent, (pfnfreeappdata) tetris_freeappdata)
= True)
{
Return (aee_success );
}
}
Return (efailed );
2) Pay attention to the creation order
3) check whether the hardware supports interfaces.
4) select the priority in the command line.
7. Unknown error
Generally, it is related to the class ID. Check whether the IDs in the MIF and bid files are the same. compile all the projects.
8) the application cannot be started.
False is returned in evt_app_start. Check the cause.
9) failed to free all resdata
Check whether interfaces or objects and applied memory are not released.
10) the sound cannot be played normally.
This is generally because some time is not properly processed, such as evt_app_suspend, and the processing of the sound return function.
11) failed file read/write or creation,
Check whether the system has no space or the selection of the priority of MIF
11) question addition: there is another possibility of file read/write errors on the simulator,
That is, the default number of files in the simulator is insufficient,
Use brew device configurator to open the simulator used
File System
Change Max filses allowed to 65535.
12) Exceptions occur, but it is difficult to identify errors
Checks whether the array is out of bounds.
13) shutdown or crash (battery disconnection)
The pointer is invalid and its validity is determined when used as much as possible.
14) no response to the program
It may be caused by a status value. The event handler function is passed to another function for processing or the pointer is invalid.
15) the display page of the program is abnormal and messy.
For a single-host game, it may be timer processing; for a network, there may be other logic problems.
16) the input method of the control is abnormal.
Please pay attention to the issue of releasing or activating other control interfaces.
17) control switching
Handle the event in the evt_ctl_tab, which is difficult to handle elsewhere.
18) Yes. Arm cannot be compiled.
Check the corresponding prompt lines, such as float usage, type conversion, and whether the path in the Mak file is valid, such as spaces.
19) after the application is started, only the application name is displayed.
The directory may not exist.
20) error in the 1030 format,
Generally, signature files are incorrectly used.
21) reference other public modules. If creation fails
Check whether the module exists...
22) in online games, some addresses cannot be referenced normally.
Please note that the buffer length will be used. Use a part of it to see...
23) similar message loss
It may be a parsing problem. It should be resolved cyclically, instead of reading once, only once.
24) image transparency
Some mobile phones do not support certain color transparency.
25) the simulator does not respond when started, or the corresponding icon cannot be found.
Check whether there is a MIF and whether the class ID is the same. Disable the simulator, delete prefs. dat under examples, and restart the simulator ..
26) white screen after startup,
Check resource calling or update Screen
27) after the end key, exit the non-brew Manager interface on the system interface.
Resource release problems may occur.
28) if the Mak file is not successfully created or does not respond
Disable VC, delete the following Mak file, restart VC, and try again. For more information, see "manually modify Mak File ".
29) Mobile Phone output debugging problems
Brew logger cannot ensure that all the output of all dbgprs INTF is displayed...
30) Mobile Phone filling Problems
If a new project is added to a mobile phone, it usually needs to be restarted before it can be used. If it is found that the new project disappears after the restart, you can try to restart it again. For some mobile phones; generally, make sure that the test mode is enabled on the mobile phone. Second, check the space.
40) Please note that do not use Chinese names when filling your mobile phone, and do not randomly delete other files in it (into brew system files )...
41) message similar to memory upload upt
Check the simulator configuration file and select Windows Memory
42) try to simulate digital output in graphs, which is conducive to beautiful UI layout...
43) Call frequently-used resources once as much as possible. If it is not a frequently-used resource, you can consider using both calls and releases.
45) minimize the use of controls and facilitate the layout of the interface (such as static and menu)
46) for some mobile phones, the event sequence may be different. Please pay attention to the encoding habits, initialize the variables, clear the variables, and determine the availability when using the variables. For example, before some mobile phones close the application, handle pending events first
PS: Do not use uppercase letters for Project names and resource file names; otherwise, problems may occur,
Brew2.1 has a problem on the real machine. The simulator is OK, and brew3.1 also has an error.
All global variables in brew must be placed in a large struct,
Typedef struct myapp_s // This name is arbitrary
{
Aeeapplet A; // required
// Add the code here:
Int playermoney;
} MyApp; // This name is arbitrary.
Global variables cannot be used elsewhere;
Otherwise, an error will be prompted during arm compilation when it is placed on the mobile phone,
If you want to use a global array, you must add the const modifier as a constant.
Why did you receive the following error when trying to start the application? Error: "The application has been uninstalled to save memory. The new version must be downloaded ."
When the message appears on the simulator, the DLL application is lost. Use Visual C ++ (build (compile)-> rebuild all (re-compile all) to compile the application before running it in the simulator.
When the message appears on the phone, the MOD file cannot be found. If the app is downloaded using mobile shop, you can select YES to reload. If the application is downloaded using the brew app loader, make sure that you have downloaded the. MOD file.
F. Why does the simulator display a blank screen with my application name when my application exits?
Applicable versions: 1.0, 1.1, 2.0
Problem: When an application exits after running on the simulator, it does not return to the main menu screen, but shows a blank screen and the Application name in the upper left corner.
This is caused by the absence of all allocated memory before exiting the application. You must use free or iheap_free () to release any buffer allocated using malloc or iheap_malloc. For any instance of the brew class you created, you must call the corresponding release function to release the instance.
G. Why do I receive an "Unknown error (1)" when running the application )"?
Applicable versions: 1.0, 1.1, 2.0
Generally, this error occurs when the specified class ID in the. MIF file does not match the class ID in the application code. If the value of the following conditions is false, this error will occur (both on the simulator and on the phone ):
Int aeeclscreateinstance (aeeclsid CLSID, ishell * pishell, imodule * Po, void ** ppobj ){
** Ppobj = NULL;
If (CLSID = aeeclsid_myapp) {// it must be true to continue
// Aeeclsid_myapp value is included in the. Bid File
.........
}
.........
}
Make sure that the class ID in the. MIF file is the same as the class ID in the. Bid file. Note that you can use the MIF editor to locally generate a class ID for testing.
References
Qualcomm Website: http://brew.qualcomm.com/brew/zh.../documentation.html
Http://www.qualcomm.com/brew/developer/support/techfaq.html
Sunwhite FAQ
Blog: http://blog.csdn.net/sunwhite/