CN102231106A - Method for generating application code of mobile and general development platform - Google Patents
Method for generating application code of mobile and general development platform Download PDFInfo
- Publication number
- CN102231106A CN102231106A CN2011101401053A CN201110140105A CN102231106A CN 102231106 A CN102231106 A CN 102231106A CN 2011101401053 A CN2011101401053 A CN 2011101401053A CN 201110140105 A CN201110140105 A CN 201110140105A CN 102231106 A CN102231106 A CN 102231106A
- Authority
- CN
- China
- Prior art keywords
- mobile
- platform
- script file
- script
- model
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
The invention provides a method for generating an application code of a mobile and general development platform. The method comprises the following steps: a mobile application developer uses a script language to describe application content and an UI (user interface) and stores the application content and the UI into a script file; an MUP (Model, View and controller) platform resolves the content described by the script file, selects mobile application frameworks abstracted in advance aiming at different mobile phone operating systems as well as combines and converts the script file content and the frameworks; and the MUP platform automatically generates executable codes of target mobile phone operating systems and provides debugging and testing mechanisms. By utilizing the technical scheme provided by the invention, the defects of extra time consumption and delayed UI operation brought by a middleware platform are overcome, thus the primary development of mobile application is realized in deed, the actual effect that each mobile phone operating system can operate is achieved, and the mobile and general development platform reaches the practical stage.
Description
Technical field
The present invention is applied in Software Development Platform, software development system, mobile application and development, mobile Internet, wireless Internet, Internet of Things, particularly a kind of method that realizes that mobile universal developing platform system and application code generate.
Background technology
As shown in Figure 1, existing mobile universal developing platform system is the notion of a middleware (middleware) substantially on the current market, the versatility that middleware provides is to adopt general api interface mechanism, provide consistent api interface and message format to upper layer application, lower floor is called power function or the system message of different mobile phone operating systems (as iPhone, Android, Windows Mobile etc.), realized that mobile application only need develop once, can on a plurality of mobile phone operating systems, move simultaneously.
Such general-purpose platform is because added a middle layer, many one deck function call or message transmission, operation has brought extra time overhead to system, therefore, the application program travelling speed is slow, the long problem of UI operant response time-delay is perplexing the developer always, make this class move the universal developing platform system and only have theoretic meaning, and do not have the value of practical application.
Summary of the invention
The present invention seeks to solve slow, the long shortcoming of UI operant response time-delay of application program travelling speed that present mobile universal developing platform system is brought, a kind of method that realizes that mobile universal developing platform system and application code generate is provided.
Technical scheme of the present invention: a kind of method that realizes that mobile universal developing platform application code generates may further comprise the steps:
S1. mobile application developer uses script to describe the content and the UI interface of using, and is saved in script file;
The content that S2.MUP platform analyzing script file is described is chosen the in advance abstract mobile application framework (MUP Framework is hereinafter to be referred as MUPF) that comes out at different mobile phone operating systems, the script file content is combined with framework and changes;
S3. the MUP platform generates target mobile phones operating system executable code automatically, and debugging and testing mechanism are provided.
Further, described mobile application framework comprises,
The UI interface module is used for layout, menu, button, combobox;
Mobile basic module is used to call, receives and dispatches note, read-write telephone directory;
Mobile expansion module is used to take pictures, GPS, positional information, Bluetooth;
Mobile application module is used for advertisement SDK, microblogging SDK, payment SDK, the SD of SNS community.
Further, described script is described the mode of using and is adopted the MVC pattern, is divided into Model, View, three parts of Controller, is saved in three class files.
Further, described Model file is used for describing the content and the processing logic of application; Described View file is used for describing the UI interface; Described Controller file is used for the describing message PIAPACS, receives the operation requests that sends from the View interface, is given to the Model resume module; Receive the result of Model module, be given to the View module and go to show.
Further, described MUP platform is resolved Model, View, Controller three class script files, and with corresponding skeleton code combination and conversion.
Further, resolve the View script file, the UI display interface is processed; Resolve the Controller script file, incident and message are passed to corresponding mobile phone operating system process; Resolve the Model script file, the Model script file is expanded the Message Processing call back function function of corresponding mobile phone operating system or is inherited the Message Processing class of mobile phone operating system, and data are processed.
Advantage of the present invention: the expense and the long shortcoming of UI operation delay extra time that adopts that technique scheme solved that middleware platform brought, thereby really realized the primary development of mobile application, the actual effect that each mobile phone operating system all can move, made mobile universal developing platform reach the practical stage.
Description of drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the invention, the accompanying drawing of required use is done to introduce simply in will describing embodiment below, and apparently, the accompanying drawing in describing below only is some embodiments of the present invention.
Fig. 1 is the figure of prior art systems;
Fig. 2 is the figure of system of the present invention.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, embodiment of the present invention is described further in detail below in conjunction with accompanying drawing.
As shown in Figure 2, the detailed embodiment and the step of patent of the present invention:
The first step: mobile application developer uses script to describe the content and the UI interface of using, and is saved in script file.
Script is selected the XML+JavaScript language for use, and in traditional Web exploitation, the two combines and can realize extraordinary description to content and UI interface that Web uses.
Patent of the present invention is taken the reason of traditional Web exploitation script: the descriptive power that the XML+JavaScript language is good; Reduce mobile developer's threshold, make traditional Web application developer can forward mobile application and development at an easy rate to.
Script is described the mode of using and is adopted the MVC pattern, promptly is divided into Model, View, three parts of Controller, and be saved in three class files: the Model file is used for describing the content and the processing logic of application; The View file is used for describing the UI interface; The Controller file is used for the describing message PIAPACS, receives the operation requests that sends from the View interface, is given to the Model resume module; Receive the result of Model module, be given to the View module and go to show.
Second step: the content of describing in the MUP platform analyzing script file combines and changes with the prior abstract mobile application framework MUPF that comes out;
The MUP platform takes out mobile application framework at different mobile phone operating systems, and the modular structure of framework is: the UI interface module: layout, menu, button, combobox etc.; Mobile basic module: call, receive and dispatch note, read-write telephone directory etc.; Mobile expansion module: take pictures, GPS, positional information, Bluetooth etc.; Mobile application module: advertisement SDK, microblogging SDK, payment SDK, the SDK of SNS community etc.;
The MUP platform is resolved Model, View, Controller three class script files, and with corresponding skeleton code combination and conversion.
Resolve the View script file, the UI display interface is done corresponding processing.For example: script comprises button, then button parameters (comprising position, shape, color etc.) is passed to the button module in the mobile application framework, in UI interface processing and demonstration;
Resolve the Controller script file, incident and message are passed to corresponding mobile phone operating system do processing.For example: the button click event is arranged, and the message processing module that then the button click event is passed to corresponding mobile phone operating system processes;
Resolve the Model script file, the Model script file is expanded the Message Processing call back function function of corresponding mobile phone operating system or is inherited the Message Processing class of corresponding mobile phone operating system system, and relevant data are processed.For example: after the button click event passes to corresponding mobile phone operating system, mobile phone operating system the call back function that provides for the outside can be provided come processing events and message, Model script file expansion call back function function realizes the processing of application data, and returns result.
The 3rd step: the MUP platform generates target mobile phones operating system executable code automatically according to result.
The MUP platform generates target mobile phones operating system executable code automatically, and debugging and testing mechanism are provided.
The invention described above embodiment sequence number is not represented the quality of embodiment just to description.
Claims (6)
1. realize the method that mobile universal developing platform application code generates, it is characterized in that, may further comprise the steps:
S1. mobile application developer uses script to describe the content and the UI interface of using, and is saved in script file;
The content that S2.MUP platform analyzing script file is described is chosen the in advance abstract mobile application framework that comes out at different mobile phone operating systems, the script file content is combined with framework and changes;
S3. the MUP platform generates target mobile phones operating system executable code automatically, and debugging and testing mechanism are provided.
2. method according to claim 1 is characterized in that: described mobile application framework comprises,
The UI interface module is used for layout, menu, button, combobox;
Mobile basic module is used to call, receives and dispatches note, read-write telephone directory;
Mobile expansion module is used to take pictures, GPS, positional information, Bluetooth;
Mobile application module is used for advertisement SDK, microblogging SDK, payment SDK, the SD of SNS community.
3. method according to claim 1 is characterized in that: described script is described the mode of using and is adopted the MVC pattern, is divided into Model, View, three parts of Controller, is saved in three class files.
4. method according to claim 3 is characterized in that:
Described Model file is used for describing the content and the processing logic of application;
Described View file is used for describing the UI interface;
Described Controller file is used for the describing message PIAPACS, receives the operation requests that sends from the View interface, is given to the Model resume module; Receive the result of Model module, be given to the View module and go to show.
5. method according to claim 1 is characterized in that: described MUP platform is resolved Model, View, Controller three class script files, and with corresponding skeleton code combination and conversion.
6. method according to claim 5 is characterized in that:
Resolve the View script file, the UI display interface is processed;
Resolve the Controller script file, incident and message are passed to corresponding mobile phone operating system process;
Resolve the Model script file, the Model script file is expanded the Message Processing call back function function of corresponding mobile phone operating system or is inherited the Message Processing class of mobile phone operating system, and data are processed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011101401053A CN102231106A (en) | 2011-05-27 | 2011-05-27 | Method for generating application code of mobile and general development platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011101401053A CN102231106A (en) | 2011-05-27 | 2011-05-27 | Method for generating application code of mobile and general development platform |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102231106A true CN102231106A (en) | 2011-11-02 |
Family
ID=44843673
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2011101401053A Pending CN102231106A (en) | 2011-05-27 | 2011-05-27 | Method for generating application code of mobile and general development platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102231106A (en) |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102509234A (en) * | 2011-12-28 | 2012-06-20 | 乐享(北京)文化传媒有限公司 | Method and system for advertisement display based on intelligent mobile terminal based |
CN102646035A (en) * | 2012-02-17 | 2012-08-22 | 南京南瑞继保电气有限公司 | Visualized code generation method based on combination of API (application programming interface) and script definition |
CN103135979A (en) * | 2011-12-05 | 2013-06-05 | 中国移动通信集团广东有限公司 | Method, device and system for generating terminal applications |
CN103179252A (en) * | 2011-12-20 | 2013-06-26 | 深圳市腾讯计算机系统有限公司 | Method for mobile terminal to conduct multi-media information exhibition and mobile terminal |
CN103176774A (en) * | 2011-12-21 | 2013-06-26 | 中国移动通信集团广东有限公司 | Compiling method, compiling device and compiling system of application program |
CN103207943A (en) * | 2012-01-11 | 2013-07-17 | 磨相软件公司 | Platform system based on network |
CN103513967A (en) * | 2012-06-15 | 2014-01-15 | 北京力美科技有限公司 | Method for applying SDK to mobile advertising platform |
CN103678100A (en) * | 2012-09-10 | 2014-03-26 | 联芯科技有限公司 | Application automatic testing method and system of terminal |
CN104156209A (en) * | 2014-08-06 | 2014-11-19 | 北京大学 | Cross-platform application interface modeling method and device |
CN104199672A (en) * | 2014-09-19 | 2014-12-10 | 北京金和软件股份有限公司 | System allowing users to generate mobile applications |
CN104572042A (en) * | 2013-10-15 | 2015-04-29 | 航天信息股份有限公司 | Cross-platform middleware device of mobile terminal equipment and implementation method of cross-platform middleware device of mobile terminal equipment |
CN105847552A (en) * | 2016-03-25 | 2016-08-10 | 乐视控股(北京)有限公司 | Application operation method of mobile terminal and mobile terminal |
CN106815000A (en) * | 2015-11-30 | 2017-06-09 | 北京奇虎科技有限公司 | A kind of code generating method and device |
CN108415692A (en) * | 2018-02-06 | 2018-08-17 | 上海易联网络技术有限公司 | One key generates the method and system of front end UI Bean plug-in units |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1859632A (en) * | 2006-05-29 | 2006-11-08 | 中国移动通信集团公司 | Method for providing package of mobile terminal service |
US20100017812A1 (en) * | 2008-07-18 | 2010-01-21 | Sybase, Inc. | Deploy Anywhere Framework For Heterogeneous Mobile Application Development |
CN101841569A (en) * | 2010-05-17 | 2010-09-22 | 成都中联信通科技有限公司 | Mobile phone payment method based on WEB technology for realizing platform crossing |
CN101980152A (en) * | 2010-10-18 | 2011-02-23 | 华南理工大学 | Mobile middleware system and implementation method thereof |
-
2011
- 2011-05-27 CN CN2011101401053A patent/CN102231106A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1859632A (en) * | 2006-05-29 | 2006-11-08 | 中国移动通信集团公司 | Method for providing package of mobile terminal service |
US20100017812A1 (en) * | 2008-07-18 | 2010-01-21 | Sybase, Inc. | Deploy Anywhere Framework For Heterogeneous Mobile Application Development |
CN101841569A (en) * | 2010-05-17 | 2010-09-22 | 成都中联信通科技有限公司 | Mobile phone payment method based on WEB technology for realizing platform crossing |
CN101980152A (en) * | 2010-10-18 | 2011-02-23 | 华南理工大学 | Mobile middleware system and implementation method thereof |
Cited By (22)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103135979B (en) * | 2011-12-05 | 2016-07-06 | 中国移动通信集团广东有限公司 | The generation method of terminal applies, Apparatus and system |
CN103135979A (en) * | 2011-12-05 | 2013-06-05 | 中国移动通信集团广东有限公司 | Method, device and system for generating terminal applications |
CN103179252B (en) * | 2011-12-20 | 2015-04-01 | 深圳市腾讯计算机系统有限公司 | Method for mobile terminal to conduct multi-media information exhibition and mobile terminal |
CN103179252A (en) * | 2011-12-20 | 2013-06-26 | 深圳市腾讯计算机系统有限公司 | Method for mobile terminal to conduct multi-media information exhibition and mobile terminal |
CN103176774A (en) * | 2011-12-21 | 2013-06-26 | 中国移动通信集团广东有限公司 | Compiling method, compiling device and compiling system of application program |
CN102509234A (en) * | 2011-12-28 | 2012-06-20 | 乐享(北京)文化传媒有限公司 | Method and system for advertisement display based on intelligent mobile terminal based |
CN102509234B (en) * | 2011-12-28 | 2016-05-04 | 北京北纬通信科技股份有限公司 | Advertisement demonstration method based on intelligent mobile terminal and system |
CN103207943A (en) * | 2012-01-11 | 2013-07-17 | 磨相软件公司 | Platform system based on network |
CN102646035A (en) * | 2012-02-17 | 2012-08-22 | 南京南瑞继保电气有限公司 | Visualized code generation method based on combination of API (application programming interface) and script definition |
CN103513967A (en) * | 2012-06-15 | 2014-01-15 | 北京力美科技有限公司 | Method for applying SDK to mobile advertising platform |
CN103678100B (en) * | 2012-09-10 | 2016-09-14 | 联芯科技有限公司 | The application automated testing method of terminal and system thereof |
CN103678100A (en) * | 2012-09-10 | 2014-03-26 | 联芯科技有限公司 | Application automatic testing method and system of terminal |
CN104572042B (en) * | 2013-10-15 | 2019-02-12 | 航天信息股份有限公司 | The cross-platform middleware device and its implementation of mobile terminal device |
CN104572042A (en) * | 2013-10-15 | 2015-04-29 | 航天信息股份有限公司 | Cross-platform middleware device of mobile terminal equipment and implementation method of cross-platform middleware device of mobile terminal equipment |
CN104156209B (en) * | 2014-08-06 | 2017-06-30 | 北京大学 | Cross-platform interface modeling method and device |
CN104156209A (en) * | 2014-08-06 | 2014-11-19 | 北京大学 | Cross-platform application interface modeling method and device |
CN104199672B (en) * | 2014-09-19 | 2017-09-29 | 北京金和软件股份有限公司 | The system that a kind of confession user generates Mobile solution |
CN104199672A (en) * | 2014-09-19 | 2014-12-10 | 北京金和软件股份有限公司 | System allowing users to generate mobile applications |
CN106815000A (en) * | 2015-11-30 | 2017-06-09 | 北京奇虎科技有限公司 | A kind of code generating method and device |
CN105847552A (en) * | 2016-03-25 | 2016-08-10 | 乐视控股(北京)有限公司 | Application operation method of mobile terminal and mobile terminal |
WO2017161839A1 (en) * | 2016-03-25 | 2017-09-28 | 乐视控股(北京)有限公司 | Application operation method in mobile terminal and mobile terminal |
CN108415692A (en) * | 2018-02-06 | 2018-08-17 | 上海易联网络技术有限公司 | One key generates the method and system of front end UI Bean plug-in units |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102231106A (en) | Method for generating application code of mobile and general development platform | |
CN102624697B (en) | A kind of Media method and system based on Quick Response Code | |
De Andrade et al. | Cross platform app: a comparative study | |
Zhou | The internet of things in the cloud | |
CN103309660B (en) | Mobile solution cross-platform development method | |
CN104580499A (en) | Method and device for accurately labeling positions | |
CN102541732B (en) | Method for constructing Web automatic testing framework | |
CN103312850A (en) | Mobile phone automation testing system and work method | |
CN103927163A (en) | Plugin frame processing device and plugin system | |
US10120660B2 (en) | Systems and methods for producing launchers for a mobile terminal | |
CN112041791A (en) | Method and terminal for displaying virtual keyboard of input method | |
US20210026531A1 (en) | Collaborative drawing method and electronic device therefor | |
CN103209203A (en) | Cross-platform application providing method and client | |
US20170177208A1 (en) | Systems and wearable devices and methods for operating a computer | |
CN105260082A (en) | Display method for test data and development terminal | |
CN103019712A (en) | Integrated application | |
CN103369140A (en) | Display font amplification method, system and communication terminal | |
CN104320387A (en) | Local module customizing method, terminal and server | |
CN111857658A (en) | Method, device, medium and electronic equipment for rendering dynamic component | |
CN103532941A (en) | Graphical page presentation method and device in CGS (client gateway server) mode | |
CN102087596A (en) | Embedded browsing device and multi-page mixed display method thereof | |
CN112491433B (en) | Control method of wearable device, wearable device and storage medium | |
CN113076262B (en) | Webpage automatic testing method and device | |
CN112637409B (en) | Content output method and device and electronic equipment | |
Mounir | Software engineering for mobile applications, a survey on challenges and solutions |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20111102 |