CN104333587B - A kind of method and system that multi-platform event is uniformly processed - Google Patents

A kind of method and system that multi-platform event is uniformly processed Download PDF

Info

Publication number
CN104333587B
CN104333587B CN201410598438.4A CN201410598438A CN104333587B CN 104333587 B CN104333587 B CN 104333587B CN 201410598438 A CN201410598438 A CN 201410598438A CN 104333587 B CN104333587 B CN 104333587B
Authority
CN
China
Prior art keywords
platform
label
event
labels
macrolanguage
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.)
Active
Application number
CN201410598438.4A
Other languages
Chinese (zh)
Other versions
CN104333587A (en
Inventor
张宝库
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Si Tech Information Technology Co Ltd
Original Assignee
Beijing Si Tech Information Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Si Tech Information Technology Co Ltd filed Critical Beijing Si Tech Information Technology Co Ltd
Priority to CN201410598438.4A priority Critical patent/CN104333587B/en
Publication of CN104333587A publication Critical patent/CN104333587A/en
Application granted granted Critical
Publication of CN104333587B publication Critical patent/CN104333587B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention relates to a kind of method and system that multi-platform event is uniformly processed, and include the following steps:Variable-definition, Row control and termination property in different system platform is packaged, self-defined macrolanguage label is obtained;Self-defined macrolanguage label is subjected to level combination according to affiliated system platform, and establishes communication connection between self-defined macrolanguage labels at different levels after combining, forms business event;When receive external transmission to the event render request of any system platform when, all self-defined macrolanguage labels in business event are parsed one by one, the translation code for any system platform asked.The present invention can effectively shield limitation of the multiple technologies platform to corresponding development technique, APP developer is only it should be understood that the use condition and parameter configuration meaning of current " macrolanguage ", specific logic of business functions can be combined by simply pulling label and work-in parameters in application development platform, realize personalized demand.

Description

A kind of method and system that multi-platform event is uniformly processed
Technical field
The present invention relates to the field of software development of mobile phone, more particularly to a kind of method that multi-platform event is uniformly processed and it is System.
Background technology
At present in the field of current phone software development, the generation each applied includes that mixed architecture (is based on HTML5+CS+ JS it) or based on IOS SDK, Android SDK develops.As soon as when user, which will develop an APP, to apply, this needs to develop Person grasps development languages, such companies such as HTML5, CSS, JS, Java or Objective C and just needs to recruit corresponding exploitation Personnel increase the cost of company.Equally when the new version APP of the identical UI of post-production, identical Android versions Event and the event of ios release be required for respectively developing a set of, the period of exploitation is also grown.Be unfavorable for APP it is quick exploitation and Iteration.
It mixes the APP (application that WebView controls i.e. based on SDK are developed) of version, when exploitation, needs to write and be based on The page of HTML5 and CSS style, and the JS of corresponding control handle event, such as need the verification for doing input frame, verify user's input Data whether be empty;Button event binding JS functions go hairnet network acquisition request network data.In the development process of application It is unable to do without the intervention of the mobile phone terminal developer of different platform.Such as need the developer of Android, IOS that this is coordinated to go to adjust Examination obtains network data, generates the installation kit (APK, IPA) of the APP with signature.
The APP (application that the SDK i.e. based on each platform is developed using the development language of corresponding platform) of primary version. The application of exploitation different platform just needs to recruit the developer of different platform, to cause development cost relatively high.Primary version APP exploitations period it is longer than mixing the application and development period of version always, and the probability for BUG occur is big.And on the other hand, In terms of the APP user experiences of primary version, in terms of Network Data Capture, possess the incomparable advantages of mixing version APP.Beautiful UI In addition good experience is greatly liked by intelligent terminal user, therefore the current APP overwhelming majority is primary version APP.
Invention content
Technical problem to be solved by the invention is to provide a kind of solution different technologies difference cell phone system platform processes things The method and system that the multi-platform event of the variability issues of part is uniformly processed.
The technical solution that the present invention solves above-mentioned technical problem is as follows:A kind of method that multi-platform event is uniformly processed, packet Include following steps:
Step 1:Variable-definition, Row control and termination property in different system platform is packaged, is made by oneself Adopted macrolanguage label;
Step 2:It is each by self-defined macrolanguage label according to affiliated system platform progress level combination, and after combining Communication connection is established between the self-defined macrolanguage label of grade, forms business event;
Step 3:When receive external transmission to the event render request of any system platform when, in business event All self-defined macrolanguage labels are parsed one by one, the translation code for any system platform asked.
The beneficial effects of the invention are as follows:The present invention can be shielded effectively more by self-defined JSTL labels " macrolanguage " The limitation of kind of technology platform to corresponding development technique, APP developer only it should be understood that the use condition of current " macrolanguage " and Parameter configuration meaning can be combined specifically in application development platform by simply pulling label and work-in parameters Logic of business functions realizes personalized demand, in smartphone software development field, innovate the mould of application and development Formula alleviates the difficulty and threshold that application and development is also reduced using the step of simplifying application and development to a certain extent.
Based on the above technical solution, the present invention can also be improved as follows.
Further, the type of the system platform includes android system platform, IOS system platforms, Android mixing Platform and IOS mixing platforms.
Further, the variable-definition include global variable, member variable, temporary variable, local variable and/or Session variables.
Further, the Row control includes that IF labels, while labels, For labels and/or Jump redirect label.
Further, the termination property includes opening system camera label, making a phone call label, play audio tag, broadcast It puts video video label and/or obtains GPS coordinate label.
Further, a kind of system that multi-platform event is uniformly processed, including package module, composite module and parsing module;
The package module, for being sealed to variable-definition, Row control and the termination property in different system platform Dress, obtains self-defined macrolanguage label;
The composite module, for self-defined macrolanguage label to be carried out level combination according to affiliated system platform, and Communication connection is established between self-defined macrolanguage labels at different levels after combining, forms business event;
The parsing module, for when receive external transmission to the event render request of any system platform when, it is right All self-defined macrolanguage labels in business event are parsed one by one, the translation generation for any system platform asked Code.
Further, the type of the system platform includes android system platform, IOS system platforms, Android mixing Platform and IOS mixing platforms.
Further, the variable-definition include global variable, member variable, temporary variable, local variable and/or Session variables.
Further, the Row control includes that IF labels, while labels, For labels and/or Jump redirect label.
Further, the termination property includes opening system camera label, making a phone call label, play audio tag, broadcast It puts video video label and/or obtains GPS coordinate label.
Description of the drawings
Fig. 1 is the method for the present invention flow chart of steps;
Fig. 2 is apparatus of the present invention structure chart.
In attached drawing, parts list represented by the reference numerals are as follows:
1, package module, 2, composite module, 3, parsing module.
Specific implementation mode
The principle and features of the present invention will be described below with reference to the accompanying drawings, and the given examples are served only to explain the present invention, and It is non-to be used to limit the scope of the present invention.
Fig. 1 is the method for the present invention flow chart of steps;Fig. 2 is apparatus of the present invention structure chart.
Embodiment 1
A kind of method that multi-platform event is uniformly processed, includes the following steps:
Step 1:Variable-definition, Row control and termination property in different system platform is packaged, is made by oneself Adopted macrolanguage label;
Step 2:It is each by self-defined macrolanguage label according to affiliated system platform progress level combination, and after combining Communication connection is established between the self-defined macrolanguage label of grade, forms business event;
Step 3:When receive external transmission to the event render request of any system platform when, in business event All self-defined macrolanguage labels are parsed one by one, the translation code for any system platform asked.
The type of the system platform include android system platform, IOS system platforms, Android mixing platform and IOS mixing platforms.
The variable-definition includes global variable, member variable, temporary variable, local variable and/or session variables.
The Row control includes that IF labels, while labels, For labels and/or Jump redirect label.The terminal is special Property include opening system camera label, making a phone call label, play audio tag, play video video label and/or obtain GPS Coordinate label.
A kind of system that multi-platform event is uniformly processed, including package module 1, composite module 2 and parsing module 3;
The package module 1, for being sealed to variable-definition, Row control and the termination property in different system platform Dress, obtains self-defined macrolanguage label;
The composite module 2, for self-defined macrolanguage label to be carried out level combination according to affiliated system platform, and Communication connection is established between self-defined macrolanguage labels at different levels after combining, forms business event;
The parsing module 3, for when receive external transmission to the event render request of any system platform when, it is right All self-defined macrolanguage labels in business event are parsed one by one, the translation generation for any system platform asked Code.
The type of the system platform include android system platform, IOS system platforms, Android mixing platform and IOS mixing platforms.
The variable-definition includes global variable, member variable, temporary variable, local variable and/or session variables.
The Row control includes that IF labels, while labels, For labels and/or Jump redirect label.
The termination property is regarded including opening system camera label, making a phone call label, broadcasting audio tag, broadcasting video Frequency marking label and/or acquisition GPS coordinate label.
The variable-definition of the different platform of self-defined JSTL labels " macrolanguage " encapsulation (including the Int of each platform, Double, character string, array, Map and timestamp etc.), the encapsulation of control flow statement is (including If, while, For, Jump etc. Deng) and termination property encapsulation (including camera is opened, the geographical locations GPS or connect with distance algorithm, Http network requests Mouthful encapsulation, network state detection etc.) design philosophy be this programme core value.
Using customized JSTL labels " macrolanguage ", unified event handling interface is provided, it is each flat to shield The otherness of platform, development of user only need the meaning of connection " macrolanguage " and can combine different business function things using rule Part.
Self-defined JSTL labels " macrolanguage " show form, by taking system camera is taken pictures as an example:
It is as follows in the label that development platform dragging comes, need the respective attributes of developer's label allocation, user to preserve mark Jsp file can be generated after label.
<terminal:SystemCameraTakePictureTag mUIBoxName=" interface title " quality=" Picture quality ">
<terminal:SystemCameraTakePictureCallBack resultStr=" readjustment JS function names " Name=" ">
// other event handling labels can be added herein
</terminal:SystemCameraTakePictureCallBack>
</terminal:SystemCameraTakePictureTag>
Java layer identification codes realize the parsing of self-defined JSTL " macrolanguage " label;
Corresponding jsp file, according to the parameter (such as ios platform, Android platform, mixing version) of the platform of request translation Different translation output can be triggered, to obtain different event code output.
IOS mixes version JS interfaces;
IOS needs the form " adjusted back " since particularity needs to intercept the event of the page using the variation of location To investigate the interface of primary encapsulation.
// take pictures and picture conversion
Android mixes version interface;
It is bound using Java object and JS objects, when event handling after direct JS object bindings java objects The object of Java can be investigated.
Binding mode is as follows:
Method of calling is as follows:
TempStr=" SystemCamera.takePicture (quality).
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent replacement, improvement and so on should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of method that multi-platform event is uniformly processed, which is characterized in that include the following steps:
Step 1:Variable-definition, Row control and termination property in different system platform is packaged, correspondence is respectively obtained Self-defined macrolanguage label;
Step 2:It is at different levels by respective defmacro linguistic labels according to affiliated system platform progress level combination, and after combining Communication connection is established between self-defined macrolanguage label, forms business event;
Step 3:When receive external transmission to the event render request of any system platform when, to all in business event Self-defined macrolanguage label is parsed one by one, the translation code for any system platform asked.
2. the method that multi-platform event according to claim 1 is uniformly processed, it is characterised in that:The kind of the system platform Class includes android system platform, IOS system platforms, Android mixing platform and IOS mixing platforms.
3. the method that multi-platform event according to claim 1 is uniformly processed, it is characterised in that:The variable-definition includes Global variable, member variable, temporary variable, local variable and/or session variables.
4. the method that multi-platform event according to claim 1 is uniformly processed, it is characterised in that:The Row control includes IF labels, while labels, For labels and/or Jump redirect label.
5. the method that multi-platform event according to claim 1 is uniformly processed, it is characterised in that:The termination property includes System camera label is opened, label is made a phone call, play audio tag, play video video label and/or obtains GPS coordinate mark Label.
6. a kind of system that multi-platform event is uniformly processed, it is characterised in that:It is conciliate including package module (1), composite module (2) Analyse module (3);
The package module (1), for being sealed to variable-definition, Row control and the termination property in different system platform Dress, respectively obtains corresponding self-defined macrolanguage label;
The composite module (2), for respective defmacro linguistic labels to be carried out level combination according to affiliated system platform, and Communication connection is established between self-defined macrolanguage labels at different levels after combining, forms business event;
The parsing module (3), for when receive external transmission to the event render request of any system platform when, to industry All self-defined macrolanguage labels in business event are parsed one by one, the translation code for any system platform asked.
7. the system that multi-platform event according to claim 6 is uniformly processed, it is characterised in that:The kind of the system platform Class includes android system platform, IOS system platforms, Android mixing platform and IOS mixing platforms.
8. the system that multi-platform event according to claim 6 is uniformly processed, it is characterised in that:The variable-definition includes Global variable, member variable, temporary variable, local variable and/or session variables.
9. the system that multi-platform event according to claim 6 is uniformly processed, it is characterised in that:The Row control includes IF labels, while labels, For labels and/or Jump redirect label.
10. the system that multi-platform event according to claim 6 is uniformly processed, it is characterised in that:The termination property packet It includes and opens system camera label, makes a phone call label, plays audio tag, plays video video label and/or obtain GPS coordinate Label.
CN201410598438.4A 2014-10-30 2014-10-30 A kind of method and system that multi-platform event is uniformly processed Active CN104333587B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410598438.4A CN104333587B (en) 2014-10-30 2014-10-30 A kind of method and system that multi-platform event is uniformly processed

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410598438.4A CN104333587B (en) 2014-10-30 2014-10-30 A kind of method and system that multi-platform event is uniformly processed

Publications (2)

Publication Number Publication Date
CN104333587A CN104333587A (en) 2015-02-04
CN104333587B true CN104333587B (en) 2018-07-17

Family

ID=52408236

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410598438.4A Active CN104333587B (en) 2014-10-30 2014-10-30 A kind of method and system that multi-platform event is uniformly processed

Country Status (1)

Country Link
CN (1) CN104333587B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105760162A (en) * 2016-02-04 2016-07-13 四川长虹电器股份有限公司 Development method for hybrid APP software
CN107203404B (en) * 2017-05-27 2020-08-04 北京思特奇信息技术股份有限公司 Code conversion method and system based on web
CN109729271B (en) * 2019-01-07 2021-01-12 Oppo广东移动通信有限公司 Camera configuration label processing method and device, electronic equipment and storage medium
CN111522582B (en) * 2020-04-23 2023-08-22 北京思特奇信息技术股份有限公司 Method and system for generating codes of different application platforms

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7140001B1 (en) * 1998-07-24 2006-11-21 Kabushiki Kaisha Toshiba Method for constructing business application system and computer-readable storage medium having stored framework for business application system
CN103677788A (en) * 2012-09-25 2014-03-26 深圳市金正方科技股份有限公司 Reuse framework generating method, device and application system based on J2EE distributed architecture
CN103713889A (en) * 2012-09-29 2014-04-09 三亚中兴软件有限责任公司 Method and device for developing, compiling and debugging application

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7140001B1 (en) * 1998-07-24 2006-11-21 Kabushiki Kaisha Toshiba Method for constructing business application system and computer-readable storage medium having stored framework for business application system
CN103677788A (en) * 2012-09-25 2014-03-26 深圳市金正方科技股份有限公司 Reuse framework generating method, device and application system based on J2EE distributed architecture
CN103713889A (en) * 2012-09-29 2014-04-09 三亚中兴软件有限责任公司 Method and device for developing, compiling and debugging application

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
移动互联网终端应用开发技术;杨勇等;《中兴通讯技术》;20131231;全文 *

Also Published As

Publication number Publication date
CN104333587A (en) 2015-02-04

Similar Documents

Publication Publication Date Title
JP6076248B2 (en) Broadcast communication cooperation system, application management server, and application management method in application management server
CN104333587B (en) A kind of method and system that multi-platform event is uniformly processed
Soares et al. Ginga-NCL: Declarative middleware for multimedia IPTV services
US20160227276A1 (en) Intelligent television operation system
US20070261090A1 (en) Interactive television application distribution, control, and communication system and methods
EP2418825A1 (en) Method and system for generating open telecommunication service based on internet
CN105389160A (en) Information issuing method and device
Zorrilla et al. A Web-based distributed architecture for multi-device adaptation in media applications
CN109644138A (en) Terrestrial broadcast television service over cellular broadcast systems
CN102799477A (en) Resource access method and apparatus
KR101290977B1 (en) Message transfer method using push server and the system thereby
CN105744341B (en) A kind of off-line type information issuing method and device
JP2011526771A (en) Method and apparatus for providing rich media service
CN114501068B (en) Video live broadcast method, architecture, system and computer readable storage medium
CN106506561B (en) A kind of flow-medium transmission method and device
JP5957291B2 (en) Receiving machine
CN104407907B (en) A kind of method and system that web tab is converted into different application platforms code
JP2012257228A (en) Receiver
CN108874418B (en) UI component updating method and device, terminal and computer-readable storage medium
CN103312663B (en) A kind of intelligent network business control device and method for processing business
CN107203404B (en) Code conversion method and system based on web
CN106105249A (en) Method for decoding service guide
Yoon Service delivery platform for open IPTV convergence service creation and management
CN109976740A (en) A kind of PaaS platform management system
US20120201183A1 (en) Femtocell Base Station and Initiative Message Broadcasting Method Thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant