CN106708498A - Terminal for realizing multi-mode application page, method and system - Google Patents

Terminal for realizing multi-mode application page, method and system Download PDF

Info

Publication number
CN106708498A
CN106708498A CN201510799519.5A CN201510799519A CN106708498A CN 106708498 A CN106708498 A CN 106708498A CN 201510799519 A CN201510799519 A CN 201510799519A CN 106708498 A CN106708498 A CN 106708498A
Authority
CN
China
Prior art keywords
window
terminal
application page
corresponding modes
module
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.)
Withdrawn
Application number
CN201510799519.5A
Other languages
Chinese (zh)
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201510799519.5A priority Critical patent/CN106708498A/en
Priority to PCT/CN2016/104380 priority patent/WO2017084497A1/en
Publication of CN106708498A publication Critical patent/CN106708498A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • User Interface Of Digital Computer (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method for realizing a multi-mode application page; the method is applied to the terminal; the method includes a selecting step of selecting a corresponding mode of application page according to different scenes of the terminal; an acquiring step of controlling the application page of the corresponding mode and acquiring a window handle, and forming a window object; a display step of controlling the window object to display the application page of the corresponding mode. The invention further discloses a terminal for realizing the multi-mode application page, a method and a system. Through the invention, the multi-mode application page can be realized; the application and development efficiency is promoted, and the developed multi-mode application can better adapt to different scenes, thereby greatly promoting the user experience.

Description

A kind of terminal for realizing the multi-mode application page, method and system
Technical field
The present invention relates to a kind of terminal, realize the method and system of five application page, and in particular to one kind is realized The terminal of the multi-mode application page, method and system.
Background technology
With the rise and the popularization of intelligent terminal of internet, the demand to terminal applies is also greatly enhanced. Industry associated companies ensure five application page simultaneously all energetically exploring how quickly to develop terminal applies With good Consumer's Experience.Existing five application page can be divided into native applications (Native App) page, Mixing application (the Hybrid of web application (Web App) page and fusion native applications and web application function App) the page.The five application page of these three patterns respectively has advantage and disadvantage, and such as native applications page may have access to all End application interface, speed is fast, and preferably, but development cost is high, efficiency is low for page animation effect; Web application page holding equipment is extensive, but poor to page animation and high-resolution pictures support.It is mixed Close five application page and although combine some advantages of the native applications page and the web application page, but bring The experience of user is not as good as the native applications page, it is impossible to accesses some premium terminals application programming interfaces, also may be used Can occur that the page shows unstable phenomenon.
The content of the invention
It is existing to solve the invention provides a kind of terminal for realizing the multi-mode application page, method and system There is the simple user brought using the native applications page, the web application page or mixing five application page in technology The problems such as Experience Degree is poor, application and development is inefficient.
According to an aspect of the invention, there is provided a kind of method for realizing the multi-mode application page, the party Method is applied in terminal, and methods described includes:Selection step, the different scenes selection according to the terminal The applications pages noodles of corresponding modes;Obtaining step, controls the applications pages noodles of the corresponding modes to obtain window Mouth handle, forms window object;And step display:The window object is controlled to show the corresponding modes Five application page.
According to an aspect of the present invention, a kind of terminal is additionally provided, the terminal includes memory and place Reason device, storage program instruction in the memory, processor treatment described program instruction with perform with Lower step:Selection step, the different scenes according to the terminal select the applications pages noodles of corresponding modes; Obtaining step, controls the applications pages noodles of the corresponding modes to obtain window handle, forms window object; And step display:The window object is controlled to show the five application page of the corresponding modes.
According to an aspect of the present invention, a kind of system for realizing the multi-mode application page is additionally provided, should System is applied in terminal, and the system includes:Selecting module, for the different fields according to the terminal Scape selects the applications pages noodles of corresponding modes;Acquisition module, the applications pages for controlling the corresponding modes Noodles obtain window handle, form window object;And display module, for controlling the window object to show Show the five application page of the corresponding modes.
According to the present invention, by judging the different scenes of terminal, the applications pages of corresponding modes are neatly selected Face is shown, it is achieved thereby that a kind of multi-mode application page, not only improves the efficiency of application and development, And the multi-mode application developed can better adapt to different scenes, greatly improve user's Experience.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes of the application Point, schematic description and description of the invention is used to explain the present invention, does not constitute to of the invention Improper restriction.In the accompanying drawings:
Fig. 1 is the display schematic diagram of the native applications page in the prior art;
Fig. 2 is the display schematic diagram of the web application page in the prior art;
Fig. 3 is a kind of display schematic diagram of the preferred embodiment for mixing five application page of the present invention;
Fig. 4 is a kind of functional block diagram of the preferred embodiment of the system for realizing the multi-mode application page;
Fig. 5 is a kind of structural representation of the preferred embodiment of the method for realizing the multi-mode application page of the present invention Figure;
Fig. 6 is the preferable implementation of the window class that a kind of method for realizing the multi-mode application page of the present invention is used The module map of example;
Fig. 7 is a kind of method flow of the preferred embodiment of the method for realizing the multi-mode application page of the present invention Figure;
Fig. 8 is a kind of method of another preferred embodiment of the method for realizing the multi-mode application page of the present invention Flow chart;
Fig. 9 is the preferable reality of recovery window handle in a kind of method for realizing the multi-mode application page of the present invention Apply the method flow diagram of example.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out Clearly and completely describe, described embodiment is only section Example of the invention, and not all reality Apply example.Based on the embodiment in the present invention, those of ordinary skill in the art are not paying creative work On the premise of the other embodiment that is obtained belong to protection scope of the present invention.
Fig. 1 is the schematic diagram that the native applications page 10 shows on the terminal 1 in the prior art.It is described primary It refer to the five application page generated using primary component using (Native App) page 10.The terminal 1 Can be mobile phone, computer, TV etc..In the present embodiment, on the display interface of the native applications page 10 Including " title ", " content ", " label " etc. (as shown in Figure 1).The native applications page 10 Primary Components Development is all based on, the native applications page 10 of display is good with the suitability of the terminal 1, Operation is smooth, but the development efficiency of the native applications page 10 is relatively low and high cost, portable poor.
Fig. 2 is the display schematic diagram on the terminal 1 of the web application page 20 in the prior art.The webpage It refer to the five application page generated using webpage view (Webview) component using (Web App) page 20. Include " title ", " content ", " mark in the present embodiment, on the display interface of the native applications page 20 (as shown in Figure 2) such as label " is invoking web page view component loaded page in the web application page 20, all Face, web application is based on (the Hyper Text Markup Language abbreviations HTML of HTML 5 5) develop, portable strong, development efficiency is high, but the rendering capability of webpage view component is than primary group Part is poor, and different operating system and equipment performance be also influence webpage view component performance it is important because Element, therefore, simply use webpage view component generation the web application page 20 bring the experience of user compared with Difference.
Fig. 3 is the schematic diagram that a kind of mixing five application page 30 shows preferred embodiment on the terminal 1.Institute It refers to utilize native applications component and webpage view group simultaneously that mixing is stated using (Hybrid App) page 30 The five application page of part generation.In the present embodiment, the mixing five application page 30 simultaneously using primary component and Webpage view component, it is high for experience requirements by the analysis to five application page, animation effect complexity Component, is realized using primary component, and relatively low to requiring, is laid out the complicated page, then regarded using webpage Figure component is realized.The proportion of the element according to five application page, can use three kinds to mixing five application page 30 Layout type, the element refers to component and data in five application page.Three kinds of layout type are as follows:The One kind, based on primary component, webpage view component is embedded into five application page.This layout type is fitted Close the more complicated functional module of business function logicality to be developed using webpage view component, so as at each end It is general in the application of end, such as a functional module for film is ordered, it is necessary to obtain price, means of payment, defeated Enter password and confirmation pays the treatment that successfully these flows are related to the interaction of multiple systems and functional module, industry Business function logic is complicated, is developed using webpage view component, the functional module is had transplantability, Realize once with regard to compatible multiple systems;Second, based on webpage view component, primary component floats In layout.This layout type is adapted to component cannot be realized using webpage view component, need to be using original Raw component such as player assembly, CCD camera assembly etc. are realized.The third, primary component and webpage view group Part scattered distribution.The more complicated situation of the third suitable mixing five application page 30, for example, need to enable many Individual webpage view component generation mixing five application page 30, is easily caused display exception, and application scenarios are less.
Fig. 4 is a kind of functional module of the preferred embodiment of the system for realizing the multi-mode application page of the present invention Figure.The five application page of the Three models as shown in above-mentioned Fig. 1, Fig. 2 and Fig. 3, Fig. 4 is described to realizing The system of the five application page of Three models is described.This realizes that the system 4 of the multi-mode application page includes One or more modules, the system is installed in the terminal 1.In the present embodiment, it is one Or multiple modules include:Selecting module 40, acquisition module 41, display module 42, inherit module 43, Judge module 44, release module 45 and recycling module 46, the system 4 for realizing the multi-mode application page Also include processor 47 and memory 48.
Module alleged by the present invention refers to by the computing device of terminal and completes the one of certain technical functionality and be Column count machine program segment, in the memory 48, the processor 47 performs the calculating for its storage Machine program segment.
The selecting module 40, the application for selecting corresponding modes according to the different scenes of the terminal 1 Classes of pages 51 (as shown in Figure 5).In the present embodiment, the different scenes can include:The terminal 1 different operating system, the different editions of operating system, different screen resolutions etc..The respective mode The applications pages noodles 51 of formula refer to the corresponding native applications classes of pages of different scenes, web application classes of pages and Mix one kind of the applications pages noodles of the Three models of applications pages noodles.
The acquisition module 41 is used to control the applications pages noodles 51 of the corresponding modes to obtain window handle 520, form window object 53.The window handle 520 is obtained (such as Fig. 5 institutes from window pond 52 Show), the applications pages noodles 51 of the corresponding modes are instantiated after obtaining window handle 520, are formed Window object 53.
The display module 42, for controlling the window object 53 to show the applications pages of the corresponding modes Face.
For example, for the different scenes of terminal 1, selecting module 40 needs to select answering for corresponding modes With classes of pages 51.The applications pages noodles 51 of the scene of above-mentioned five application page and selectable corresponding modes can be with It is set as:
Scene 1:The applications pages noodles 51 of corresponding modes are selected according to different operating system.Such as terminal 1 It is to use formula terminal operating system of increasing income, then selecting module 40 selects native applications classes of pages;For closing Formula terminal operating system, the then selection of selecting module 40 mixes applications pages noodles.
Scene 2:The applications pages noodles of corresponding modes are selected according to the different system version of same operating system 51.If the version before Android4.0 is due to the compatible poor of webpage view component, therefore selection Module 40 selects native applications classes of pages;Version after Android4.0, selecting module 40 is then selected Select web application classes of pages.
Scene 3:The applications pages that different screen aspect ratios select corresponding modes are possessed according to different terminals 1 Noodles 51.Terminal such as big for screen aspect ratio, the selection mixing applications pages noodles of selecting module 40;It is right In the small terminal of length-width ratio, the selection web application classes of pages of selecting module 40.
In embodiment, the scene of terminal 1 is judged selecting module 40 and selection can be by extensible markup Language (Extensible Markup Language, XML) (hereinafter referred to as XML) plug-in unit 50 is realized (as shown in Figure 5).XML plug-in units 50 are according to condition selected by judging the different Scene realization of terminal 1 The applications pages noodles 51 of corresponding modes, it is to avoid hard coded, improve the flexibility applied in terminal 1, Facilitate the maintenance of version.A kind of XML of the applications pages noodles 51 according to different scenes selection corresponding modes The form of plug-in unit 50 is as follows:
< pages key=" home " >
< page check=" default " value=" com.test.homeWebwindow "/>
< page check="
{ system }==android&&version > 4.0&&width > 1028&&height > 720 "
Value=" com.test.homeWebwindow "/>
< page check=" { system }==ios&&version > 7&&width > 1028&&height > 720 "
Value=" homeHybridwindow "/>
</pages >
Wherein, each five application page corresponds to a pages configuration item, and the pages is father's mark of page Sign, pages includes multiple page subtabs, each page tag representation selects the applications pages of corresponding modes The condition of noodles 51.Wherein key represents the unique identifier of the five application page, when five application page is opened, Only need to specify the identifier.Pagecheck is the Rule of judgment to scene, including terminal 1 operation System, version, screen aspect ratio etc..If scene is default (default), expression cannot be matched Rule of judgment, acquiescence selection web application classes of pages (homeWebwindow), value represents respective mode The bag path of the applications pages noodles 51 of formula.
The applications pages noodles 51 of above-mentioned corresponding modes are the collection of data related to five application page and handling function Zoarium, specifically, native applications classes of pages can realize the interface of primary component, and primary component can be cloth Office's class, text class, picture class component etc., web application classes of pages can realize the interface of webpage view component, Realizable function in webpage view component includes getUrl (), loadUrl () etc., and mixes applications pages Noodles need to realize the interface of primary component and the interface of webpage view component simultaneously.
After the applications pages noodles 51 of five application page selection corresponding modes, the control of the acquisition module 41 institute The applications pages noodles 51 for stating corresponding modes obtain window handle 520, form window object 53, display module 42 most at last the native applications page 10, the web application page 20 or mixing five application page 30 be shown to user.
It is described to inherit the window that module 43 is used for the succession corresponding modes of applications pages noodles 51 of the corresponding modes Openning class.The Window subclass of the corresponding modes inherits the window class for encapsulating the public method function of bottom. Easily to manage the applications pages noodles of Three models, in another embodiment, in the corresponding modes Applications pages noodles 51 obtain window handle 520 and are instantiated by acquisition module 41, form window pair Before 53, the applications pages noodles 51 that may also include the corresponding modes inherit window of corresponding modes Class, the Window subclass of the corresponding modes is inherited and encapsulates the window class 60 of the public method function of bottom (such as Shown in Fig. 6).The window class 60 unification encapsulates the public method function of bottom, it is preferable that may include Call function, the function of management historical record storehouse and the control window class life cycle of transition animation Function.Wherein, calling the function of transition animation is used to realize that five application page switches in five application page transition Animation effect, managing the function of historical record storehouse is used to preserve the page that browses, destroys, Control window class life cycle function is used to manage the establishment of window class, beginning, stops and destroy.Window Class 60 derives from three Window subclass, respectively native applications Window subclass, web application Window subclass, mixed Application widget subclass is closed, and native applications classes of pages, web application classes of pages, mixing applications pages noodles divide Above-mentioned native applications Window subclass, web application Window subclass, mixing application widget subclass are not inherited.Tool For body, native applications Window subclass can realize the interface of primary component, primary component can for layout class, Text class, picture class component etc., web application Window subclass can realize the interface of webpage view component, net Realizable function in page view component includes getUrl (), loadUrl () etc., and mixes application window openning Class needs to realize the interface of primary component and the interface of webpage view component simultaneously.In module 43 is inherited, Corresponding window class subclass is inherited respectively using the applications pages noodles of corresponding modes, can make answering for the pattern Specific layout and service logic need to be only realized with classes of pages, and bottom basic function part need not be paid close attention to, The framework of this separate type reduces the coupling of functional module, improves development efficiency.
Whether the judge module 44 is used for the quantity of the window handle 520 for judging the distribution of window pond 52 Up to preset maximum value.Described preset maximum value refers to that when initialization management is carried out to window pond 52, can set The fixed a certain regular quantity to determine window handle 520.In this embodiment, the rule for setting is as maximum Number rule, i.e., the quantity of the window handle 520 of preset maximum value in window pond 52.Maximum number rule can Increased with limiting the unrestricted of window object 53, it is ensured that management and optimization to the internal memory of terminal 1.If window The quantity of the window handle 520 distributed in mouth pond 52 is not reaching to preset maximum value, then acquisition module 41 The window handle 520 for controlling the applications pages noodles 51 of corresponding modes to obtain in window pond 52 is instantiated, Formed window object 53, display module 42 most at last the native applications page 10, the web application page 20 or Mixing five application page 30 is shown to user.
The release module 45 is used to reached when the quantity of the window handle 520 distributed in window pond 52 Preset maximum value, the release window object 53 of control window pond 52.When there is no available window in window pond 52 During mouth handle 520, release module 45 can be according to the priority of window object 53 and establishment successively, control Window pond 52 processed performs release rule and window object 53 is discharged.In the present embodiment, it is described to release It is the low window object 53 of first Release priority level to put rule, and in the case where priority is equal, release is created Time window object 53 at most.After window pond 52 has performed release rule, just have in window pond 52 Assignable window handle 520, the judge module 44 judges the window distributed in window pond 52 again Whether the quantity of handle 520 has reached preset maximum value.
The recycling module 46 is used at the end of the display of the five application page, unload window object 53 On five application page element, and control the window pond 52 to reclaim the window handle 520.Described time Module 46 is received to be additionally operable to judge whether carry out data buffer storage to five application page.For frequent operation, loading frequency Rate five application page higher, can carry out data buffer storage to the five application page, during display next time, can be quick Ground loading, without re-request data.If the five application page need not cache five application page data, tie Line journey.If desired the data of five application page are cached, then the recycling module 46 is additionally operable to carry out data and delays Deposit and terminate the recovery of the window object 53.
Fig. 7 is a kind of method flow of the preferred embodiment of the method for realizing the multi-mode application page of the present invention Figure.The five application page generating mode of the Three models as shown in above-mentioned Fig. 1, Fig. 2 and Fig. 3, Fig. 7 is right The system of selection of the five application page of the Three models is described.
Step 70:Selecting module 40 selects the applications pages of corresponding modes according to the different scenes of the terminal 1 Noodles.In the present embodiment, the different scenes can include:The different operating system of the terminal 1, Different screen resolution etc..
Step 71:Acquisition module 41 controls the applications pages noodles 51 of the corresponding modes to obtain window handle 520, form window object 53.The window handle 520 is obtained (such as Fig. 5 institutes from window pond 52 Show), the applications pages noodles 51 of the corresponding modes are instantiated after obtaining window handle 520, are formed Window object 53.
Step 72:Display module 42 controls the window object 53 to show the applications pages of the corresponding modes Face.
For example, for same five application page to be shown, for the different scenes of terminal 1, Selecting module 40 needs to select the applications pages noodles 51 of corresponding modes.The scene of above-mentioned five application page and optional The applications pages noodles 51 of the corresponding modes selected can be set as:
Scene 1:The applications pages noodles 51 of corresponding modes are selected according to different operating system.Such as terminal 1 It is to use formula terminal operating system of increasing income, then selecting module 40 selects native applications classes of pages;For closing Formula terminal operating system, the then selection of selecting module 40 mixes applications pages noodles.
Scene 2:The applications pages noodles of corresponding modes are selected according to the different system version of same operating system 51.If the version before Android4.0 is due to the compatible poor of webpage view component, therefore selection Module 40 selects native applications classes of pages;Version after Android4.0, selecting module 40 is then selected Select web application classes of pages.
Scene 3:The applications pages that different screen aspect ratios select corresponding modes are possessed according to different terminals 1 Noodles 51.Terminal such as big for screen aspect ratio, the selection mixing applications pages noodles of selecting module 40;It is right In the small terminal of length-width ratio, the selection web application classes of pages of selecting module 40.
In embodiment, the scene of terminal 1 is judged selecting module 40 and selection can be by extensible markup language (Extensible Markup Language, XML) (hereinafter referred to as XML) plug-in unit 50 is realized (such as Shown in Fig. 5).XML plug-in units 50 are according to condition selected accordingly by judging the different Scene realization of terminal 1 The applications pages noodles 51 of pattern, it is to avoid hard coded, improve the flexibility applied in terminal 1, convenient The maintenance of version.A kind of XML plug-in units of the applications pages noodles 51 according to different scenes selection corresponding modes 50 form is as follows:< pages key=" home " >
< page check=" default " value=" com.test.homeWebwindow "/>
< page check="
{ system }==android&&version > 4.0&&width > 1028&&height > 720 "
Value=" com.test.homeWebwindow "/>
< page check=" { system }==ios&&version > 7&&width > 1028&&height > 720 "
Value=" homeHybridwindow "/>
</pages >
Wherein, each five application page corresponds to a pages configuration item, and the pages is father's mark of page Sign, pages includes multiple page subtabs, each page tag representation selects the applications pages of corresponding modes The condition of noodles 51.Wherein key represents the unique identifier of the five application page, when five application page is opened, Only need to specify the identifier.Pagecheck is the Rule of judgment to scene, including terminal 1 operation System, version, screen aspect ratio etc..If scene is default (default), expression cannot be matched Rule of judgment, acquiescence selection web application classes of pages (homeWebwindow), value represents respective mode The bag path of the applications pages noodles 51 of formula.
The applications pages noodles 51 of above-mentioned corresponding modes are the collection of data related to five application page and handling function Zoarium, specifically, native applications classes of pages can realize the interface of primary component, and primary component can be cloth Office's class, text class, picture class component etc., web application classes of pages can realize the interface of webpage view component, Realizable function in webpage view component includes getUrl (), loadUrl () etc., and mixes applications pages Noodles need to realize the interface of primary component and the interface of webpage view component simultaneously.
After the applications pages noodles 51 of five application page selection corresponding modes, the control of the acquisition module 41 institute The applications pages noodles 51 for stating response modes obtain window handle 520, form window object 53, display module 42 most at last the native applications page 10, the web application page 20 or mixing five application page 30 be shown to user.
Easily to manage the applications pages noodles of Three models, in another embodiment, in the respective mode The applications pages noodles 51 of formula obtain window handle 520 and are instantiated by acquisition module 41, form window Before mouthful object 53, may also include inherit module 43 control the applications pages noodles 51 of the corresponding modes after Hold the Window subclass of corresponding modes.The Window subclass of the corresponding modes is inherited and encapsulates the public side of bottom The window class 60 (as shown in Figure 6) of method function.The window class 60 unification encapsulates the public method of bottom Function, it is preferable that may include to call the function of transition animation, the function of management historical record storehouse and Control the function of window class life cycle.Wherein, calling the function of transition animation is used to turn in five application page The animation effect of five application page switching is realized in, the function for managing historical record storehouse is used for browsing The page is preserved, destroyed, and control window class life cycle function is used to manage the establishment of window class, opens Begin, stop and destroy.Three Window subclass of derivation of window class 60, respectively native applications Window subclass, Web application Window subclass, mixing application widget subclass, and native applications classes of pages, the web application page Class, mixing applications pages noodles inherit respectively above-mentioned native applications Window subclass, web application Window subclass, Mixing application widget subclass.Specifically, native applications Window subclass can realize the interface of primary component, Primary component can be layout class, text class, picture class component etc., and web application Window subclass can realize net The interface of page view component, the realizable function in webpage view component includes getUrl (), loadUrl () Deng, and mix application widget subclass needs while realizing the interface of primary component and connecing for webpage view component Mouthful.In module 43 is inherited, corresponding window class is inherited respectively using the applications pages noodles of corresponding modes Class, can make the applications pages noodles of the pattern need to only realize specific layout and service logic, and without closing Note bottom basic function part, the framework of this separate type reduces the coupling of functional module, improves Development efficiency.
Fig. 8 is a kind of method of another preferred embodiment of the method for realizing the multi-mode application page of the present invention Flow chart.
Step 80:Selecting module 40 selects the applications pages of corresponding modes according to the different scenes of the terminal 1 Noodles.
Step 81:Whether judge module 44 judges the quantity of the window handle 520 of the distribution of window pond 52 Up to preset maximum value.Described preset maximum value refers to that when initialization management is carried out to window pond 52, can set The fixed a certain regular quantity to determine window handle 520.In this embodiment, the rule for setting is as maximum Number rule, i.e., the preset maximum value of window pond 52 window handle 520 quantity.Maximum number rule can be with Limit the unrestricted growth of window object 53, it is ensured that management and optimization to tag memory.If window pond 52 The quantity of the window handle 520 of distribution is not reaching to preset maximum value, and window is controlled without release module 45 The release window object 53 of pond 52, turns to flow 81.If the number of the window handle 520 of the distribution of window pond 52 Amount has reached preset maximum value, then turn to step 84.
Step 82:Acquisition module 41 controls the applications pages noodles 51 of the corresponding modes to obtain window handle 520, form window object 53.
Step 83:Acquisition module 41 controls the applications pages noodles 51 of the corresponding modes to obtain window handle 520, form window object 53.The window handle 520 is obtained (such as Fig. 5 institutes from window pond 52 Show), the applications pages noodles 51 of the corresponding modes are instantiated after obtaining window handle 520, are formed Window object 53.
Step 84:When the quantity of the window handle 520 distributed in window pond 52 has reached preset maximum value, The release window object 53 of the control window of release module 45 pond 52.When there is no available window in window pond 52 During handle 520, release module 45 can be according to the priority of window object 53 and establishment successively, control Window pond 52 performs release rule and window object 53 is discharged.In the present embodiment, the release Rule is the low window object 53 of first Release priority level, in the case where priority is equal, when release is created Between window object 53 at most.After window pond 52 has performed release rule, be there has been in window pond 52 Assignable window handle 520, turns to flow 81.
Fig. 9 is the preferable reality of recovery window handle in a kind of method for realizing the multi-mode application page of the present invention Apply the method flow diagram of example.
Step 91:At the end of five application page shows, answering on the unloading window object 53 of recycling module 46 With the element of the page, the window pond 52 is controlled to reclaim the window handle 520.
Step 92:The recycling module 46 judges whether to carry out data buffer storage to five application page.For operation Frequently, loading frequency five application page higher, can carry out data buffer storage to the five application page, and next time is aobvious When showing, can rapidly load, without re-request data.If the five application page need not cache applications pages Face data, then terminate flow.
Step 93:If desired the data of five application page are cached, then the recycling module 46 carries out data buffer storage And terminate the recovery of the window object 53.
The content mentioned in above-described embodiment is preferred embodiment of the invention, not limitation of the invention, Without departing from the inventive concept of the premise, any obvious replacement is in protection scope of the present invention It is interior.

Claims (15)

1. a kind of method for realizing the multi-mode application page, the method is applied in terminal, it is characterised in that Methods described includes:
Selection step, the different scenes according to the terminal select the applications pages noodles of corresponding modes;
Obtaining step, controls the applications pages noodles of the corresponding modes to obtain window handle, forms window pair As;And
Step display, controls the window object to show the five application page of the corresponding modes.
2. method according to claim 1, it is characterised in that the selection step is further included: Judge the different scenes of the terminal using XML plug-in units and select the applications pages noodles of corresponding modes.
3. method according to claim 1, it is characterised in that methods described the obtaining step it It is preceding also to include:Step is inherited, the five application page Similar integral corresponding modes of the corresponding modes are controlled Window subclass.
4. method according to claim 1, it is characterised in that also include before the obtaining step: Judge step, judge whether the quantity of the window handle of window pond distribution has reached preset maximum value, If the quantity of the window handle of the window pond distribution does not reach preset maximum value, perform described Obtaining step;And
Release steps, if the quantity of the window handle of window pond distribution reaches preset maximum value, The window pond is controlled to discharge the window object.
5. method according to claim 1, it is characterised in that methods described the step display it Also include afterwards:Recycling step, when the display of the five application page terminates, institute is reclaimed in control window pond State window handle.
6. a kind of terminal, the terminal includes memory and processor, storage program instruction in the memory, The processor treatment described program instructs to perform following steps:
Selection step, the different scenes according to the terminal select the applications pages noodles of corresponding modes;
Obtaining step, controls the applications pages noodles of the corresponding modes to obtain window handle, forms window pair As;And
Step display, controls the window object to show the five application page of the corresponding modes.
7. terminal according to claim 6, it is characterised in that the selection step further includes profit Judge the different scenes of the terminal with XML plug-in units and select the applications pages noodles of corresponding modes.
8. terminal according to claim 6, it is characterised in that the processor is performing the acquisition Also performed before step:Step is inherited, controls the five application page Similar integral of the corresponding modes corresponding The Window subclass of pattern.
9. terminal according to claim 6, it is characterised in that the processor is performing the acquisition Also include before step:
Judge step, judge whether the quantity of the window handle of window pond distribution has reached preset maximum value, If the quantity of the window handle of the window pond distribution does not reach preset maximum value, perform described Obtaining step;And
Release steps, if the quantity of the window handle of window pond distribution reaches preset maximum value, The window pond is controlled to discharge the window object.
10. terminal according to claim 6, it is characterised in that the processor is performing the display Also performed after step:Recycling step, when the display of the five application page terminates, controls window pond Reclaim the window handle.
A kind of 11. systems for realizing the multi-mode application page, the system is applied in terminal, it is characterised in that The system includes:
Selecting module, the applications pages noodles for selecting corresponding modes according to the different scenes of the terminal; Acquisition module, the applications pages noodles for controlling the corresponding modes obtain window handle, form window Mouth object;And
Display module, for controlling the window object to show the five application page of the corresponding modes.
12. systems according to claim 11, it is characterised in that the selecting module is further included: Judge the different scenes of the terminal using XML plug-in units and select the applications pages noodles of corresponding modes.
13. systems according to claim 11, it is characterised in that the system is in the acquisition module Also include before:Module is inherited, for controlling the five application page Similar integral of the corresponding modes corresponding The Window subclass of pattern.
14. systems according to claim 11, it is characterised in that the system the acquisition module it It is preceding also to include:
Judge module, for judging whether the quantity of the window handle of the window pond distribution has reached in advance If maximum, if not reaching preset maximum value, the corresponding modes are controlled by the acquisition module Applications pages noodles obtain window handle and are instantiated, and form window object;And
Release module, if reaching default maximum for the quantity of the window handle of window pond distribution Value, controls the window pond to discharge the window object.
15. systems according to claim 11, it is characterised in that the system also includes:Recycling module, For terminating when the display of the five application page, the window handle is reclaimed in control window pond.
CN201510799519.5A 2015-11-18 2015-11-18 Terminal for realizing multi-mode application page, method and system Withdrawn CN106708498A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510799519.5A CN106708498A (en) 2015-11-18 2015-11-18 Terminal for realizing multi-mode application page, method and system
PCT/CN2016/104380 WO2017084497A1 (en) 2015-11-18 2016-11-02 Terminal, method and system for realizing multi-mode application page

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510799519.5A CN106708498A (en) 2015-11-18 2015-11-18 Terminal for realizing multi-mode application page, method and system

Publications (1)

Publication Number Publication Date
CN106708498A true CN106708498A (en) 2017-05-24

Family

ID=58717296

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510799519.5A Withdrawn CN106708498A (en) 2015-11-18 2015-11-18 Terminal for realizing multi-mode application page, method and system

Country Status (2)

Country Link
CN (1) CN106708498A (en)
WO (1) WO2017084497A1 (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107784120A (en) * 2017-11-17 2018-03-09 深圳泉眼体育运营管理有限公司 The method and device of issue operation active web pages
WO2018219285A1 (en) * 2017-05-31 2018-12-06 阿里巴巴集团控股有限公司 Data object display method and device
CN109361948A (en) * 2018-10-30 2019-02-19 深圳Tcl数字技术有限公司 Methods for interface management, intelligent terminal and readable storage medium storing program for executing
WO2019056645A1 (en) * 2017-09-21 2019-03-28 北京三快在线科技有限公司 View switching
CN109656555A (en) * 2018-11-30 2019-04-19 深圳市汇川技术股份有限公司 Operation interface implementation method, system, robot demonstrator and storage medium
CN109933253A (en) * 2019-01-23 2019-06-25 努比亚技术有限公司 Method for controlling application starting, terminal and computer readable storage medium
CN110007983A (en) * 2019-03-29 2019-07-12 网易传媒科技(北京)有限公司 Implementation method, medium, device and the calculating equipment of particle spraying animation
CN111506848A (en) * 2019-01-30 2020-08-07 阿里巴巴集团控股有限公司 Webpage processing method, device, equipment and readable storage medium
CN114095291A (en) * 2020-07-31 2022-02-25 青岛海信电子产业控股股份有限公司 Multi-device access display method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102087596A (en) * 2011-01-28 2011-06-08 深圳市同洲电子股份有限公司 Embedded browsing device and multi-page mixed display method thereof
CN103744652A (en) * 2013-12-19 2014-04-23 深圳市迈桥科技有限公司 Hybrid APP development method and device across mobile terminals
CN103995884A (en) * 2014-05-29 2014-08-20 北京中电普华信息技术有限公司 Hybrid application page switching method and system
CN104461491A (en) * 2013-09-24 2015-03-25 阿里巴巴集团控股有限公司 Running method and system of Hybrid components
CN104793966A (en) * 2014-01-21 2015-07-22 中国科学院声学研究所 Display and loading method and system of Android local application
CN104808971A (en) * 2014-01-24 2015-07-29 北京三星通信技术研究有限公司 Network application program manager, method, device and mobile terminal

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102426524A (en) * 2011-11-02 2012-04-25 青岛海信移动通信技术股份有限公司 Method and equipment for graphical user interface display on terminal
CN103309687A (en) * 2012-03-09 2013-09-18 联想(北京)有限公司 Electronic equipment and application program starting method thereof
CN103677872B (en) * 2012-09-10 2018-12-14 联想(北京)有限公司 A kind of information processing method, device and electronic equipment
CN104183227B (en) * 2013-05-20 2018-10-23 南京中兴软件有限责任公司 The display processing method and device of application program
CN104503655B (en) * 2014-11-28 2017-12-08 晨星半导体股份有限公司 application program interface display control method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102087596A (en) * 2011-01-28 2011-06-08 深圳市同洲电子股份有限公司 Embedded browsing device and multi-page mixed display method thereof
CN104461491A (en) * 2013-09-24 2015-03-25 阿里巴巴集团控股有限公司 Running method and system of Hybrid components
CN103744652A (en) * 2013-12-19 2014-04-23 深圳市迈桥科技有限公司 Hybrid APP development method and device across mobile terminals
CN104793966A (en) * 2014-01-21 2015-07-22 中国科学院声学研究所 Display and loading method and system of Android local application
CN104808971A (en) * 2014-01-24 2015-07-29 北京三星通信技术研究有限公司 Network application program manager, method, device and mobile terminal
CN103995884A (en) * 2014-05-29 2014-08-20 北京中电普华信息技术有限公司 Hybrid application page switching method and system

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018219285A1 (en) * 2017-05-31 2018-12-06 阿里巴巴集团控股有限公司 Data object display method and device
WO2019056645A1 (en) * 2017-09-21 2019-03-28 北京三快在线科技有限公司 View switching
CN107784120A (en) * 2017-11-17 2018-03-09 深圳泉眼体育运营管理有限公司 The method and device of issue operation active web pages
CN109361948A (en) * 2018-10-30 2019-02-19 深圳Tcl数字技术有限公司 Methods for interface management, intelligent terminal and readable storage medium storing program for executing
CN109361948B (en) * 2018-10-30 2021-11-09 深圳Tcl数字技术有限公司 Interface management method, intelligent terminal and readable storage medium
CN109656555A (en) * 2018-11-30 2019-04-19 深圳市汇川技术股份有限公司 Operation interface implementation method, system, robot demonstrator and storage medium
CN109933253A (en) * 2019-01-23 2019-06-25 努比亚技术有限公司 Method for controlling application starting, terminal and computer readable storage medium
CN111506848A (en) * 2019-01-30 2020-08-07 阿里巴巴集团控股有限公司 Webpage processing method, device, equipment and readable storage medium
CN110007983A (en) * 2019-03-29 2019-07-12 网易传媒科技(北京)有限公司 Implementation method, medium, device and the calculating equipment of particle spraying animation
CN114095291A (en) * 2020-07-31 2022-02-25 青岛海信电子产业控股股份有限公司 Multi-device access display method and device

Also Published As

Publication number Publication date
WO2017084497A1 (en) 2017-05-26

Similar Documents

Publication Publication Date Title
CN106708498A (en) Terminal for realizing multi-mode application page, method and system
CN103677942B (en) A kind of method and apparatus of movable terminal to browse network pictures
CN102356375B (en) Smooth layout animation of continuous and non-continuous properties
CN109359280B (en) Data display method, device, computer equipment and storage medium
CN106020597A (en) Method and device for displaying information and electronic equipment
CN106980431B (en) Management method and device for application icons in mobile terminal
CN107092475A (en) The call method and device of a kind of interactive controls
CN107515948A (en) Method for page jump, device and readable storage medium storing program for executing
CN106658139B (en) Focus control method and device
CN104407865B (en) The display methods and device of window
CN104571877A (en) Display processing method and device for pages
CN106156346A (en) The automatic classification method of icon and device
CN104866755B (en) Setting method and device for background picture of application program unlocking interface and electronic equipment
CN109725948A (en) A kind of configuration method and device of animation resource
CN107193440A (en) A kind of method for showing interface and device, computer installation and readable storage medium storing program for executing
CN106296243A (en) Service implementation method and device
CN106060899A (en) Flow control method and device
CN104572059A (en) Processing method and device for modifying application name
CN103412748A (en) Display control method, device and system for user interface of embedded platform
CN109271587A (en) A kind of page generation method and device
CN106250109A (en) A kind of multipad display packing, device and mobile terminal
CN102622217B (en) A kind of method and system running application across screen
CN107506483A (en) Page loading method, device, electronic equipment and storage medium
CN110262710A (en) A kind of display methods of interactive interface, device and equipment
CN110764862A (en) Desktop wallpaper display method and device, terminal equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20170524

WW01 Invention patent application withdrawn after publication