BrewAppAutoStart

所属分类:BREW编程
开发工具:Visual C++
文件大小:1KB
下载次数:16
上传日期:2009-09-09 15:28:09
上 传 者Keenfox
说明:  Brew程序自启动的实现方式,类似在Symbian中开发随机启动的程序。Brew中也是可以实现的,虽然实现的不是那么的彻底。
(Brew programs are implemented from the start, similar to Symbian to develop random start procedure. Brew also says can be achieved, although the implementation is not so thorough.)

Can my BREW application be notified when there is a TAPI event, such as an incoming call? You can register your app for TAPI Status Change event by modifying your MIF file: 1. In the MIF Editor, select the Advanced button 2. In the Notifications box, select the Add button 3. In the Custom field, enter the hex value for AEECLSID_TAPI (the hex value can be found in BREW\inc\AEECLASSIDS.h - 0x01001007) 4. In the Mask field, enter the hex value for NMASK_TAPI_STATUS (0x00000001) 5. Save the MIF file Your app will now be notified (via EVT_NOTIFY event) when there is a change in TAPI Status, such as an incoming call. Your app must handle the EVT_NOTIFY event. For example: case EVT_NOTIFY: { AEENotify* notifyData; TAPIStatus* tapiStatusData; notifyData = (AEENotify *)dwParam; if(notifyData->dwMask == NMASK_TAPI_STATUS) { tapiStatusData = (TAPIStatus*) notifyData->pData; if(tapiStatusData->state == PS_INCOMING) { //Incoming call // App may wake itself up by calling ISHELL_StartApplet() } } } Please refer to the INotify usage example for more information. TAPIStatus structure is defined in AEETapi.h. Please note that BREW 1.0 apps should not register for NMASK_SMS_TAPI because of a BREW 1.0 bug. Please refer to Registering for NMASK_TAPI_STATUS event notification causes device to be unable to connect to Application Download Server (ADS) for more information.

近期下载者

相关文件


收藏者