Brew程序的自动启动
来源:互联网 发布:数据挖掘导论中文答案 编辑:程序博客网 时间:2024/06/09 16:38
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.
- Brew程序的自动启动
- brew应用的开机自动启动
- 开机自启动 BREW 程序
- 程序的开机自动启动和卸载自动启动
- 修改开机自动启动的程序
- 自动启动软件的小程序
- 开机自动启动程序的函数:
- Ubuntu 自动启动程序的设置
- fedora 自动启动的程序管理器
- AutoCAD启动自动加载程序的研究
- brew中文本的自动换行
- brew安装的mysql启动报错
- linux 程序自动启动
- 程序开机自动启动
- 开机自动启动程序
- 开机自动启动程序
- 自动启动程序
- 程序自动启动
- 用碎玻璃“洗脸”的奇人
- Google.com去掉了Google search搜索按钮
- bt porting
- Linux网管学习笔记(12)Linux内核到底有多安全?
- getpid/getppid系统调用
- Brew程序的自动启动
- 互联网产品设计的“马化腾法则”
- Brew的C++写法
- HDOJ 1058 Humble Numbers [简单DP]
- Excel去除中文,只留英文和数字
- My Eclipse 6.5 快捷使用及问题解决
- 改进的希尔排序
- HDOJ 1098 Ignatius's puzzle [数学归纳]
- QT源码解析(一) QT创建窗口程序、消息循环和WinMain函数