MTK平台学习--设计一个应用程序(整理转发)


1.   To design an application one must follow the sequence as described:
     A. Write an Initialization function to register the various event handlers.
     B. Write a populate function to register various string and image elements for the
        application.
     C. Write highlight handlers for function registered.菜单项的功能,当用户选择菜单项后执行的函数。
     D. Write the Entry functions。入口函数
     E. Write the Exit function。出口函数
     F. Write the business logic to call between various entry functions.

2.   手机程序初始化
     A. there are three functions which allow to add init functions because not every application needs to be initialized if the SIM is not present..
          a. InitializeAll
          b. InitAllApplications
          c. InitInsertSimApp
     B. Here are the steps to show when these three functions are called..
          a. Power on the handset..
          b. InitializeAll() is called..
          c. Start to play power on animation..
          d. SIM is present or not present notification to MMI..
          e. Stop playing power on animation..
          f. If SIM is present, InitAllApplications() is called. If SIM is not present, InitInsertSimApp() is called..
     C.   There is a simple rule of where to add your initialization function..
          a. If your application always works no matter SIM is present or not, please add it in InitializeAll()..
          b. If your application is SIM-dependent, please add it in InitAllApplications() or InitInsertSimApp()..
         
3.   程序入口,程序导读
     -》MMI任务入口:
     ../plutommi/mmi/Framework/Tasks/TasksSrc中文件MMITask.c函数MMI_task。
     -》MMI任务的建立:
     ../plutommi/mmi/Framework/Osl/OslSrc中文件pixtelMMI.c函数WinMain调用InitApplication函数,
     在该函数中建立MMI任务,建立任务的接口函数为:osl_create_task。
     -》MMI任务信息:
     {"MMI TASK"(任务名称), "MMI Q"(队列名称), 127(优先级), 4096(堆栈大小),
     MAX_PRT_NODES(队列结点个数), MMI_task(任务入口)},
     -》MMI模块入口:
     ../plutommi/mmi中为MMI各个模块的代码。
     比如闹钟模块,源代码在../plutommi/mmi/Alarm/AlarmSrc中,
                   头文件在../plutommi/mmi/Alarm/AlarmInc中。
     首先找到初始化闹钟的函数AlmInit,该函数定义在选择闹钟菜单项时调用函数HighlightAlmMenu进入闹钟功能。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 4
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值