MTK platform learning-designing an application (organizing and forwarding)

Source: Internet
Author: User

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
Application.
C. Write highlight handlers for function registered. The function that is executed after the menu item is selected.
D. Write the Entry functions. Entry Function
E. Write the Exit function. Exit Function
F. Write the business logic to call between various entry functions.

2. mobile app Initialization
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. program entry, Program Guidance
-MMI task entry:
../Plutommi/MMI/framework/tasks/taskssrc file mmitask. C function mmi_task.
-Create An MMI task:
../Plutommi/MMI/framework/OSL/oslsrc file pixtelmmi. C function winmain calls the initapplication function,
Create An MMI task in this function. The interface function for creating a task is osl_create_task.
-MMI task information:
{"MMI task" (Task Name), "mmi q" (queue name), 127 (priority), 4096 (stack size ),
Max_prt_nodes (number of queue nodes), mmi_task (Task entry )},
-MMI module entry:
../Plutommi/MMI is the code of MMI modules.
For example, the source code of the alarm module is in ../plutommi/MMI/alarm/alarmsrc,
The header file is in ../plutommi/MMI/alarm/alarminc.
First, find the function alminit that initializes the alarm. This function defines to call the function highlightalmmenu to enter the alarm function when selecting the alarm menu item.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.