CN110941473B - Preloading method, preloading device, electronic equipment and medium - Google Patents

Preloading method, preloading device, electronic equipment and medium Download PDF

Info

Publication number
CN110941473B
CN110941473B CN201911180547.3A CN201911180547A CN110941473B CN 110941473 B CN110941473 B CN 110941473B CN 201911180547 A CN201911180547 A CN 201911180547A CN 110941473 B CN110941473 B CN 110941473B
Authority
CN
China
Prior art keywords
preloading
target
application program
control
page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911180547.3A
Other languages
Chinese (zh)
Other versions
CN110941473A (en
Inventor
贾添添
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201911180547.3A priority Critical patent/CN110941473B/en
Publication of CN110941473A publication Critical patent/CN110941473A/en
Application granted granted Critical
Publication of CN110941473B publication Critical patent/CN110941473B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • 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
    • G06F3/0483Interaction with page-structured environments, e.g. book metaphor

Abstract

The embodiment of the invention discloses a preloading method, a preloading device, electronic equipment and a medium, wherein the preloading method is applied to the electronic equipment, the electronic equipment comprises an under-screen camera, and the preloading method comprises the following steps: under the condition that a first control is displayed in a screen display area in a preset range corresponding to the under-screen camera, determining whether the distance between the first control and a target object is smaller than a preset distance according to a first image which is acquired by the under-screen camera and comprises the target object; and preloading target data associated with the first control under the condition that the distance between the first control and the target object is smaller than a preset distance. By using the embodiment of the invention, the operation result of the user can be quickly and timely returned to the user, and the user is prevented from waiting for a long time to see the operation result.

Description

Preloading method, preloading device, electronic equipment and medium
Technical Field
The embodiment of the invention relates to the field of electronic equipment, in particular to a preloading method, a preloading device, electronic equipment and a preloading medium.
Background
Currently, in the process of operating an electronic device, in order to achieve a certain purpose (such as returning to a previous page or opening an application program), a user generally needs to perform a touch operation on a control displayed on a touch screen. After the touch screen receives the touch operation of a user, a signal generated by the touch operation is transmitted to the system, and then the system starts to run related programs so as to realize the function.
Although the operation of the electronic device can be realized in the above manner, the operation speed of the electronic device becomes slower as the use period of the electronic device increases. After the user operates the control, the system needs to react for a long time to return the result.
Therefore, the user needs to wait a long time to see the result of the operation. Moreover, in some cases, the system does not return a result in time, so that the user performs multiple touch operations on the same control. And the system is caused to execute the same function for a plurality of times, so that the result finally returned to the user is not the result wanted by the user, and the use experience of the user is greatly reduced.
Disclosure of Invention
The embodiment of the invention provides a preloading method, which aims to solve the problem that a user needs to wait for a long time to see an operation result after performing an operation.
In order to solve the technical problems, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a preloading method, applied to an electronic device, where the electronic device includes an under-screen camera, the method includes:
under the condition that a first control is displayed in a screen display area in a preset range corresponding to the under-screen camera, determining whether the distance between the first control and a target object is smaller than a preset distance according to a first image which is acquired by the under-screen camera and comprises the target object;
And preloading target data associated with the first control under the condition that the distance between the first control and the target object is smaller than a preset distance.
In a second aspect, an embodiment of the present invention provides a preloading device, applied to an electronic device, where the electronic device includes an under-screen camera, and the device includes:
the distance determining module is used for determining whether the distance between the first control and the target object is smaller than a preset distance according to a first image which is acquired by the under-screen camera and comprises the target object under the condition that the first control is displayed in a screen display area in a preset range corresponding to the under-screen camera;
and the preloading module is used for preloading target data associated with the first control when the distance between the first control and the target object is smaller than a preset distance.
In a third aspect, an embodiment of the present invention provides an electronic device, including a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program implements the steps of the preloading method when executed by the processor.
In a fourth aspect, embodiments of the present invention provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the preloading method.
In the embodiment of the invention, the target data associated with the first control is preloaded, so that after the operation of the user is received, a result can be returned to the user according to the preloaded target data. It is avoided that the loading of the target data is started after the user's operation is received. Therefore, the embodiment of the invention can quickly and timely return the operation result of the user to the user, and avoid the user waiting for a long time to see the operation result. Moreover, the electronic equipment does not return the operation result to the user after a period of time delay, so that the user is prevented from operating for multiple times, the electronic equipment is prevented from executing the same function for multiple times, and the result finally returned to the user is further prevented from being not the result wanted by the user, and therefore the use experience of the user is improved.
Drawings
The invention will be better understood from the following description of specific embodiments thereof taken in conjunction with the accompanying drawings in which like or similar reference characters designate like or similar features.
FIG. 1 shows a flow diagram of a preloading method of one embodiment provided by the present invention;
FIG. 2 shows a schematic diagram of a displayed song page for one embodiment provided by the present invention;
FIG. 3 shows a schematic diagram of a display novel page according to one embodiment of the present invention;
FIG. 4 illustrates a schematic diagram of displaying historical pages of an application according to one embodiment of the present invention;
FIG. 5 illustrates a schematic diagram of displaying icons of an application in accordance with one embodiment of the present invention;
FIG. 6 shows a schematic structural diagram of a preloading device according to one embodiment of the present invention;
fig. 7 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The embodiment of the invention realizes preloading target data by using the under-screen camera of the electronic equipment, and the preloading is performed before the user operates. In this case, after the user operation, the operation result is returned to the user according to the preloaded target data. The following describes embodiments of the present invention in detail:
FIG. 1 shows a flow diagram of a preloading method of one embodiment provided by the present invention. The preloading method is applied to electronic equipment, and the electronic equipment comprises an under-screen camera. As shown in fig. 1, the preloading method includes:
step 102, determining whether the distance between the first control and the target object is smaller than a predetermined distance according to a first image including the target object (for example, the target object may be a finger or a stylus of a user) acquired by the under-screen camera when the first control is displayed in a screen display area within a preset range corresponding to the under-screen camera. For example, the first control is displayed at a position corresponding to the under-screen camera, or the first control is displayed around a position corresponding to the under-screen camera.
The area of the target object in the first image acquired by the under-screen camera is larger as the target object is closer to the first control, namely the ratio of the area of the target object in the first image to the total area of the first image is larger. Therefore, whether the distance between the target object and the first control is smaller than the preset distance can be determined according to the proportion of the area of the target object in the first image to the total area of the first image. Based on the above analysis, optionally, step 102 may include:
Determining the proportion of the area of the target object in the first image to the total area of the first image according to the first image; and determining that the distance between the first control and the target object is smaller than the preset distance under the condition that the proportion of the area of the target object in the first image to the total area of the first image is larger than the preset proportion.
And under the condition that the proportion of the area of the target object in the first image to the total area of the first image is smaller than or equal to a preset proportion, determining that the distance between the first control and the target object is larger than or equal to a preset distance, and continuously acquiring the first image which comprises the target object and is acquired by the under-screen camera so as to continuously determine whether the distance between the first control and the target object is smaller than the preset distance.
In step 102, the distance between the target object and the first control may be obtained by the ratio of the area of the target object in the first image to the total area of the first image. When the ratio of the area of the target object in the first image to the total area of the first image is greater than the predetermined ratio, it is indicated that the distance between the first control and the target object is smaller than the predetermined distance, that is, the target object is closer to the first control, so as to indicate that the user may need to perform an operation, and the next step, that is, step 104 may be performed.
Step 104, preloading target data associated with the first control in the case that the distance between the first control and the target object is smaller than the preset distance.
In the embodiment of the invention, the user places the finger above the first control and does not touch the position of the first control, and the electronic equipment preloads the target data associated with the first control, so that after receiving the operation of the user, a result can be returned according to the preloaded target data. It is avoided that the loading of the target data is started after the user's operation is received. The method and the device can quickly and timely return the operation result of the user to the user, and avoid the user waiting for a long time to see the operation result.
In addition, since the operation result of the user is returned to the user quickly and timely, the operation result is not returned to the user after a period of time. Therefore, the user is prevented from operating for multiple times, the electronic equipment is prevented from executing the same function for multiple times, and the fact that the result finally returned to the user is not the result wanted by the user is further prevented, so that the use experience of the user is improved.
Optionally, the preloaded target data associated with the first control includes at least two cases:
Case one, the target data associated with the first control includes a target page
After step 104, the preloading method further comprises: receiving a first input, such as receiving a first input to a first control; in response to the first input, a target page is displayed.
In this case, optionally, step 104 includes: the target page corresponding to the function of the first control is preloaded.
For example, the function of the first control is to return to the previous page and preload the content of the previous page; the function of the first control is to enter the next page, and the content of the next page is preloaded; the function of the first control is to return to the main page and preload the content of the main page; the function of the first control is to set and preload the set page; the first control has the function of link skip and preloading the page to which the link skip is performed.
Optionally, the first control is displayed on the first page; the target page includes at least one of a history page displayed before the first page, a page laid out before the first page, and a page laid out after the first page.
For example, referring to fig. 2, the first page is a page displaying song "XXXXX", in which a return control 001 (i.e., first control) is displayed, the return control 001 being displayed above the on-screen camera 002. In the event that the user's finger is placed over the return control 001, the electronic device determines that the user's finger is less than a predetermined distance from the return control 001, the electronic device preloads the history page displayed prior to the first page.
For another example, referring to fig. 3, the first page is a page displaying a certain page of content 003 of a literature (such as a novel, a cartoon, a magazine, etc.), and in the first page, there is a control 001 (i.e., a first control) for entering the previous page, and the control 001 is displayed above the under-screen camera 002. When the finger of the user is placed above the control 001, and the electronic device determines that the distance between the finger of the user and the control 001 is smaller than the preset distance, the electronic device preloads a page of the literature composition before the first page; alternatively, the electronic device preloads at least one of a page laid out before the first page and a page laid out after the first page in the literary work. In this way, the user can place the finger above the first control under the condition that the content of the first page is browsed immediately, so that the electronic device can load target data associated with the first control in advance.
Optionally, the number of first images is at least two; in the case that the distance between the first control and the target object is smaller than the preset distance, the preloading method further comprises the following steps: and determining the duration time that the distance between the first control and the target object is smaller than the preset distance according to at least two first images.
Preloading a target page corresponding to the function of the first control, including: and preloading a plurality of target pages corresponding to the functions of the first control according to the duration, wherein the number of pages of the target pages and the duration are in positive correlation.
For example, the duration is the duration that the user's finger is placed over the return control. The longer the duration, the more pages of the preloaded history pages.
In an embodiment of the present invention, multiple target pages may be preloaded. After preloading the plurality of target pages, if the plurality of inputs to the first control are continuously received, the electronic device may respectively execute the plurality of inputs and sequentially display the preloaded plurality of target pages. Therefore, the response speed of the electronic equipment to a plurality of inputs is high, a plurality of target pages can be displayed to the user smoothly in sequence, and the time for the user to wait for results is shortened.
In addition, in the case of preloading the target page, a load icon representing the load state may be displayed, for example, the preload icon is a circle of revolution. With the extension of the preloading time, the state of the loading icon also changes, so that a user can intuitively feel the preloading state.
Case two, the target data associated with the first control includes a target application
After step 104, the preloading method further comprises: receiving a first input of a user; in response to the first input, the target application is run.
In this case, optionally, the first control is an application icon.
Optionally, preloading the target data associated with the first control is accomplished in at least two ways:
1. mode one
Preloading the target data associated with the first control includes: and preloading a target application program corresponding to the application program icon.
In the case of mode one, optionally, the preloading method further includes: preloading at least one history page of a target application; a thumbnail of at least one history page or key information of at least one history page will be displayed.
After responding to the first input, the preloading method further comprises: and displaying a third page in the at least one history page under the condition that the first input is the selected input of the thumbnail or the key information corresponding to the third page.
For example, referring to fig. 4, an icon 004 of a mailbox application (i.e., the first control in the above description) is displayed above the under-screen camera 002, and the electronic device preloads the mailbox application and three history pages 005 when the user uses the mailbox application when the electronic device determines that the distance between the user's finger and the icon 004 is less than a predetermined distance. The three history pages 005 are a page for receiving bill mail, a page for receiving recruitment mail, and a main page, respectively, and thumbnail images of the three history pages 005 are displayed. A first input is received for a main page (i.e., the third page of the above) in at least one history page 005, a mailbox application is run in response to the first input, and a main page display is displayed.
2. Mode two
Preloading the target data associated with the first control includes: at least one application program started in a preset historical time period is preloaded according to the application program icon, wherein the at least one application program comprises a target application program.
In the case of mode two, optionally, before receiving the first input of the user, the preloading method further comprises: displaying icons of the preloaded at least one application; the first input is a selected input of an icon of a target application of the at least one application.
Referring to fig. 5, an icon 004 of a mailbox application (the icon 004 is the first control in the above) is displayed above the under-screen camera 002, a user's finger is placed above the icon 004, and the electronic device preloads at least one application used by the user for a predetermined history period, that is, an application for playing video and an application for image processing, in a case where it is determined that the distance between the user's finger and the icon 004 is less than a predetermined distance, and displays an icon 006 of the application for playing video and an icon 007 of the application for image processing. A selection input to any one of the icon 006 and the icon 007 is received, and in response to the selection input, an application corresponding to the selected icon is run.
For the two ways of implementing the preloading of the target data described above, how the electronic device selects one way to preload in the above two ways is described below.
The number of the first images is at least two; before preloading the target data associated with the first control, the preloading method further comprises: from the at least two first images, a duration is determined for which the distance is less than the predetermined distance.
Preloading target data associated with the first control, including at least one of:
under the condition that the duration is less than the preset duration, preloading a target application program corresponding to the application program icon, namely, preloading in the mode one;
preloading at least one application used by a user for a predetermined historical period of time includes: and preloading the at least one application program started in a predetermined history period in a case that the duration is longer than or equal to the predetermined duration, wherein the at least one application program comprises a target application program.
For example, the duration is a duration that the user finger stays above the application icon (the application icon is not touched when the user finger stays), and when the duration is less than the predetermined duration, the electronic device loads the target application corresponding to the application icon (i.e., the application icon displayed in the screen display area within the preset range corresponding to the under-screen camera). In the case where the duration is longer than or equal to the predetermined duration, the electronic device preloads the application program used by the user in the last week, or the 4 application programs used by the user in the last week with the highest frequency.
Optionally, before step 104, the preloading method further includes:
acquiring first fingerprint information of a target object according to a second image which is acquired by an under-screen camera and corresponds to the target object; and matching the first fingerprint information with the pre-stored second fingerprint information.
Wherein step 104 comprises: the target data is preloaded in case the first fingerprint information matches the second fingerprint information. For example, the similarity between the first fingerprint information and the second fingerprint information is greater than a predetermined similarity threshold, indicating that the first fingerprint information matches the second fingerprint information.
In the embodiment of the invention, the user needs to place a predetermined finger (i.e. the finger when acquiring the second fingerprint information) above the first control, and the electronic device can preload the target data. If the user's intended finger is not placed over the first control, the electronic device cannot be preloaded, thereby preventing privacy from being compromised.
Fig. 6 shows a schematic structural diagram of a preloading device according to an embodiment of the present invention. The preloading device is used for electronic equipment, the electronic equipment comprises an under-screen camera, as shown in fig. 6, the preloading device 200 comprises:
the distance determining module 202 is configured to determine, when a first control is displayed in a screen display area within a preset range corresponding to the under-screen camera, whether a distance between the first control and a target object is smaller than a predetermined distance according to a first image including the target object acquired by the under-screen camera;
And a preloading module 204, configured to preload target data associated with the first control if the distance between the first control and the target object is less than a predetermined distance.
In the embodiment of the invention, the user places the finger above the first control and does not touch the position of the first control, and the electronic equipment preloads the target data associated with the first control, so that after receiving the operation of the user, a result can be returned according to the preloaded target data. It is avoided that the loading of the target data is started after the user's operation is received. The method and the device can quickly and timely return the operation result of the user to the user, and avoid the user waiting for a long time to see the operation result.
In addition, since the operation result of the user is returned to the user quickly and timely, the operation result is not returned to the user after a period of time. Therefore, the user is prevented from operating for multiple times, the electronic equipment is prevented from executing the same function for multiple times, and the fact that the result finally returned to the user is not the result wanted by the user is further prevented, so that the use experience of the user is improved.
Optionally, the target data includes a target application program or a target page; the preloading device 200 further includes:
The input receiving module is used for receiving a first input of a user;
and the input response module is used for responding to the first input and running the target application program or switching to the target page.
Optionally, in a case where the target data includes the target page, the preloading module 204 includes:
and the page preloading module is used for preloading the target page corresponding to the function of the first control.
Optionally, the first control is displayed on a first page; the target page comprises a history page displayed before the first page, pages typeset before the first page and at least one of pages typeset after the first page.
Optionally, the number of first images is at least two; in case the distance between the first control and the target object is smaller than a predetermined distance, the preloading device 200 further comprises:
the first duration determining module is used for determining duration time when the distance between the first control and the target object is smaller than a preset distance according to at least two first images;
the page preloading module is used for preloading a plurality of target pages corresponding to the functions of the first control according to the duration, wherein the number of pages of the target pages and the duration are in positive correlation.
Optionally, in a case where the target data includes a target application, the first control is an application icon; the preload module 204 comprises:
the first application program preloading module is used for preloading the target application program corresponding to the application program icon;
or alternatively, the process may be performed,
and the second application program preloading module is used for preloading at least one application program started in a preset historical time period according to the application program icon, wherein the at least one application program comprises the target application program.
Optionally, the number of first images is at least two; the preloading device 200 further includes:
a second duration determining module, configured to determine, according to at least two of the first images, a duration in which the distance is smaller than the predetermined distance;
the first application program preloading module is used for preloading the target application program corresponding to the application program icon under the condition that the duration time is smaller than a preset duration time;
the second application preloading module is used for preloading at least one application program started in a preset historical time period under the condition that the duration time is longer than or equal to a preset duration time, wherein the at least one application program comprises the target application program.
Optionally, in the case of preloading the target application program corresponding to the application program icon, the preloading device 200 further includes:
a history page preloading module for preloading at least one history page of the target application program;
the history page display module is used for displaying at least one thumbnail of the history page or key information of the history page;
and the selected page display module is used for displaying a third page in the at least one historical page under the condition that the first input is the selected input of the thumbnail or the key information corresponding to the third page.
Optionally, in the case of preloading the at least one application, the preloading device 200 further includes:
an icon display module for displaying icons of the at least one application program;
the first input is a selected input of an icon of the target application of the at least one application.
Optionally, the distance determination module 202 includes:
the area proportion determining module is used for determining the proportion of the area of the target object in the first image to the total area of the first image according to the first image;
And the object distance determining module is used for determining that the distance between the first control and the target object is smaller than the preset distance under the condition that the proportion is larger than the preset proportion.
Optionally, the preloading device 200 further comprises:
the fingerprint information acquisition module is used for acquiring first fingerprint information of the target object according to a second image which is acquired by the under-screen camera and comprises the target object;
the fingerprint information matching module is used for matching the first fingerprint information with the pre-stored second fingerprint information;
wherein, the preloading module 204 is configured to preload the target data if the first fingerprint information matches the second fingerprint information.
Fig. 7 shows a schematic hardware structure of an electronic device according to an embodiment of the present invention, where the electronic device 300 includes, but is not limited to: a radio frequency unit 301, a network module 302, an audio output unit 303, an input unit 304, a sensor 305, a display unit 306, a user input unit 307, an interface unit 308, a memory 309, a processor 310, a power supply 311, an off-screen camera, and the like. It will be appreciated by those skilled in the art that the electronic device structure shown in fig. 7 is not limiting of the electronic device and that the electronic device may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. In the embodiment of the invention, the electronic equipment comprises, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer and the like.
The processor 310 is configured to determine, when a first control is displayed in a screen display area within a preset range corresponding to the under-screen camera, whether a distance between the first control and the target object is smaller than a predetermined distance according to a first image including the target object acquired by the under-screen camera; and preloading target data associated with the first control in the case that the distance between the first control and the target object is smaller than a preset distance.
In the embodiment of the invention, the target data associated with the first control is preloaded, so that after the operation of the user is received, a result can be returned to the user according to the preloaded target data. It is avoided that the loading of the target data is started after the user's operation is received. Therefore, the embodiment of the invention can quickly and timely return the operation result of the user to the user, and avoid the user waiting for a long time to see the operation result. Moreover, the electronic equipment does not return the operation result to the user after a period of time delay, so that the user is prevented from operating for multiple times, the electronic equipment is prevented from executing the same function for multiple times, and the result finally returned to the user is further prevented from being not the result wanted by the user, and therefore the use experience of the user is improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 301 may be used to receive and send information or signals during a call, specifically, receive downlink data from a base station, and then process the downlink data with the processor 310; and, the uplink data is transmitted to the base station. Typically, the radio frequency unit 301 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 301 may also communicate with networks and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user through the network module 302, such as helping the user to send and receive e-mail, browse web pages, and access streaming media, etc.
The audio output unit 303 may convert audio data received by the radio frequency unit 301 or the network module 302 or stored in the memory 309 into an audio signal and output as sound. Also, the audio output unit 303 may also provide audio output (e.g., a call signal reception sound, a message reception sound, etc.) related to a specific function performed by the electronic device 300. The audio output unit 303 includes a speaker, a buzzer, a receiver, and the like.
The input unit 304 is used to receive an audio or video signal. The input unit 304 may include a graphics processor (Graphics Processing Unit, GPU) 3041 and a microphone 3042, the graphics processor 3041 processing image data of still pictures or video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 306. The image frames processed by the graphics processor 3041 may be stored in the memory 309 (or other storage medium) or transmitted via the radio frequency unit 301 or the network module 302. The microphone 3042 may receive sound, and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output that can be transmitted to the mobile communication base station via the radio frequency unit 301 in the case of a telephone call mode.
The electronic device 300 further comprises at least one sensor 305, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 3061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 3061 and/or the backlight when the electronic device 300 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for recognizing the gesture of the electronic equipment (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; the sensor 305 may further include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which are not described herein.
The display unit 306 is used to display information input by a user or information provided to the user. The display unit 306 may include a display panel 3061, and the display panel 3061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 307 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 307 includes a touch panel 3071 and other input devices 3072. The touch panel 3071, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 3071 or thereabout the touch panel 3071 using any suitable object or accessory such as a finger, stylus, or the like). The touch panel 3071 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 310, and receives and executes commands sent by the processor 310. In addition, the touch panel 3071 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 307 may include other input devices 3072 in addition to the touch panel 3071. Specifically, other input devices 3072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 3071 may be overlaid on the display panel 3061, and when the touch panel 3071 detects a touch operation thereon or thereabout, the touch operation is transmitted to the processor 310 to determine a type of touch event, and then the processor 310 provides a corresponding visual output on the display panel 3061 according to the type of touch event. Although in fig. 7, the touch panel 3071 and the display panel 3061 are two independent components for implementing the input and output functions of the electronic device, in some embodiments, the touch panel 3071 and the display panel 3061 may be integrated to implement the input and output functions of the electronic device, which is not limited herein.
The interface unit 308 is an interface to which an external device is connected to the electronic apparatus 300. For example, the external devices may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 308 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 300 or may be used to transmit data between the electronic apparatus 300 and an external device.
Memory 309 may be used to store software programs as well as various data. The memory 309 may mainly include a storage program area that may store an operating system, application programs required for at least one function (such as a sound playing function, an image playing function, etc.), and a storage data area; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, memory 309 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 310 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 309, and calling data stored in the memory 309, thereby performing overall monitoring of the electronic device. Processor 310 may include one or more processing units; preferably, the processor 310 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 310.
The electronic device 300 may also include a power supply 311 (e.g., a battery) for powering the various components, and preferably the power supply 311 may be logically coupled to the processor 310 via a power management system that performs functions such as managing charge, discharge, and power consumption.
In addition, the electronic device 300 includes some functional modules, which are not shown, and will not be described herein.
The embodiment of the invention also provides an electronic device, which comprises a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program realizes the processes of the preloading method embodiment when being executed by the processor, and can achieve the same technical effects, and the repetition is avoided, so that the description is omitted.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the respective processes of the above-mentioned preloading method embodiment, and can achieve the same technical effects, and in order to avoid repetition, the description is omitted here. Wherein the computer readable storage medium is selected from Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The embodiments of the present invention have been described above with reference to the accompanying drawings, but the present invention is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present invention and the scope of the claims, which are to be protected by the present invention.

Claims (9)

1. A method of preloading applied to an electronic device, the electronic device comprising an off-screen camera, the method comprising:
under the condition that a first control is displayed in a screen display area in a preset range corresponding to the under-screen camera, determining whether the distance between the first control and a target object is smaller than a preset distance according to a first image which is acquired by the under-screen camera and comprises the target object;
preloading target data associated with the first control under the condition that the distance between the first control and the target object is smaller than a preset distance, wherein the target data comprises a target application program or a target page;
after the preloading of the target data associated with the first control, the method further comprises:
Receiving a first input;
running the target application or displaying the target page in response to the first input;
wherein the preloading of the target data associated with the first control comprises:
when the target data comprises a target application program and the first control is an application program icon, preloading the target application program corresponding to the application program icon;
or alternatively, the process may be performed,
preloading at least one application program started in a preset historical time period according to the application program icon, wherein the at least one application program comprises the target application program;
wherein, under the condition of preloading the target application program corresponding to the application program icon,
the method further comprises the steps of: preloading at least one history page of the target application;
displaying a thumbnail of the at least one history page or key information of the at least one history page;
after responding to the first input, the method further comprises: displaying a third page of the at least one history page when the first input is a selected input of a thumbnail or key information corresponding to the third page;
Wherein the number of the first images is at least two; before the preloading of the target data associated with the first control, the method further comprises:
determining a duration of the distance less than the predetermined distance from at least two of the first images;
the preloading of the target data associated with the first control includes at least one of:
preloading the target application program corresponding to the application program icon under the condition that the duration is less than a preset duration;
preloading the at least one application program started in a predetermined history period in a case that the duration period is greater than or equal to a predetermined period, wherein the at least one application program includes the target application program;
in the case of preloading the at least one application, prior to the receiving the first input, the method further comprises:
displaying icons of the at least one application program, wherein the first input is selected input of the icons of the target application programs in the at least one application program.
2. The method of claim 1, wherein the target data comprises the target page; the preloading of target data associated with the first control includes:
And preloading the target page corresponding to the function of the first control.
3. The method of claim 2, wherein the first control is displayed on a first page;
the target page comprises a history page displayed before the first page, pages typeset before the first page and at least one of pages typeset after the first page.
4. The method of claim 2, wherein the number of first images is at least two; in the case that the distance between the first control and the target object is smaller than a predetermined distance, the method further includes:
determining duration time when the distance between the first control and the target object is smaller than a preset distance according to at least two first images;
the preloading the target page corresponding to the function of the first control comprises the following steps:
and preloading a plurality of target pages corresponding to the functions of the first control according to the duration, wherein the number of pages of the target pages and the duration are in positive correlation.
5. The method of claim 1, wherein the determining whether the distance between the first control and the target object is less than a predetermined distance based on the first image including the target object acquired by the under-screen camera comprises:
Determining the proportion of the area of the target object in the first image to the total area of the first image according to the first image;
and under the condition that the proportion is larger than a preset proportion, determining that the distance between the first control and the target object is smaller than a preset distance.
6. The method of claim 1, wherein prior to preloading the target data associated with the first control, the method further comprises:
acquiring first fingerprint information corresponding to a target object according to a second image which is acquired by the under-screen camera and comprises the target object;
matching the first fingerprint information with pre-stored second fingerprint information;
wherein the preloading of the target data associated with the first control comprises:
and preloading the target data under the condition that the first fingerprint information is matched with the second fingerprint information.
7. A preloading device for an electronic apparatus, the electronic apparatus comprising an off-screen camera, the device comprising:
the distance determining module is used for determining whether the distance between the first control and the target object is smaller than a preset distance according to a first image which is acquired by the under-screen camera and comprises the target object under the condition that the first control is displayed in a screen display area in a preset range corresponding to the under-screen camera;
The preloading module is used for preloading target data associated with the first control under the condition that the distance between the first control and the target object is smaller than a preset distance, wherein the target data comprises a target application program or a target page;
wherein the apparatus further comprises:
an input receiving module for receiving a first input;
the input response module is used for responding to the first input, running the target application program or displaying the target page;
wherein, the preload module includes:
a first application program preloading module, configured to preload, when the target data includes a target application program and the first control is an application program icon, the target application program corresponding to the application program icon;
or alternatively, the process may be performed,
a second application program preloading module, configured to preload at least one application program started in a predetermined history period according to the application program icon, where the at least one application program includes the target application program;
wherein the apparatus further comprises:
a history page preloading module, configured to preload at least one history page of the target application program under the condition of preloading the target application program corresponding to the application program icon;
The history page preloading module is used for displaying a thumbnail of the at least one history page or key information of the at least one history page;
the selected page display module is used for displaying a third page in the at least one historical page under the condition that the first input is the selected input of the thumbnail or key information corresponding to the third page;
wherein the number of the first images is at least two; wherein the apparatus further comprises:
a second duration determining module, configured to determine, according to at least two of the first images, a duration in which the distance is smaller than the predetermined distance;
the preloading of the target data associated with the first control includes at least one of:
preloading the target application program corresponding to the application program icon under the condition that the duration is less than a preset duration;
preloading the at least one application program started in a predetermined history period in a case that the duration period is greater than or equal to a predetermined period, wherein the at least one application program includes the target application program;
and the icon display module is used for displaying icons of the at least one application program under the condition of preloading the at least one application program, and the first input is selected input of the icons of the target application programs in the at least one application program.
8. An electronic device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, which when executed by the processor implements the steps of the preloading method of any of claims 1-6.
9. A computer readable storage medium, characterized in that it has stored thereon a computer program which, when executed by a processor, implements the steps of the preloading method of any of claims 1-6.
CN201911180547.3A 2019-11-27 2019-11-27 Preloading method, preloading device, electronic equipment and medium Active CN110941473B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911180547.3A CN110941473B (en) 2019-11-27 2019-11-27 Preloading method, preloading device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911180547.3A CN110941473B (en) 2019-11-27 2019-11-27 Preloading method, preloading device, electronic equipment and medium

Publications (2)

Publication Number Publication Date
CN110941473A CN110941473A (en) 2020-03-31
CN110941473B true CN110941473B (en) 2023-10-24

Family

ID=69908546

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911180547.3A Active CN110941473B (en) 2019-11-27 2019-11-27 Preloading method, preloading device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN110941473B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103218124A (en) * 2013-04-12 2013-07-24 北京国铁华晨通信信息技术有限公司 Depth-camera-based menu control method and system
CN104166505A (en) * 2013-05-20 2014-11-26 腾讯科技(深圳)有限公司 Information viewing method and device and mobile terminal
CN107632985A (en) * 2016-07-18 2018-01-26 腾讯科技(北京)有限公司 Webpage preloads method and device
CN108595230A (en) * 2018-05-15 2018-09-28 Oppo广东移动通信有限公司 Application program preloads method, apparatus, storage medium and terminal
CN108647055A (en) * 2018-05-10 2018-10-12 Oppo广东移动通信有限公司 Application program preloads method, apparatus, storage medium and terminal
CN108983872A (en) * 2018-06-04 2018-12-11 Oppo广东移动通信有限公司 Electronic device and its control method
CN110134459A (en) * 2019-05-15 2019-08-16 Oppo广东移动通信有限公司 Using starting method and Related product
CN110149442A (en) * 2019-04-10 2019-08-20 华为技术有限公司 A kind of control method and terminal device for putting out screen display
CN110231963A (en) * 2019-06-12 2019-09-13 Oppo广东移动通信有限公司 Application control method and relevant apparatus
CN110493523A (en) * 2019-08-27 2019-11-22 Oppo广东移动通信有限公司 Image display method, device, terminal and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9100618B2 (en) * 2013-06-17 2015-08-04 Spotify Ab System and method for allocating bandwidth between media streams
KR102380228B1 (en) * 2014-11-14 2022-03-30 삼성전자주식회사 Method for controlling device and the device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103218124A (en) * 2013-04-12 2013-07-24 北京国铁华晨通信信息技术有限公司 Depth-camera-based menu control method and system
CN104166505A (en) * 2013-05-20 2014-11-26 腾讯科技(深圳)有限公司 Information viewing method and device and mobile terminal
CN107632985A (en) * 2016-07-18 2018-01-26 腾讯科技(北京)有限公司 Webpage preloads method and device
CN108647055A (en) * 2018-05-10 2018-10-12 Oppo广东移动通信有限公司 Application program preloads method, apparatus, storage medium and terminal
CN108595230A (en) * 2018-05-15 2018-09-28 Oppo广东移动通信有限公司 Application program preloads method, apparatus, storage medium and terminal
CN108983872A (en) * 2018-06-04 2018-12-11 Oppo广东移动通信有限公司 Electronic device and its control method
CN110149442A (en) * 2019-04-10 2019-08-20 华为技术有限公司 A kind of control method and terminal device for putting out screen display
CN110134459A (en) * 2019-05-15 2019-08-16 Oppo广东移动通信有限公司 Using starting method and Related product
CN110231963A (en) * 2019-06-12 2019-09-13 Oppo广东移动通信有限公司 Application control method and relevant apparatus
CN110493523A (en) * 2019-08-27 2019-11-22 Oppo广东移动通信有限公司 Image display method, device, terminal and storage medium

Also Published As

Publication number Publication date
CN110941473A (en) 2020-03-31

Similar Documents

Publication Publication Date Title
CN111049979B (en) Application sharing method, electronic equipment and computer readable storage medium
CN110837327B (en) Message viewing method and terminal
CN108446058B (en) Mobile terminal operation method and mobile terminal
CN108279948B (en) Application program starting method and mobile terminal
CN108897473B (en) Interface display method and terminal
CN109814786B (en) Image storage method and terminal equipment
CN108900695B (en) Display processing method, terminal equipment and computer readable storage medium
CN111026484A (en) Application sharing method, first electronic device and computer-readable storage medium
CN110913067A (en) Information sending method and electronic equipment
CN108491148B (en) Application sharing method and terminal
CN108920040B (en) Application icon sorting method and mobile terminal
CN111124223A (en) Application interface switching method and electronic equipment
CN108984066B (en) Application icon display method and mobile terminal
CN111610903A (en) Information display method and electronic equipment
CN110096203B (en) Screenshot method and mobile terminal
CN110012151B (en) Information display method and terminal equipment
CN109067975B (en) Contact person information management method and terminal equipment
CN110597437A (en) Screen capturing method and terminal equipment
CN108021315B (en) Control method and mobile terminal
CN112217713B (en) Method and device for displaying message
CN107967086B (en) Icon arrangement method and device for mobile terminal and mobile terminal
CN110780751B (en) Information processing method and electronic equipment
CN109947323B (en) Terminal display method and terminal
CN110213437B (en) Editing method and mobile terminal
CN108829306B (en) Information processing method and mobile terminal

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
GR01 Patent grant
GR01 Patent grant