WO2020048218A1 - 应用页面的展示方法、装置、存储介质和电子设备 - Google Patents

应用页面的展示方法、装置、存储介质和电子设备 Download PDF

Info

Publication number
WO2020048218A1
WO2020048218A1 PCT/CN2019/095102 CN2019095102W WO2020048218A1 WO 2020048218 A1 WO2020048218 A1 WO 2020048218A1 CN 2019095102 W CN2019095102 W CN 2019095102W WO 2020048218 A1 WO2020048218 A1 WO 2020048218A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
application page
server
page
displaying
Prior art date
Application number
PCT/CN2019/095102
Other languages
English (en)
French (fr)
Inventor
李森林
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Priority to EP19857566.4A priority Critical patent/EP3848799A4/en
Publication of WO2020048218A1 publication Critical patent/WO2020048218A1/zh
Priority to US17/193,877 priority patent/US20210191996A1/en

Links

Images

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/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • 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/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • 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

Definitions

  • the present application relates to the field of electronic devices, and in particular, to a method, an apparatus, a storage medium, and an electronic device for displaying an application page.
  • terminals have begun to gradually change from simply providing call equipment to a platform for universal software operation.
  • the platform no longer aims to provide call management, but provides an operating environment including call management, game entertainment, office notes, mobile payment and other applications.
  • call management game entertainment
  • office notes office notes
  • mobile payment mobile payment
  • the embodiments of the present application provide a method, an apparatus, a storage medium, and an electronic device for displaying an application page, which can simultaneously download and render a configuration file, thereby improving the speed of opening the application page.
  • an embodiment of the present application provides a method for displaying an application page, including:
  • an embodiment of the present application further provides a device for displaying an application page, including: a first receiving module, a buffering module, a second receiving module, and a displaying module;
  • the first receiving module is configured to receive an instruction for opening an application page, where the instruction carries a corresponding application identifier
  • the cache module is configured to send the application identifier to a server, receive and cache a configuration file returned by the server according to the application identifier;
  • the second receiving module is configured to receive a view operation instruction sent by the server, where the view operation instruction is generated by the server rendering the application page;
  • the display module is configured to display the application page according to the view operation instruction and the configuration file.
  • an embodiment of the present application further provides a storage medium on which a computer program is stored.
  • the computer program is executed by a processor, the steps of the method for displaying an application page are implemented.
  • an embodiment of the present application further provides an electronic device including a processor and a memory, where the memory stores multiple instructions, and the processor loads the instructions in the memory for performing the following steps:
  • FIG. 1 is a schematic diagram of an implementation environment of a method for displaying an application page according to an embodiment of the present application.
  • FIG. 2 is a schematic flowchart of a method for displaying an application page according to an embodiment of the present application.
  • FIG. 3 is a schematic diagram of a page application engine framework provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of an application scenario of a method for displaying an application page according to an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of an apparatus for displaying an application page according to an embodiment of the present application.
  • FIG. 6 is another schematic structural diagram of an application page display device according to an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • FIG. 8 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
  • the computer execution referred to herein includes operations by a computer processing unit that represents electronic signals in a structured form. This operation transforms the data or maintains it at a location in the computer's memory system, which can be reconfigured or otherwise altered the operation of the computer in a manner well known to testers in the art.
  • the data structure maintained by the data is the physical location of the memory, which has specific characteristics defined by the data format.
  • Testers in the art will understand that various steps and operations described below can also be implemented in hardware.
  • FIG. 1 is a schematic diagram of an implementation environment of a method for displaying an application page according to an embodiment of the present application.
  • the implementation environment includes a smart phone 10, a communication network 20, and a server 30.
  • the operating system of the smart phone 10 may be an Android system, a BlackBerry system, an Apple system, or the like.
  • the smartphone 10 and the server 30 are connected via a communication network 20.
  • the communication network 20 includes a wireless network and a wired network.
  • the wireless network includes one or more combinations of a wireless wide area network, a wireless local area network, a wireless metropolitan area network, and a wireless personal network.
  • the server 30 stores a configuration file of the application, and the configuration file contains data and audio data required to run the application.
  • the smart phone 10 can obtain a configuration file of the application from the server 30, and generate and display a shortcut page according to the configuration file.
  • the shortcut page is a web application, which is a method of using a web browser on the Internet or in an enterprise
  • Application software for online operations is an application written in a web language (such as HTML, JavaScript, Java, or other programming languages), which needs to be executed through a browser. For example, it can be accessed through an open platform uniformly, commonly known as "Quick application".
  • the existing “quick application” installation package and the cache data generated during runtime are stored in the server of the open platform, which does not need to be installed and run on the user equipment, thereby saving the memory of the user equipment as much as possible.
  • Resources, and the user equipment can communicate with the web server's manufacturer server through the application interface in the open platform to achieve access to the web application.
  • the server of the open platform acts as a proxy server.
  • An application corresponds to an application interface. Therefore, the application can be implemented without installing the application program, and the data required for the application operation can be obtained from the server 30 immediately.
  • the server 30 may also perform an update operation on the configuration file of the application, so as to provide the smartphone 10 with the updated configuration file.
  • the server 30 may further store an application installation file, and the smart phone 10 may also obtain an application installation file from the server 30 and run the application completely by installing the installation file. It is easy to think that the server 30 may also update the installation files of the applications, so as to provide the updated installation files to the smartphone 10.
  • the device may be specifically integrated in an electronic device, and the electronic device may be an electronic device such as a mobile interconnected network device (such as a smart phone or a tablet).
  • a mobile interconnected network device such as a smart phone or a tablet.
  • An embodiment of the present application provides a method for displaying an application page, including the following steps:
  • receiving the view operation instruction sent by the server the view operation instruction is generated by the server rendering the application page, and includes:
  • the presenting the application page according to the view operation instruction and the configuration file includes:
  • the method further includes:
  • the shortcut is added on the desktop of the operating system.
  • the method further includes:
  • the method further includes:
  • the configuration file includes an installation file of the application
  • the method further includes:
  • FIG. 2 is a schematic flowchart of a method for displaying an application page according to an embodiment of the present application, including the following steps:
  • Step S101 Receive an instruction for opening an application page, where the instruction carries a corresponding application identifier.
  • the above-mentioned application page opening instruction may be generated according to a user's operation of the electronic device, for example, the application page opening instruction is generated by touching or voice, and the application may be a fast application.
  • FIG. 3 which is shown in FIG. 3.
  • FIG. 3 A schematic diagram of a fast application engine framework provided by the application embodiment.
  • the top is the application form and scene entry
  • the middle is the fast application engine
  • the bottom is the infrastructure of the OS (operating system) and its hardware.
  • HTML5 methods to support common Web scenarios (usually through the system's Webview component or customized Webview)
  • JS JavaScript + Native methods to support a lighter and faster experience.
  • Quick Application There are currently two forms of Quick Application: a stand-alone application form in full screen mode and a card form in embedded mode.
  • the fast application can be parasitic in the Android Activity
  • the page is parasitic in the Fragment
  • the instance is controlled by an independent background service.
  • the card is another form, which is embedded into each corner of the system through the embedded SDK as an independent local control, and displays dynamic content in a lightweight manner.
  • security isolation better security can be achieved through the sandbox mechanism, process isolation, permission control, and the support of the operating system layer.
  • Step S102 Send the application identifier to the server, and receive and cache the configuration file returned by the server according to the application identifier.
  • a configuration file of a web application may be stored in a server for generating a quick page of the web application.
  • the configuration file includes data and running logic required for running the application and global configuration information. The information indicates which pages the application is composed of, configures the window background color of the application page, configures the navigation bar style, configures the default title, and so on.
  • the configuration file in the embodiment of the present application can enable an electronic device to open a web application without installing an application program, thereby saving the use space of the electronic device.
  • the configuration file may also include an application installation file. The installation file is used to install a corresponding application, and a user selects whether to install the application.
  • the electronic device may preset a cache space of the configuration file in the storage space.
  • the electronic device receives the configuration file returned by the configuration server, the electronic device caches the configuration file in the cache space. Subsequent electronic devices can call the configuration file to run and perform subsequent operations at any time.
  • step S103 a view operation instruction sent by the server is received, and the view operation instruction is generated by the server by rendering the application page.
  • JavaScript is a scripting language belonging to the web and has been widely used in web application development. To add a variety of dynamic functions to the web page, to provide users with a more smooth and beautiful browsing effect. Due to the need to download and render first, the reference page opens slowly, and even a white screen waits, which affects the user experience.
  • the server may perform preprocessing in the cloud. After the preprocessing is completed, a view operation instruction is sent to the electronic device.
  • the above preprocessing includes rendering of the application page. Among them, page rendering includes JavaScript loading, execution of page and JavaScript framework logic, layout calculations, and finally the drawing of native UI controls.
  • step S104 the application page is displayed according to the view operation instruction and the configuration file.
  • the electronic device after downloading the RPK package, can directly display the application page according to the view operation instruction and the configuration file. Therefore, the execution step of the fast application is changed from the original download to the parsing and rendering, and becomes a download and rendering synchronization To speed up rendering and thus speed up the opening of application pages.
  • an application's native page can be switched on without an application installed, the user can have a preliminary experience with the application, and whether to install the application based on the initial experience can increase the diversity of user choices.
  • the above configuration file will occupy a part of the storage space of the electronic device. If a user's close instruction for the quick page is received, such as clicking the "Close" button in the page, the quick page of the application can be closed, and Cached configuration files are deleted to save storage space of electronic devices. That is, after the application page is displayed, the method may further include:
  • the electronic device may be any intelligent electronic device having a networking function, such as: a mobile phone, a tablet computer, a laptop computer, and a personal digital assistant.
  • PDA Mobile Internet Device
  • MID Mobile Internet Device
  • Wearable Device Wearable Device
  • the embodiment of the present application can receive an application page opening instruction, the instruction carries a corresponding application identifier, sends the application identifier to the server, receives and caches a configuration file returned by the server according to the application identifier, and receives a view operation instruction sent by the server.
  • the view operation instruction is generated by the server rendering the application page, and the application page is displayed according to the view operation instruction and the configuration file.
  • a corresponding configuration file is downloaded, and the page is rendered on the server side at the same time, and the generated view operation instruction is sent to the electronic device, thereby reducing the operation steps of the electronic device, thereby improving Speed of opening application pages.
  • FIG. 4 is a schematic flowchart of another application page display method according to an embodiment of the present application, including the following steps:
  • step S201 an instruction for opening an application page is received, and the instruction carries a corresponding application identifier.
  • the above-mentioned application page opening instruction may be generated according to a user operating the electronic device, such as generating an application page opening instruction through a touch or voice, and the application may be a quick application.
  • the application identifier may be an application name or.
  • Step S202 Send the application identifier to the server, and receive and cache the configuration file returned by the server according to the application identifier.
  • a configuration file of a web application may be stored in the server for generating a shortcut page of the web application.
  • the configuration file includes data and running logic required for running the application and global configuration information.
  • the global configuration information indicates which pages the application consists of, configures the window background color of the application page, configures the navigation bar style, configures the default title, and so on.
  • the configuration file in the embodiment of the present application can enable an electronic device to open a web application without installing an application program, thereby saving the use space of the electronic device.
  • the configuration file may also include an application installation file. The installation file is used to install a corresponding application, and a user selects whether to install the application.
  • Step S203 Receive a plurality of subview operation instructions sent by the server, and the subview operation instructions are generated by the server by rendering rendering the application page.
  • the above-mentioned step of rendering application pages in the server may also be streaming rendering, where the above-mentioned streaming rendering means that resources required for startup can be preferentially rendered in the server, and subsequent rendering is continued Proceed until the rendering process is complete.
  • the resources required for the first rendering are often small, so streaming rendering can significantly reduce download latency, and the larger the package, the more obvious the effect.
  • the server generates multiple sub-view operation instructions through streaming rendering, and then sends them to the electronic device in turn.
  • the resources required for startup are relatively fixed (public resources, global configuration files, homepage JavaScript files and pictures, etc.), which can be placed in the front of the file when the application page is rendered.
  • step S204 the application pages are displayed in batches according to a plurality of subview operation instructions and configuration files.
  • the electronic device after downloading the RPK package, can directly display the application page according to multiple sub-view operation instructions and configuration files. Therefore, the execution step of the fast application is changed from the original download to the analysis and rendering. Rendering is performed synchronously, which speeds up rendering and thus speeds up the opening of application pages.
  • the embodiments of the present application can be rendered by streaming, so that application pages can appear progressively, preventing a long-term white screen phenomenon, and improving the user experience.
  • step S205 it is detected whether an instruction to add a shortcut to the application page is received, and if yes, step S206 is performed; if not, the process ends.
  • step S206 a shortcut is added to the desktop of the operating system.
  • the user can also trigger a user operation and open the application's native page according to the user operation, such as clicking The area outside the user interface in the quick page jumps to the native page.
  • the native page of the application can contain more information and functions.
  • the native page may also include the option to download the installation package.
  • the installation package download option the installation package of the application can be downloaded and installed.
  • the embodiment of the present application can receive an instruction to open an application page.
  • the instruction carries the corresponding application identifier, sends the application identifier to the server, receives and caches the configuration file returned by the server according to the application identifier, and receives multiple subview operations sent by the server
  • sub-view operation instructions are generated by the server to render the application page in a streaming manner, and the application pages are displayed in batches according to multiple sub-view operation instructions and configuration files to detect whether an instruction to add a shortcut to the application page is received. If so, add a shortcut to the desktop of the operating system.
  • the embodiment of the present application further provides a device based on the method for displaying application pages.
  • the meanings of the nouns are the same as in the above-mentioned application page display method. For specific implementation details, refer to the description in the method embodiment.
  • FIG. 5 is a schematic structural diagram of a display device for an application page according to an embodiment of the present application.
  • the display device 30 for the application page includes: a first receiving module 301, a cache module 302, a second receiving module 303, and Display module 304;
  • the first receiving module 301 is configured to receive an instruction for opening an application page, where the instruction carries a corresponding application identifier
  • the cache module 302 is configured to send the application identifier to a server, receive and cache a configuration file returned by the server according to the application identifier;
  • the second receiving module 303 is configured to receive a view operation instruction sent by the server, where the view operation instruction is generated by the server rendering the application page;
  • the display module 304 is configured to display the application page according to the view operation instruction and the configuration file.
  • the second receiving module 303 is specifically configured to receive a plurality of subview operation instructions sent by the server, where the subview operation instructions are generated by the server performing stream rendering on the application page. .
  • the display module 304 is specifically configured to display the application pages in batches according to the multiple subview operation instructions and the configuration file.
  • the display device 30 for an application page may further include: a first detection module 305 and an adding module 306;
  • the first detection module 305 is configured to detect, after the display module displays the application page, whether an instruction to add a shortcut to the application page is received;
  • the adding module 306 is configured to add the shortcut on the desktop of the operating system when the first detection module detects that an instruction to add a shortcut to the application page is received.
  • the device 30 for displaying an application page may further include: a second detection module 307 and a deletion module 308;
  • the second detection module 307 is configured to detect whether an operation instruction to close the application page is received after the display module displays the application page;
  • the deleting module 308 is configured to delete the cached configuration file when the second detection module detects that an operation instruction to close the application page is received.
  • the application page display device 30 can receive an application page opening instruction, the instruction carries a corresponding application identifier, sends the application identifier to the server, and receives and caches a configuration file returned by the server according to the application identifier.
  • the view operation instruction is generated by the server by rendering the application page, and the application page is displayed according to the view operation instruction and the configuration file.
  • the present application also provides a storage medium on which a computer program is stored, wherein when the computer program is executed by a processor, a method for displaying an application page provided by a method embodiment is implemented.
  • the present application further provides an electronic device including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein when the processor executes the program, the application page provided by the method embodiment is implemented. Show method.
  • the present application further provides an electronic device including a processor and a memory, where the memory stores a plurality of instructions, and the processor loads the instructions in the memory for performing the following steps:
  • the processor when receiving a view operation instruction sent by the server, the processor is configured to perform the following steps:
  • the processor when the application page is displayed according to the view operation instruction and the configuration file, the processor is configured to perform the following steps:
  • the processor is further configured to perform the following steps:
  • the shortcut is added on the desktop of the operating system.
  • the processor is further configured to perform the following steps:
  • the processor is further configured to perform the following steps:
  • the configuration file includes an installation file of the application, and after the application page is displayed, the processor is further configured to perform the following steps:
  • an electronic device is also provided, and the electronic device may be a device such as a smart phone or a tablet computer.
  • the electronic device 400 includes a processor 401 and a memory 402. The processor 401 and the memory 402 are electrically connected.
  • the processor 401 is the control center of the electronic device 400. It uses various interfaces and lines to connect various parts of the entire electronic device. Various functions of the device and processing data, so as to monitor the overall electronic equipment.
  • the processor 401 in the electronic device 400 will load instructions corresponding to one or more application processes into the memory 402 according to the following steps, and the processor 401 will run and store the instructions in the memory 402 Applications in order to implement various functions:
  • the electronic device 10 may include a control circuit, and the control circuit may include a storage and processing circuit 30.
  • the storage and processing circuit 30 may be a memory, such as a hard disk drive memory, a non-volatile memory (such as a flash memory or other electronic programmable read-only memory used to form a solid-state drive, etc.), a volatile memory (such as a static or dynamic random storage). Access to memory, etc.), this embodiment is not limited.
  • the processing circuit in the storage and processing circuit 30 may be used to control the operation of the electronic device 10.
  • the processing circuit can be implemented based on one or more microprocessors, microcontrollers, digital signal processors, baseband processors, power management units, audio codec chips, application specific integrated circuits, display driver integrated circuits, and the like.
  • the storage and processing circuit 30 can be used to run software in the electronic device 10, such as Internet browsing applications, Voice over Internet Protocol (VOIP) telephone calling applications, email applications, media playback applications, operating system functions Wait. These software can be used to perform some control operations, such as camera-based image acquisition, ambient light sensor-based ambient light measurement, proximity sensor-based proximity sensor measurement, and information based on status indicators such as LED status indicators Display functions, touch event detection based on touch sensors, functions associated with displaying information on multiple (e.g., layered) displays, operations associated with performing wireless communication functions, operations associated with collecting and generating audio signals
  • the control operations associated with collecting and processing button press event data, and other functions in the electronic device 10 are not limited in the embodiment of the present application.
  • the electronic device 10 may further include an input-output circuit 42.
  • the input-output circuit 42 can be used to enable the electronic device 10 to input and output data, that is, to allow the electronic device 10 to receive data from an external device and also to allow the electronic device 10 to output data from the electronic device 10 to an external device.
  • the input-output circuit 42 may further include a sensor 32.
  • the sensor 32 may include an ambient light sensor, a light and capacitance-based proximity sensor, and a touch sensor (for example, a light-based touch sensor and / or a capacitive touch sensor, where the touch sensor may be part of a touch display screen or may be used as a The touch sensor structure is used independently), acceleration sensors, and other sensors.
  • the input-output circuit 42 may also include one or more displays, such as the display 14.
  • the display 14 may include one or a combination of a liquid crystal display, an organic light emitting diode display, an electronic ink display, a plasma display, and a display using other display technologies.
  • the display 14 may include a touch sensor array (ie, the display 14 may be a touch display screen).
  • the touch sensor can be a capacitive touch sensor formed by a transparent array of touch sensor electrodes (such as indium tin oxide (ITO) electrodes), or it can be a touch sensor formed using other touch technologies, such as sonic touch, pressure-sensitive touch, resistance Touch, optical touch, etc. are not limited in the embodiments of the present application.
  • the electronic device 10 may further include an audio component 36.
  • the audio component 36 may be used to provide audio input and output functions for the electronic device 10.
  • the audio component 36 in the electronic device 10 may include a speaker, a microphone, a buzzer, a tone generator, and other components for generating and detecting sound.
  • the communication circuit 38 may be used to provide the electronic device 10 with the ability to communicate with external devices.
  • the communication circuit 38 may include analog and digital input-output interface circuits, and wireless communication circuits based on radio frequency signals and / or optical signals.
  • the wireless communication circuit in the communication circuit 38 may include a radio frequency transceiver circuit, a power amplifier circuit, a low noise amplifier, a switch, a filter, and an antenna.
  • the wireless communication circuit in the communication circuit 38 may include a circuit for supporting near field communication (NFC) by transmitting and receiving near field coupled electromagnetic signals.
  • the communication circuit 38 may include a near field communication antenna and a near field communication transceiver.
  • the communication circuit 38 may also include a cellular phone transceiver and antenna, a wireless local area network transceiver circuit and antenna, and the like.
  • the electronic device 10 may further include a battery, a power management circuit, and other input-output units 40.
  • the input-output unit 40 may include a button, a joystick, a click wheel, a scroll wheel, a touch pad, a keypad, a keyboard, a camera, a light emitting diode, and other status indicators.
  • the user can input commands through the input-output circuit 42 to control the operation of the electronic device 10, and can use the output data of the input-output circuit 42 to realize receiving status information and other outputs from the electronic device 10.
  • the above modules may be implemented as independent entities, or may be arbitrarily combined, and implemented as the same or several entities.
  • specific implementation of the above modules refer to the foregoing method embodiments, and details are not described herein again.
  • the execution process may include the process of the embodiment of the page collection method.
  • the storage medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disks, or optical disks.
  • Each functional module may be integrated in a processing chip, or each module may exist separately physically, or Two or more modules are integrated into one module.
  • the above integrated modules may be implemented in the form of hardware or software functional modules. Specific examples are used herein to explain the principles and implementation of the present application. The descriptions of the above embodiments are only used to help understand the method and core ideas of the present application. At the same time, for those skilled in the art, Thoughts may change in specific implementations and applications. In summary, the content of this description should not be construed as a limitation on this application.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本申请实施例公开了一种应用页面的展示方法,包括:接收应用页面的打开指令,指令携带对应的应用标识,将应用标识发送至服务器,接收并缓存服务器返回的配置文件,接收服务器发送的视图操作指令,根据视图操作指令以及配置文件对应用页面进行展示。本申请还提供一种应用页面的展示装置、存储介质和电子设备。

Description

应用页面的展示方法、装置、存储介质和电子设备
本申请要求于2018年09月07日提交中国专利局、申请号为201811045455.X、申请名称为“应用页面的展示方法、装置、存储介质和电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及电子设备领域,具体涉及一种应用页面的展示方法、装置、存储介质和电子设备。
背景技术
随着终端技术的发展,终端已经开始从以前简单地提供通话设备渐渐变成一个通用软件运行的平台。该平台不再以提供通话管理为主要目的,而是提供一个包括通话管理、游戏娱乐、办公记事、移动支付等各类应用软件在内的运行环境,随着大量的普及,已经深入至人们的生活、工作的方方面面。
然而,随着应用的功能越来越强大,每个应用对应占用的存储空间也越来越大,很可能会影响智能手机系统的正常运行,为了解决这个问题,目前可通过在浏览器上设置应用的指定入口,当检测到用户对指定入口的触发操作时,浏览器可以实现应用页面的展示。其中,首次启动应用时,用户点击触发RPK包的下载,同时做引擎初始化相关工作,当整包下载与校验完成后,需要展示的应用页面才会被解析并开始渲染,应用页面打开的速度较慢。
申请内容
本申请实施例提供一种应用页面的展示方法、装置、存储介质和电子设备,可以同时进行配置文件的下载和渲染,从而提升了打开应用页面的速度。
第一方面,本申请实施例提供一种应用页面的展示方法,包括:
接收应用页面的打开指令,所述指令携带对应的应用标识;
将所述应用标识发送至服务器,接收并缓存所述服务器根据所述应用标识返回的配置文件;
接收所述服务器发送的视图操作指令,所述视图操作指令为所述服务器对所述应用页面进行渲染生成的;
根据所述视图操作指令以及所述配置文件对所述应用页面进行展示。
第二方面,本申请实施例还提供了一种应用页面的展示装置,包括:第一接收模块、缓存模块、第二接收模块以及展示模块;
所述第一接收模块,用于接收应用页面的打开指令,所述指令携带对应的应用标识;
所述缓存模块,用于将所述应用标识发送至服务器,接收并缓存所述服务器根据所述应用标识返回的配置文件;
所述第二接收模块,用于接收所述服务器发送的视图操作指令,所述视图操作指令为所述服务器对所述应用页面进行渲染生成的;
所述展示模块,用于根据所述视图操作指令以及所述配置文件对所述应用页面进行展示。
第三方面,本申请实施例还提供一种存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述应用页面的展示方法的步骤。
第四方面,本申请实施例还提供一种电子设备,包括处理器和存储器,所述存储器存储有多条指令,所述处理器加载所述存储器中的指令用于执行以下步骤:
接收应用页面的打开指令,所述指令携带对应的应用标识;
将所述应用标识发送至服务器,接收并缓存所述服务器根据所述应用标识返回的配置文件;
接收所述服务器发送的视图操作指令,所述视图操作指令为所述服务器对所述应用页面进行渲染生成的;
根据所述视图操作指令以及所述配置文件对所述应用页面进行展示。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本申请实施例提供的应用页面的展示方法的实施环境的示意图。
图2为本申请实施例提供的应用页面的展示方法的一种流程示意图。
图3为本申请实施例提供的页面应用引擎框架示意图。
图4为本申请实施例提供的应用页面的展示方法的一种应用场景示意图。
图5为本申请实施例提供的应用页面的展示装置的一种结构示意图。
图6为本申请实施例提供的应用页面的展示装置的另一种结构示意图。
图7为本申请实施例提供的电子设备的一种结构示意图。
图8为本申请实施例提供的电子设备的另一种结构示意图。
具体实施方式
请参照图式,其中相同的组件符号代表相同的组件,本申请的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所例示的本申请具体实施例,其不应被视为限制本申请未在此详述的其它具体实施例。
在以下的说明中,本申请的具体实施例将参考由一部或多部计算机所执行的步骤及符号来说明,除非另有述明。因此,这些步骤及操作将有数次提到由计算机执行,本文所指的计算机执行包括了由代表了以一结构化型式中的数据的电子信号的计算机处理单元的操作。此操作转换该数据或将其维持在该计算机的内存系统中的位置处,其可重新配置或另外以本领域测试人员所熟知的方式来改变该计算机的运作。该数据所维持的数据结构为该内存的实体位置,其具有由该数据格式所定义的特定特性。但是,本申请原理以上述文字来说明,其并不代表为一种限制,本领域测试人员将可了解到以下所述的多种步骤及操作亦可实施在硬件当中。
本申请的原理使用许多其它泛用性或特定目的运算、通信环境或组态来进行操作。所熟知的适合用于本申请的运算系统、环境与组态的范例可包括(但不限于)手持电话、个人计算机、服务器、多处理器系统、微电脑为主的系统、主架构型计算机、及分布式运算环境,其中包括了任何的上述系统或装置。
以下将分别进行详细说明。
请参阅图1,图1是本申请实施例提供的应用页面的展示方法的实施环境的示意图,如图1所示,该实施环境包括智能手机10、通信网络20以及服务器30。
该智能手机10的操作系统可以为安卓系统、黑莓系统、苹果系统等。该 智能手机10和服务器30之间通过通信网络20连接。
该通信网络20,包括无线网络及有线网络。其中无线网络包括无线广域网、无线局域网、无线城域网、以及无线个人网中的一种或多种的组合。
该服务器30中存储有应用的配置文件,该配置文件包含运行应用所需的数据和音频数据。该智能手机10可以从服务器30获取应用的配置文件,根据配置文件生成快捷页面并展示,需要理解的是,该快捷页面是一种网页应用,这是一种使用网页浏览器在互联网或企业内部网上操作的应用软件,是一种以网页语言(例如HTML、JavaScript、Java等编程语言)撰写的应用程式,需要透过浏览器来执行,比如可以统一通过某个开放平台进行访问,俗称“快应用”。需要解释的是,现有“快应用”的安装包、以及运行时产生的缓存数据均存储在该开放平台的服务器中,其不需要在用户设备中安装运行,从而尽可能节省用户设备的内存资源,而用户设备可以通过该开放平台中的应用接口与该网页应用的厂家服务器进行数据通信,实现对该网页应用的访问,此时,该开放平台的服务器充当代理服务器的角色,每一网页应用对应一个应用接口。从而在未安装应用程序的前提下,实现应用的运行,应用运行所需的数据可即时从服务器30获取。
服务器30还可以对应用的配置文件进行更新操作,以便为智能手机10提供更新后的配置文件。
在一实施方式中,该服务器30还可以存储应用的安装文件,智能手机10还可以从该服务器30上获取应用的安装文件,并通过安装该安装文件来完整的运行该应用。容易想到的是,该服务器30也可以对应用的安装文件进行更新,以便为智能手机10提供更新后的安装文件。
本实施例将从应用页面的展示装置的角度进行描述,该装置具体可以集成在电子设备中,该电子设备可以为移动互连接网络设备(如智能手机、平板电脑)等电子设备。
本申请实施例提供一种应用页面的展示方法,包括以下步骤:
接收应用页面的打开指令,所述指令携带对应的应用标识;
将所述应用标识发送至服务器,接收并缓存所述服务器根据所述应用标识返回的配置文件;
接收所述服务器发送的视图操作指令,所述视图操作指令为所述服务器对所述应用页面进行渲染生成的;
根据所述视图操作指令以及所述配置文件对所述应用页面进行展示。
在一实施例中,所述接收所述服务器发送的视图操作指令,所述视图操作指令为所述服务器对所述应用页面进行渲染生成的,包括:
接收所述服务器发送的多个子视图操作指令,所述子视图操作指令为所述服务器对所述应用页面进行流式渲染生成的。
在一实施例中,所述根据所述视图操作指令以及所述配置文件对所述应用页面进行展示,包括:
根据所述多个子视图操作指令以及所述配置文件对所述应用页面分批次进行展示。
在一实施例中,在对所述应用页面进行展示之后,所述方法还包括:
检测是否接收到对所述应用页面的快捷方式的添加指令;
当检测到接收到对所述应用页面的快捷方式的添加指令时,在操作系统的桌面上添加所述快捷方式。
在一实施例中,在对所述应用页面进行展示之后,所述方法还包括:
检测是否接收到关闭所述应用页面的操作指令;
当检测到接收到关闭所述应用页面的操作指令时,将缓存的所述配置文件删除。
在一实施例中,在对所述应用页面进行展示之后,所述方法还包括:
接收针对所述应用页面的用户操作;
根据所述用户操作打开所述应用的原生页面。
在一实施例中,所述配置文件包括所述应用的安装文件;
在对所述应用页面进行展示之后,所述方法还包括:
接收用户触发的应用安装指令;
根据所述按装指令和所述应用的安装文件安装所述应用。
首先参考图2,图2为本申请实施例提供的应用页面的展示方法的一种流程示意图,包括以下步骤:
步骤S101,接收应用页面的打开指令,该指令携带对应的应用标识。
在一实施例中,上述应用页面打开指令可以根据用户操作电子设备生成的,比如通过触摸或者语音等方式生成应用页面的打开指令,该应用可以为快应用,请参阅图3,图3为本申请实施例提供的快应用引擎框架示意图。
其中,最上面是应用形态以及场景入口,中间是快应用引擎,底下是OS(操作系统)的基础设施及其硬件。从执行路径层面,有标准的HTML5方式支撑通用的Web场景(一般通过系统的Webview组件或定制的Webview),以及JS(JavaScript)+Native的方式,支撑更轻量、更快速的体验。
快应用目前有两种形态:全屏方式的独立应用形态与嵌入方式的卡片形态。在独立应用的形态下,给用户的体验就像原生的应用程序,有完整的生命周期管理,页面管理,路由等。快应用可以寄生于安卓的Activity,页面寄生于Fragment,并通过独立的后台Service进行实例的管控。卡片则是另外一种形态,通过嵌入式SDK作为一个独立的局部控件嵌入到系统的各个角落,轻量化的展现动态内容。在安全隔离方面,可通过沙盒机制,进程隔离,权限控制,并结合操作系统层的支持做到较好的安全保障。
步骤S102,将应用标识发送至服务器,接收并缓存服务器根据应用标识返回的配置文件。
在本申请实施例中,服务器中可以存储网页应用的配置文件,以用于生成网页应用的快捷页面,比如该配置文件中包含运行应用所需的数据和运行逻辑以及全局配置信息,该全局配置信息指示该应用是由哪些页面组成,配置应用页面的窗口背景色,配置导航条样式,配置默认标题等等。
本申请实施例中的配置文件可以使电子设备无需安装应用程序即可打开网页应用,因此节省了电子设备的使用空间。当然在其他实施例当中,上述配置文件也可以包括应用的安装文件,该安装文件用于安装对应的应用,由用户选择是否需要安装该应用。
在一实施例中,电子设备可以在存储空间中预设该配置文件的缓存空间,当电子设备接收到配置服务器返回的配置文件时,将该配置文件缓存在缓存空间中。后续电子设备可以随时调用该配置文件运行并执行后续操作等。
步骤S103,接收服务器发送的视图操作指令,视图操作指令为服务器对应用页面进行渲染生成的。
在现有技术当中,快应用首次启动时,用户点击触发快应用包的下载,同时做引擎初始化相关工作。当整包下载与校验完成后,需要展示的第一个页面的JavaScript文件才会被加载并开始渲染,其中,JavaScript是一种属于网络的脚本语言,已经被广泛用于Web应用开发,常用来为网页添加各式各样的动态功能,为用户提供更流畅美观的浏览效果。由于需要先下载再渲染导致引用页面的打开速度较慢,甚至出现白屏等待的情况,影响用户体验。
在本申请当中,在电子设备进行下载RPK包的同时,服务器可以在云端进行预处理,预处理完成后,形成视图操作指令发送至电子设备,上述预处理包括应用页面的渲染。其中,页面渲染包括JavaScript加载、页面与JavaScript框架逻辑的执行、布局的运算,最终到原生UI控件的绘制等等。
步骤S104,根据视图操作指令以及配置文件对应用页面进行展示。
在一实施例中,电子设备在下载RPK包后,就可以直接根据视图操作指令以及配置文件对应用页面进行展示,因此快应用的执行步骤由原先的下载再解析渲染,变成下载和渲染同步进行,加快了渲染速度,从而加快了应用页面的打开速度。
进一步地,由于可以在未安装应用的情况下,切换开启应用的原生页面,使得用户可以对应用进行初步体验,在基于初步体验的情况下选择是否安装该应用,可以提升用户选择的多样性。
需要说明的是,上述配置文件将占用电子设备一部分存储空间,若接收到用户针对该快捷页面的关闭指令时,比如点击页面当中的“关闭”按钮,则可以关闭该应用的快捷页面,并将缓存的配置文件删除,以节省电子设备的存储空间。也即在对所述应用页面进行展示之后,所述方法还可以包括:
检测是否接收到关闭所述应用页面的操作指令;
当检测到接收到关闭所述应用页面的操作指令时,将缓存的所述配置文件删除。
本发明实施例中,上述电子设备可以是任何具有联网功能的智能电子设备,例如:手机、平板电脑(Tablet Personal Computer)、膝上型电脑(Laptop Computer)、个人数字助理(personal digital assistant,简称PDA)、移动上网装置(Mobile Internet Device,MID)或可穿戴式设备(Wearable Device)等。
由上可知,本申请实施例可以接收应用页面的打开指令,指令携带对应的应用标识,将应用标识发送至服务器,接收并缓存服务器根据应用标识返回的配置文件,接收服务器发送的视图操作指令,视图操作指令为服务器对应用页面进行渲染生成的,根据视图操作指令以及配置文件对应用页面进行展示。本申请实施例可以在电子设备打开应用页面时,下载对应的配置文件,并同时在服务器端对页面进行渲染,将生成的视图操作指令发送至电子设备,减少电子设备的操作步骤,从而提升了打开应用页面的速度。
根据上一实施例的描述,以下将进一步地来说明本申请的应用页面的展示方法。
请参阅图4,图4为本申请实施例提供的另一种应用页面的展示方法的流程示意图,包括以下步骤:
步骤S201,接收应用页面的打开指令,指令携带对应的应用标识。
在一实施例中,上述应用页面打开指令可以根据用户操作电子设备生成的,比如通过触摸或者语音等方式生成应用页面的打开指令,该应用可以为快应用。其中,上述应用标识可以为应用名称或者。
步骤S202,将应用标识发送至服务器,接收并缓存服务器根据应用标识返回的配置文件。
在本申请实施例中,服务器中可以存储了网页应用的配置文件,以用于生成网页应用的快捷页面,比如该配置文件中包含运行应用所需的数据和运行逻辑以及全局配置信息,该全局配置信息指示该应用是由哪些页面组成,配置应用页面的窗口背景色,配置导航条样式,配置默认标题等等。
本申请实施例中的配置文件可以使电子设备无需安装应用程序即可打开网页应用,因此节省了电子设备的使用空间。当然在其他实施例当中,上述配置文件也可以包括应用的安装文件,该安装文件用于安装对应的应用,由用户选择是否需要安装该应用。
步骤S203,接收服务器发送的多个子视图操作指令,子视图操作指令为服务器对应用页面进行流式渲染生成的。
在一实施例当中,上述在服务器中对应用页面进行渲染的步骤也可以为流式渲染,其中,上述流式渲染是指可以将启动所需要的资源在服务器中优先渲 染,后续渲染仍在持续进行直至渲染过程全部完成。首次渲染所需资源往往很小,所以流式渲染能明显降低下载延时,包越大效果越明显。
服务器通过流式渲染生成多个子视图操作指令,再依次发送至电子设备。其中,正常情况下启动所需资源比较固定(公共资源、全局的配置文件、首页JavaScript文件与图片等等),这些在应用页面渲染的时候排在文件的前部即可。
步骤S204,根据多个子视图操作指令以及配置文件对应用页面分批次进行展示。
在一实施例中,电子设备在下载RPK包后,就可以直接根据多个子视图操作指令以及配置文件对应用页面进行展示,因此快应用的执行步骤由原先的下载再解析渲染,变成下载和渲染同步进行,加快了渲染速度,从而加快了应用页面的打开速度。另外,由于本申请实施例可以分流渲染,使得应用页面可以渐进式出现,防止出现长时间白屏现象,提高了用户体验。
步骤S205,检测是否接收到对应用页面的快捷方式的添加指令,若是,则执行步骤S206,若否,则结束流程。
步骤S206,在操作系统的桌面上添加快捷方式。
在一实施例中,由于应用的快捷页面中仅能显示一小部分信息和功能,可能无法满足用户的需求,因此,用户还可以触发用户操作,并根据用户操作打开应用的原生页面,比如点击快捷页面中操作界面以外的区域,从而跳转到原生页面,应用的原生页面可以包含更多信息以及功能等。
在一实施例中,当用户使用应用的原生页面的相应功能之后,觉得满意则会下载应用的完整安装包进行安装使用,基于此,原生页面上还可以包括安装包下载的选项,当检测到用户选择安装包下载选项时,可以对该应用的安装包进行下载并安装。
由上可知,本申请实施例可以接收应用页面的打开指令,指令携带对应的应用标识,将应用标识发送至服务器,接收并缓存服务器根据应用标识返回的配置文件,接收服务器发送的多个子视图操作指令,子视图操作指令为服务器对应用页面进行流式渲染生成的,根据多个子视图操作指令以及配置文件对应用页面分批次进行展示,检测是否接收到对应用页面的快捷方式的添加指令,若是,则在操作系统的桌面上添加快捷方式。本申请实施例可以在电子设备打 开应用页面时,下载对应的配置文件,并同时在服务器端对页面进行渲染,将生成的视图操作指令发送至电子设备,减少电子设备的操作步骤,从而提升了打开应用页面的速度。
为了便于更好的实施本申请实施例提供的应用页面的展示方法,本申请实施例还提供了一种基于上述应用页面的展示方法的装置。其中名词的含义与上述应用页面的展示方法中相同,具体实现细节可以参考方法实施例中的说明。
请参阅图5,图5为本申请实施例提供的一种应用页面的展示装置的结构示意图,该应用页面的展示装置30包括:第一接收模块301、缓存模块302、第二接收模块303以及展示模块304;
所述第一接收模块301,用于接收应用页面的打开指令,所述指令携带对应的应用标识;
所述缓存模块302,用于将所述应用标识发送至服务器,接收并缓存所述服务器根据所述应用标识返回的配置文件;
所述第二接收模块303,用于接收所述服务器发送的视图操作指令,所述视图操作指令为所述服务器对所述应用页面进行渲染生成的;
所述展示模块304,用于根据所述视图操作指令以及所述配置文件对所述应用页面进行展示。
在一实施例中,所述第二接收模块303,具体用于接收所述服务器发送的多个子视图操作指令,所述子视图操作指令为所述服务器对所述应用页面进行流式渲染生成的。
所述展示模块304,具体用于根据所述多个子视图操作指令以及所述配置文件对所述应用页面分批次进行展示。
在一实施例中,如图6所示,应用页面的展示装置30还可以包括:第一检测模块305和添加模块306;
所述第一检测模块305,用于在所述展示模块对所述应用页面进行展示之后,检测是否接收到对所述应用页面的快捷方式的添加指令;
所述添加模块306,用于当所述第一检测模块检测到接收到对所述应用页面的快捷方式的添加指令时,在操作系统的桌面上添加所述快捷方式。
在一实施例中,应用页面的展示装置30还可以包括:第二检测模块307和 删除模块308;
所述第二检测模块307,用于在所述展示模块对所述应用页面进行展示之后,检测是否接收到关闭所述应用页面的操作指令;
所述删除模块308,用于当所述第二检测模块检测到接收到关闭所述应用页面的操作指令时,将缓存的所述配置文件删除。
由上可知,本申请实施例提供的应用页面的展示装置30可以接收应用页面的打开指令,指令携带对应的应用标识,将应用标识发送至服务器,接收并缓存服务器根据应用标识返回的配置文件,接收服务器发送的视图操作指令,视图操作指令为服务器对应用页面进行渲染生成的,根据视图操作指令以及配置文件对应用页面进行展示。本申请实施例可以在电子设备打开应用页面时,下载对应的配置文件,并同时在服务器端对页面进行渲染,将生成的视图操作指令发送至电子设备,减少电子设备的操作步骤,从而提升了打开应用页面的速度。
本申请还提供一种存储介质,其上存储有计算机程序,其中,所述计算机程序被处理器执行时实现方法实施例提供的应用页面的展示方法。
本申请还提供一种电子设备,包括存储器,处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述程序时实现方法实施例提供的应用页面的展示方法。
本申请还提供一种电子设备,包括处理器和存储器,所述存储器存储有多条指令,所述处理器加载所述存储器中的指令用于执行以下步骤:
接收应用页面的打开指令,所述指令携带对应的应用标识;
将所述应用标识发送至服务器,接收并缓存所述服务器根据所述应用标识返回的配置文件;
接收所述服务器发送的视图操作指令,所述视图操作指令为所述服务器对所述应用页面进行渲染生成的;
根据所述视图操作指令以及所述配置文件对所述应用页面进行展示。
在一实施例中,接收所述服务器发送的视图操作指令时,所述处理器用于执行以下步骤:
接收所述服务器发送的多个子视图操作指令,所述子视图操作指令为所述 服务器对所述应用页面进行流式渲染生成的。
在一实施例中,根据所述视图操作指令以及所述配置文件对所述应用页面进行展示时,所述处理器用于执行以下步骤:
根据所述多个子视图操作指令以及所述配置文件对所述应用页面分批次进行展示。
在一实施例中,在对所述应用页面进行展示之后,所述处理器还用于执行以下步骤:
检测是否接收到对所述应用页面的快捷方式的添加指令;
当检测到接收到对所述应用页面的快捷方式的添加指令时,在操作系统的桌面上添加所述快捷方式。
在一实施例中,在对所述应用页面进行展示之后,所述处理器还用于执行以下步骤:
检测是否接收到关闭所述应用页面的操作指令;
当检测到接收到关闭所述应用页面的操作指令时,将缓存的所述配置文件删除。
在一实施例中,在对所述应用页面进行展示之后,所述处理器还用于执行以下步骤:
接收针对所述应用页面的用户操作;
根据所述用户操作打开所述应用的原生页面。
在一实施例中,所述配置文件包括所述应用的安装文件,在对所述应用页面进行展示之后,所述处理器还用于执行以下步骤:
接收用户触发的应用安装指令;
根据所述按装指令和所述应用的安装文件安装所述应用。
在本申请又一实施例中还提供一种电子设备,该电子设备可以是智能手机、平板电脑等设备。如图7所示,电子设备400包括处理器401、存储器402。其中,处理器401与存储器402电性连接。
处理器401是电子设备400的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或加载存储在存储器402内的应用程序,以及调用存储在存储器402内的数据,执行电子设备的各种功能和处理数据,从而对电 子设备进行整体监控。
在本实施例中,电子设备400中的处理器401会按照如下的步骤,将一个或一个以上的应用程序的进程对应的指令加载到存储器402中,并由处理器401来运行存储在存储器402中的应用程序,从而实现各种功能:
接收应用页面的打开指令,所述指令携带对应的应用标识;
将所述应用标识发送至服务器,接收并缓存所述服务器根据所述应用标识返回的配置文件;
接收所述服务器发送的视图操作指令,所述视图操作指令为所述服务器对所述应用页面进行渲染生成的;
根据所述视图操作指令以及所述配置文件对所述应用页面进行展示。
请参阅图8,电子设备10可以包括控制电路,该控制电路可以包括存储和处理电路30。该存储和处理电路30可以存储器,例如硬盘驱动存储器,非易失性存储器(例如闪存或用于形成固态驱动器的其它电子可编程只读存储器等),易失性存储器(例如静态或动态随机存取存储器等)等,本申请实施例不作限制。存储和处理电路30中的处理电路可以用于控制电子设备10的运转。该处理电路可以基于一个或多个微处理器,微控制器,数字信号处理器,基带处理器,功率管理单元,音频编解码器芯片,专用集成电路,显示驱动器集成电路等来实现。
存储和处理电路30可用于运行电子设备10中的软件,例如互联网浏览应用程序,互联网协议语音(Voice over Internet Protocol,VOIP)电话呼叫应用程序,电子邮件应用程序,媒体播放应用程序,操作系统功能等。这些软件可以用于执行一些控制操作,例如,基于照相机的图像采集,基于环境光传感器的环境光测量,基于接近传感器的接近传感器测量,基于诸如发光二极管的状态指示灯等状态指示器实现的信息显示功能,基于触摸传感器的触摸事件检测,与在多个(例如分层的)显示器上显示信息相关联的功能,与执行无线通信功能相关联的操作,与收集和产生音频信号相关联的操作,与收集和处理按钮按压事件数据相关联的控制操作,以及电子设备10中的其它功能等,本申请实施例不作限制。
电子设备10还可以包括输入-输出电路42。输入-输出电路42可用于使电 子设备10实现数据的输入和输出,即允许电子设备10从外部设备接收数据和也允许电子设备10将数据从电子设备10输出至外部设备。输入-输出电路42可以进一步包括传感器32。传感器32可以包括环境光传感器,基于光和电容的接近传感器,触摸传感器(例如,基于光触摸传感器和/或电容式触摸传感器,其中,触摸传感器可以是触控显示屏的一部分,也可以作为一个触摸传感器结构独立使用),加速度传感器,和其它传感器等。
输入-输出电路42还可以包括一个或多个显示器,例如显示器14。显示器14可以包括液晶显示器,有机发光二极管显示器,电子墨水显示器,等离子显示器,使用其它显示技术的显示器中一种或者几种的组合。显示器14可以包括触摸传感器阵列(即,显示器14可以是触控显示屏)。触摸传感器可以是由透明的触摸传感器电极(例如氧化铟锡(ITO)电极)阵列形成的电容式触摸传感器,或者可以是使用其它触摸技术形成的触摸传感器,例如音波触控,压敏触摸,电阻触摸,光学触摸等,本申请实施例不作限制。
电子设备10还可以包括音频组件36。音频组件36可以用于为电子设备10提供音频输入和输出功能。电子设备10中的音频组件36可以包括扬声器,麦克风,蜂鸣器,音调发生器以及其它用于产生和检测声音的组件。
通信电路38可以用于为电子设备10提供与外部设备通信的能力。通信电路38可以包括模拟和数字输入-输出接口电路,和基于射频信号和/或光信号的无线通信电路。通信电路38中的无线通信电路可以包括射频收发器电路、功率放大器电路、低噪声放大器、开关、滤波器和天线。举例来说,通信电路38中的无线通信电路可以包括用于通过发射和接收近场耦合电磁信号来支持近场通信(Near Field Communication,NFC)的电路。例如,通信电路38可以包括近场通信天线和近场通信收发器。通信电路38还可以包括蜂窝电话收发器和天线,无线局域网收发器电路和天线等。
电子设备10还可以进一步包括电池,电力管理电路和其它输入-输出单元40。输入-输出单元40可以包括按钮,操纵杆,点击轮,滚动轮,触摸板,小键盘,键盘,照相机,发光二极管和其它状态指示器等。
用户可以通过输入-输出电路42输入命令来控制电子设备10的操作,并且可以使用输入-输出电路42的输出数据以实现接收来自电子设备10的状态 信息和其它输出。
具体实施时,以上各个模块可以作为独立的实体来实现,也可以进行任意组合,作为同一或若干个实体来实现,以上各个模块的具体实施可参见前面的方法实施例,在此不再赘述。
需要说明的是,本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于计算机可读存储介质中,如存储在终端的存储器中,并被该终端内的至少一个处理器执行,在执行过程中可包括如页面收藏方法的实施例的流程。其中,存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。
以上对本申请实施例提供的一种应用页面的展示方法、装置、存储介质和电子设备进行了详细介绍,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。

Claims (20)

  1. 一种应用页面的展示方法,其中,包括以下步骤:
    接收应用页面的打开指令,所述指令携带对应的应用标识;
    将所述应用标识发送至服务器,接收并缓存所述服务器根据所述应用标识返回的配置文件;
    接收所述服务器发送的视图操作指令,所述视图操作指令为所述服务器对所述应用页面进行渲染生成的;
    根据所述视图操作指令以及所述配置文件对所述应用页面进行展示。
  2. 根据权利要求1所述的应用页面的展示方法,其中,所述接收所述服务器发送的视图操作指令,所述视图操作指令为所述服务器对所述应用页面进行渲染生成的,包括:
    接收所述服务器发送的多个子视图操作指令,所述子视图操作指令为所述服务器对所述应用页面进行流式渲染生成的。
  3. 根据权利要求2所述的应用页面的展示方法,其中,所述根据所述视图操作指令以及所述配置文件对所述应用页面进行展示,包括:
    根据所述多个子视图操作指令以及所述配置文件对所述应用页面分批次进行展示。
  4. 根据权利要求1所述的应用页面的展示方法,其中,在对所述应用页面进行展示之后,所述方法还包括:
    检测是否接收到对所述应用页面的快捷方式的添加指令;
    当检测到接收到对所述应用页面的快捷方式的添加指令时,在操作系统的桌面上添加所述快捷方式。
  5. 根据权利要求1所述的应用页面的展示方法,其中,在对所述应用页面进行展示之后,所述方法还包括:
    检测是否接收到关闭所述应用页面的操作指令;
    当检测到接收到关闭所述应用页面的操作指令时,将缓存的所述配置文件删除。
  6. 根据权利要求1所述的应用页面的展示方法,其中,在对所述应用页面进行展示之后,所述方法还包括:
    接收针对所述应用页面的用户操作;
    根据所述用户操作打开所述应用的原生页面。
  7. 根据权利要求1所述的应用页面的展示方法,其中,所述配置文件包括所述应用的安装文件;
    在对所述应用页面进行展示之后,所述方法还包括:
    接收用户触发的应用安装指令;
    根据所述按装指令和所述应用的安装文件安装所述应用。
  8. 一种应用页面的展示装置,其中,包括:第一接收模块、缓存模块、第二接收模块以及展示模块;
    所述第一接收模块,用于接收应用页面的打开指令,所述指令携带对应的应用标识;
    所述缓存模块,用于将所述应用标识发送至服务器,接收并缓存所述服务器根据所述应用标识返回的配置文件;
    所述第二接收模块,用于接收所述服务器发送的视图操作指令,所述视图操作指令为所述服务器对所述应用页面进行渲染生成的;
    所述展示模块,用于根据所述视图操作指令以及所述配置文件对所述应用页面进行展示。
  9. 根据权利要求8所述的应用页面的展示装置,其中,
    所述第二接收模块,具体用于接收所述服务器发送的多个子视图操作指令,所述子视图操作指令为所述服务器对所述应用页面进行流式渲染生成的。
  10. 根据权利要求9所述的应用页面的展示装置,其中。
    所述展示模块,具体用于根据所述多个子视图操作指令以及所述配置文件对所述应用页面分批次进行展示。
  11. 根据权利要求8所述的应用页面的展示装置,其中,所述装置还包括:第一检测模块和添加模块;
    所述第一检测模块,用于在所述展示模块对所述应用页面进行展示之后,检测是否接收到对所述应用页面的快捷方式的添加指令;
    所述添加模块,用于当所述第一检测模块检测到接收到对所述应用页面的快捷方式的添加指令时,在操作系统的桌面上添加所述快捷方式。
  12. 根据权利要求8所述的应用页面的展示装置,其中,所述装置还包括:第二检测模块和删除模块;
    所述第二检测模块,用于在所述展示模块对所述应用页面进行展示之后,检测是否接收到关闭所述应用页面的操作指令;
    所述删除模块,用于当所述第二检测模块检测到接收到关闭所述应用页面的操作指令时,将缓存的所述配置文件删除。
  13. 一种存储介质,其上存储有计算机程序,其中,所述计算机程序被处理器执行时实现如权利要求1-7任一项所述方法的步骤。
  14. 一种电子设备,包括处理器和存储器,所述存储器存储有多条指令,其中,所述处理器加载所述存储器中的指令用于执行以下步骤:
    接收应用页面的打开指令,所述指令携带对应的应用标识;
    将所述应用标识发送至服务器,接收并缓存所述服务器根据所述应用标识返回的配置文件;
    接收所述服务器发送的视图操作指令,所述视图操作指令为所述服务器对所述应用页面进行渲染生成的;
    根据所述视图操作指令以及所述配置文件对所述应用页面进行展示。
  15. 根据权利要求14所述的电子设备,其中,接收所述服务器发送的视图操作指令时,所述处理器用于执行以下步骤:
    接收所述服务器发送的多个子视图操作指令,所述子视图操作指令为所述服务器对所述应用页面进行流式渲染生成的。
  16. 根据权利要求15所述的电子设备,其中,根据所述视图操作指令以及所述配置文件对所述应用页面进行展示时,所述处理器用于执行以下步骤:
    根据所述多个子视图操作指令以及所述配置文件对所述应用页面分批次进行展示。
  17. 根据权利要求14所述的电子设备,其中,在对所述应用页面进行展示之后,所述处理器还用于执行以下步骤:
    检测是否接收到对所述应用页面的快捷方式的添加指令;
    当检测到接收到对所述应用页面的快捷方式的添加指令时,在操作系统的桌面上添加所述快捷方式。
  18. 根据权利要求14所述的电子设备,其中,在对所述应用页面进行展示之后,所述处理器还用于执行以下步骤:
    检测是否接收到关闭所述应用页面的操作指令;
    当检测到接收到关闭所述应用页面的操作指令时,将缓存的所述配置文件删除。
  19. 根据权利要求14所述的电子设备,其中,在对所述应用页面进行展示之后,所述处理器还用于执行以下步骤:
    接收针对所述应用页面的用户操作;
    根据所述用户操作打开所述应用的原生页面。
  20. 根据权利要求14所述的电子设备,其中,所述配置文件包括所述应用的安装文件,在对所述应用页面进行展示之后,所述处理器还用于执行以下步骤:
    接收用户触发的应用安装指令;
    根据所述按装指令和所述应用的安装文件安装所述应用。
PCT/CN2019/095102 2018-09-07 2019-07-08 应用页面的展示方法、装置、存储介质和电子设备 WO2020048218A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP19857566.4A EP3848799A4 (en) 2018-09-07 2019-07-08 METHOD AND DEVICE FOR REPRESENTING THE SIDE OF AN APPLICATION, STORAGE MEDIUM AND ELECTRONIC DEVICE
US17/193,877 US20210191996A1 (en) 2018-09-07 2021-03-05 Method for displaying application page, non-transitory storage medium and electronic device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811045455.XA CN109388453B (zh) 2018-09-07 2018-09-07 应用页面的展示方法、装置、存储介质和电子设备
CN201811045455.X 2018-09-07

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/193,877 Continuation US20210191996A1 (en) 2018-09-07 2021-03-05 Method for displaying application page, non-transitory storage medium and electronic device

Publications (1)

Publication Number Publication Date
WO2020048218A1 true WO2020048218A1 (zh) 2020-03-12

Family

ID=65418616

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/095102 WO2020048218A1 (zh) 2018-09-07 2019-07-08 应用页面的展示方法、装置、存储介质和电子设备

Country Status (4)

Country Link
US (1) US20210191996A1 (zh)
EP (1) EP3848799A4 (zh)
CN (1) CN109388453B (zh)
WO (1) WO2020048218A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111753229A (zh) * 2020-06-10 2020-10-09 支付宝(杭州)信息技术有限公司 一种页面配置方法、装置及设备
CN112866938A (zh) * 2020-12-31 2021-05-28 深圳市康冠商用科技有限公司 利用无线设备打开应用程序的方法、装置及智能设备及存储介质
CN114090133A (zh) * 2021-11-30 2022-02-25 深圳市元征科技股份有限公司 应用程序的配置方法、装置、电子设备及存储介质

Families Citing this family (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109388453B (zh) * 2018-09-07 2020-05-12 Oppo广东移动通信有限公司 应用页面的展示方法、装置、存储介质和电子设备
CN111782277A (zh) * 2019-04-04 2020-10-16 中国移动通信有限公司研究院 一种信息处理方法、装置、云端设备及终端
WO2020206691A1 (zh) * 2019-04-12 2020-10-15 深圳市欢太科技有限公司 应用程序的处理方法、装置、存储介质及电子设备
CN110035181B (zh) * 2019-04-12 2020-08-04 维沃移动通信有限公司 一种快应用卡片主题设置方法及终端
CN110221889B (zh) * 2019-05-05 2020-09-25 北京三快在线科技有限公司 一种页面展示方法、装置、电子设备及存储介质
WO2020228040A1 (zh) * 2019-05-16 2020-11-19 深圳市欢太科技有限公司 智能家居系统的控制方法、装置、电子设备及存储介质
CN110321178A (zh) * 2019-06-28 2019-10-11 百度在线网络技术(北京)有限公司 附属应用端的启动处理方法、装置、设备及存储介质
US11438402B2 (en) * 2019-09-20 2022-09-06 Bizupsolutions Inc. Systems and methods for providing a web application to a computing device
CN114706621B (zh) * 2019-09-26 2023-03-24 华为技术有限公司 一种启动快应用的方法及相关装置
CN111078216B (zh) * 2019-11-08 2023-06-02 泰康保险集团股份有限公司 信息展示方法、装置、电子设备及计算机可读介质
CN110990741B (zh) * 2019-11-29 2024-03-12 北京达佳互联信息技术有限公司 一种页面展示方法、装置、电子设备、服务器及存储介质
CN117311851A (zh) * 2019-12-04 2023-12-29 博泰车联网科技(上海)股份有限公司 用于信息处理的方法、设备和计算机存储介质
CN111596916A (zh) * 2020-04-20 2020-08-28 北京飞漫软件技术有限公司 一种应用程序管理方法、装置、设备及计算机存储介质
CN111581119B (zh) * 2020-05-07 2022-11-18 Oppo(重庆)智能科技有限公司 页面回收方法及装置
CN111859215A (zh) * 2020-06-30 2020-10-30 维沃移动通信有限公司 页面显示方法、装置、电子设备及可读存储介质
CN114253436B (zh) * 2020-09-11 2024-03-15 腾讯科技(深圳)有限公司 一种页面展示方法、装置及存储介质
CN112153064B (zh) * 2020-09-28 2022-11-22 上海缓存命中科技有限公司 应用商店及其使用方法
CN112114808A (zh) * 2020-09-29 2020-12-22 深圳市欢太科技有限公司 页面渲染方法、装置、电子设备
CN112612539B (zh) * 2020-12-18 2024-02-13 北京达佳互联信息技术有限公司 数据模型卸载方法、装置、电子设备及存储介质
CN112667321A (zh) * 2021-01-25 2021-04-16 深圳市欢太科技有限公司 快应用启动方法及装置、存储介质及电子设备
CN113138806B (zh) * 2021-03-25 2023-11-07 车智互联(北京)科技有限公司 一种移动应用运行环境的处理方法及装置
CN113434847B (zh) * 2021-06-25 2023-10-27 深圳赛安特技术服务有限公司 应用程序的隐私模块处理方法、装置、电子设备及介质
CN113703875A (zh) * 2021-09-09 2021-11-26 京东科技控股股份有限公司 瀑布流渲染方法、装置、设备及服务器
CN114217878A (zh) * 2021-12-23 2022-03-22 中国建设银行股份有限公司 一种对象加载方法及系统

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100332550A1 (en) * 2009-06-26 2010-12-30 Microsoft Corporation Platform For Configurable Logging Instrumentation
CN103970534A (zh) * 2014-04-15 2014-08-06 百度在线网络技术(北京)有限公司 一种提供移动应用中的渲染页面的方法与设备
CN105468324A (zh) * 2015-12-25 2016-04-06 北京奇虎科技有限公司 页面显示方法、装置及系统
CN106991154A (zh) * 2017-03-29 2017-07-28 百度在线网络技术(北京)有限公司 网页渲染方法、装置、终端及服务器
US20180088758A1 (en) * 2016-09-23 2018-03-29 Microsoft Technology Licensing, Llc Preserve input focus in virtualized dataset
CN109388453A (zh) * 2018-09-07 2019-02-26 Oppo广东移动通信有限公司 应用页面的展示方法、装置、存储介质和电子设备

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040031052A1 (en) * 2002-08-12 2004-02-12 Liberate Technologies Information platform
US9658758B1 (en) * 2014-05-02 2017-05-23 Tribune Publishing Company, Llc Online information system with continuous scrolling and position correction
CN108196930B (zh) * 2018-01-18 2020-04-03 腾讯科技(深圳)有限公司 应用程序处理方法、装置、存储介质和计算机设备
CN108319483B (zh) * 2018-01-30 2021-07-09 腾讯科技(深圳)有限公司 网页处理方法、装置、终端及存储介质
CN108228305A (zh) * 2018-02-02 2018-06-29 广东欧珀移动通信有限公司 应用页面的显示方法、装置、存储介质及电子设备

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100332550A1 (en) * 2009-06-26 2010-12-30 Microsoft Corporation Platform For Configurable Logging Instrumentation
CN103970534A (zh) * 2014-04-15 2014-08-06 百度在线网络技术(北京)有限公司 一种提供移动应用中的渲染页面的方法与设备
CN105468324A (zh) * 2015-12-25 2016-04-06 北京奇虎科技有限公司 页面显示方法、装置及系统
US20180088758A1 (en) * 2016-09-23 2018-03-29 Microsoft Technology Licensing, Llc Preserve input focus in virtualized dataset
CN106991154A (zh) * 2017-03-29 2017-07-28 百度在线网络技术(北京)有限公司 网页渲染方法、装置、终端及服务器
CN109388453A (zh) * 2018-09-07 2019-02-26 Oppo广东移动通信有限公司 应用页面的展示方法、装置、存储介质和电子设备

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3848799A4 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111753229A (zh) * 2020-06-10 2020-10-09 支付宝(杭州)信息技术有限公司 一种页面配置方法、装置及设备
CN112866938A (zh) * 2020-12-31 2021-05-28 深圳市康冠商用科技有限公司 利用无线设备打开应用程序的方法、装置及智能设备及存储介质
CN112866938B (zh) * 2020-12-31 2023-06-06 深圳市康冠商用科技有限公司 利用无线设备打开应用程序的方法、装置及智能设备及存储介质
CN114090133A (zh) * 2021-11-30 2022-02-25 深圳市元征科技股份有限公司 应用程序的配置方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
US20210191996A1 (en) 2021-06-24
CN109388453B (zh) 2020-05-12
EP3848799A1 (en) 2021-07-14
CN109388453A (zh) 2019-02-26
EP3848799A4 (en) 2021-11-10

Similar Documents

Publication Publication Date Title
WO2020048218A1 (zh) 应用页面的展示方法、装置、存储介质和电子设备
WO2019149207A1 (zh) 应用页面的显示方法、装置、存储介质及电子设备
KR102113272B1 (ko) 전자장치에서 복사/붙여넣기 방법 및 장치
JP6853397B2 (ja) 非ブラウザアプリケーションにおけるコンテンツの統合
US20180285471A1 (en) Page caching method and apparatus
CN108363528B (zh) 应用页面的启动方法、装置、存储介质及电子设备
KR20220107304A (ko) 애플리케이션 제어 방법 및 전자기기
US8650481B1 (en) Stable and secure use of content scripts in browser extensions
US10186244B2 (en) Sound effect processing method and device, plug-in unit manager and sound effect plug-in unit
CN109408136B (zh) 信息处理方法、装置、存储介质及电子设备
CN108287918B (zh) 基于应用页面的音乐播放方法、装置、存储介质和电子设备
CN108549568B (zh) 应用入口处理方法、装置、存储介质及电子设备
WO2021083040A1 (zh) 消息查看方法及终端
JP2018531454A6 (ja) 非ブラウザアプリケーションにおけるコンテンツの統合
US10296184B2 (en) Webpage navigation method, mobile terminal using the same, and volatile storage medium recording the same
CN115454286B (zh) 应用数据的处理方法、装置和终端设备
US20180343174A1 (en) Rule based page processing and network request processing in browsers
US20190213241A1 (en) Web page display method and apparatus, mobile terminal, and storage medium
WO2020206691A1 (zh) 应用程序的处理方法、装置、存储介质及电子设备
RU2628205C2 (ru) Способ, устройство и оконечная аппаратура для реагирования на операцию сдвига
WO2019165828A1 (zh) 处理方法、存储介质及电子设备
CN113613064B (zh) 视频处理方法、装置、存储介质及终端
EP2869604B1 (en) Method, apparatus and device for processing a mobile terminal resource
CN106168901A (zh) 应用程序字体自定义方法和控制方法及相应装置
WO2018058436A1 (zh) 一种加载软件程序的方法、用户终端及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19857566

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2019857566

Country of ref document: EP

Effective date: 20210406