[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN116700855A - Interface display method and electronic equipment - Google Patents

Interface display method and electronic equipment Download PDF

Info

Publication number
CN116700855A
CN116700855A CN202211583733.3A CN202211583733A CN116700855A CN 116700855 A CN116700855 A CN 116700855A CN 202211583733 A CN202211583733 A CN 202211583733A CN 116700855 A CN116700855 A CN 116700855A
Authority
CN
China
Prior art keywords
application
state
foldable
background application
mobile phone
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.)
Granted
Application number
CN202211583733.3A
Other languages
Chinese (zh)
Other versions
CN116700855B (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.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202211583733.3A priority Critical patent/CN116700855B/en
Publication of CN116700855A publication Critical patent/CN116700855A/en
Application granted granted Critical
Publication of CN116700855B publication Critical patent/CN116700855B/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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/147Digital output to display device ; Cooperation and interconnection of the display device with other functional units using display panels
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides an interface display method and electronic equipment, and relates to the technical field of terminals. When the device state of the electronic device, namely the foldable device, changes, the foldable device can determine a commonly used background application in the background application of the foldable device based on the use habit of the user in different device states, and perform size change processing on an interface of the commonly used background application so as to enable the interface of the commonly used background application to be adapted to the current device state of the foldable device. The device states include a collapsed state and an expanded state. When a user starts a certain common background application, the foldable equipment can directly display the interface after the change processing of the common background application, so that the timely response starting of the background application is realized, and the starting time of the background application can be effectively shortened. And, collapsible equipment is to carry out the change of size processing to the background application that the user frequently used, reduces the probability of carrying out unnecessary pre-adaptation, reduces the waste of resource.

Description

Interface display method and electronic equipment
Technical Field
The present application relates to the field of terminal technologies, and in particular, to an interface display method and an electronic device.
Background
As the technology of folding screens has matured, there are more and more users who use foldable devices (such as foldable cellular phones). There are two device states of the collapsible device, a collapsed state and an expanded state, respectively. When the device state of the foldable device is a folded state, the display screen of the foldable device may be an external screen, that is, the foldable device displays corresponding content (such as an interface of an Application (APP) of the foldable device) through the external screen. When the device state of the foldable device is the unfolded state, the display screen of the foldable device may be an inner screen, that is, the foldable device displays the corresponding content through the inner screen.
When the device state of the foldable device is switched, the display screen size of the foldable device is also changed. For example, when the device state of the foldable device is switched from the folded state to the unfolded state, the display screen of the foldable device is switched from the outer screen to the inner screen, and the inner screen size (i.e., the display screen size corresponding to the inner screen) is larger than the outer screen size (i.e., the display screen size corresponding to the outer screen), i.e., the display screen size of the foldable device is changed. Accordingly, when the foldable device starts the background application, the interface of the background application needs to be adapted to the current display screen size of the foldable device, so that the starting time of the background application is longer, and the user experience is lower.
Disclosure of Invention
In view of this, the application provides an interface display method and an electronic device, which can shorten the starting duration of the background application of the foldable device, so as to improve the starting response time delay and the completion time delay of the background application of the foldable device.
In a first aspect, the present application provides an interface display method, where when a foldable device detects that the foldable device is switched from a first state to a second state, it indicates that the device state of the foldable device is changed, that is, that the display screen size of the foldable device is changed, and then the foldable device may perform a size change process on at least one interface that is commonly used in a background application. The size changing process is used for adapting the interface of the common background application to the display screen size corresponding to the second state; the first state is a folded state or an unfolded state, the second state is an unfolded state or a folded state, and the first state and the second state are different.
When the foldable device receives a first starting operation of a user on a target common background application in the at least one common background application, the foldable device indicates that the user wants to switch the target common background application into a foreground application, and the foldable device responds to the first starting operation to display an interface of the target common background application subjected to size change processing, namely an interface subjected to change processing of the target common background application.
In the application, after the foldable equipment has received the first starting operation of a user on a certain common background application (namely, the target common background application), the foldable equipment can directly display the interface after the change processing of the target common background application without carrying out the size change processing on the interface of the target common background application, thereby realizing the rapid starting of the background application and further improving the starting response time delay and the finishing time delay of the background application of the foldable equipment.
By way of example, the above-described commonly used background application may be determined in the following two ways.
In one possible design, the commonly used background application represents an application that is predicted to be used by the user in advance, and the determining process of the commonly used background application may include: acquiring user information; determining the at least one commonly used background application according to the user information; the user information includes any one or more of the following: the geographic location of the user, the current time.
In another possible design, the commonly used background application indicates that in the second state, the user uses frequent applications. The determining process of the commonly used background application may include: the foldable device determines at least one commonly used background application in the second state according to the starting data of the at least one first application in the second state, so that the commonly used background application in the background application is determined based on the use habit of a user, and the accuracy of determining the commonly used background application is ensured.
In one possible design manner, the foldable device obtains a display screen size corresponding to an interface of at least one background application. The at least one background application may comprise the target commonly used background application.
The foldable device determining a candidate background application from the at least one background application, the candidate background application being obtained by excluding a second application from the at least one background application; the display screen size corresponding to the interface of the second application is the first display screen size; the first display screen size is the display screen size corresponding to the first state;
the foldable device determines a common background application from the candidate background applications, so that the common background application subjected to the size change processing is ensured to be an application of which the interface is adaptive to the first state, namely, an application which needs to be subjected to the size change processing based on the second state when being started, the background application of which the interface is adaptive to the second state is prevented from being subjected to the size change processing again, and resource waste is reduced.
In one possible design, the startup data of the first application in the second state may be startup data of the first application in the second state during a history period (i.e., a history date), so as to ensure that the data amount utilized by the commonly used background application is determined.
For example, the determination method of the above-mentioned commonly used background application may include the following.
In one example, the launch data of the first application in the second state may include a number of launches of the first application in the second state. Correspondingly, the foldable device can determine the at least one commonly used background application according to the first N first applications with the highest starting times in the at least one first application; n is a positive integer; or determining the at least one commonly used background application according to the first application with the starting times higher than the first threshold value in the at least one first application.
In another example, the startup data of the first application in the second state may include information of a startup period, where the startup period represents a preset period to which a startup time of the first application in the second state belongs. Accordingly, the foldable device may determine the at least one commonly used background application according to a first application in the at least one first application whose launch time period includes the target time period; the target time period is a preset time period to which the current time belongs.
In another example, the startup data of the first application in the second state may include information of a startup period and information of the number of startup times in the startup period; the start time period represents a time period to which a start time of the first application in the second state belongs. Accordingly, the foldable device may first determine, from the at least one first application, a first application whose launch time period includes a target time period; the target time period is a preset time period to which the current time belongs.
Thereafter, the foldable device may order the determined first applications in order of the number of starts within the target time period from top to bottom.
Finally, the foldable device may use the first M first applications of the ordered first applications as common applications in the second state of the foldable device; the background application corresponding to the common application is a common background application; m is a positive integer.
In the application, the foldable device can determine the common application of the foldable device in the current device state based on the starting times and/or starting time period of the first application in the second state (i.e. the current device state), namely based on the using habit of the user in the current device state, wherein the common application of the foldable device in the current device state indicates the application frequently used by the user in the current device state. And then, the foldable equipment can determine the common background application of the foldable equipment based on the common application of the foldable equipment in the current equipment state so as to perform display pre-adaptation on the common background application, so that the determined common background application accords with the use habit of a user, and the accuracy of the determination of the common background application is ensured.
And when the determination efficiency of the commonly used background application needs to be improved, the foldable device can determine the commonly used background application based on the starting times or the starting time period of the first application in the current device state. When the accuracy of determining the commonly used background application needs to be improved, the foldable device can determine the commonly used background application based on the starting times and/or the starting time period of the first application in the current device state.
In one possible design, the determining the start data may include:
responsive to a second launch operation of a first application of the foldable device by a user, the foldable device determines a launch record of the first application, the launch record including a device state and a launch date of the foldable device;
the foldable device determines the startup data of the first application in the device state according to the startup record of the first application.
In the application, when the user starts the application on the foldable equipment, the starting condition of the application can be recorded, and the starting record of the application is determined, so that the foldable equipment can utilize the starting record of the application to determine the starting data of the application in different equipment states, and the starting data can reflect the use habit of the user.
In one possible design manner, the starting data includes a starting time period and the number of times of starting in the starting time period, and the starting record further includes a starting time;
the process of determining, by the foldable device, the startup data of the first application in the device state according to the startup record of the first application may include:
the foldable equipment determines a time period which the starting time belongs to and takes the time period which the starting time belongs to as the starting time period; the foldable device obtains the starting times of the first application in the starting time period under the device state in the starting date, and updates the starting times in the starting time period.
In the application, the starting time period and the starting times of the first application in different states can be determined based on the starting record of the first application.
In a second aspect, the present application provides an interface display method, in response to a foldable device switching from a first state to a second state, the foldable device determining at least one commonly used background application of the background applications of the foldable device; the first state is a folded state or an unfolded state, the second state is an unfolded state or a folded state, and the first state and the second state are different;
The foldable device performs size change processing on interfaces of each common background application in the at least one common background application based on the second state; the size change processing indicates that the interface of the common background application is adapted to the display screen size corresponding to the second state;
the foldable device receives a first starting operation of a user on a target common background application in the at least one common background application, wherein the first starting operation is used for triggering the foldable device to switch the target common background application into a foreground application;
and the foldable equipment responds to the first starting operation and displays the interface after the change processing of the target commonly-used background application.
In one possible design, the foldable device determines at least one commonly used background application of the background applications of the foldable device, including:
the foldable device obtains starting data of a first application of the foldable device in the second state in a history date; the history date represents the latest preset days;
the foldable device determining a common application in the second state of the foldable device based on the start-up data of the first application in the second state;
For each of the background applications, the foldable device determines that the background application is a commonly used background application when the background application is the commonly used application in the second state of the foldable device.
In one possible design, the start data includes a start number;
the foldable device determining a common application in the second state of the foldable device based on the launch data of the first application in the second state, comprising:
the foldable device orders the first applications according to the sequence of starting times from high to low;
the foldable device takes the first N first applications in the ordered first applications as common applications in the second state of the foldable device; and N is a positive integer.
In one possible design, the activation data includes at least one activation time period, where the activation time period represents a preset time period to which a time when the foldable device activates the first application in the second state in the history date belongs;
the foldable device determining a common application in the second state of the foldable device based on the launch data of the first application in the second state, comprising:
The foldable device determining a first application for which the at least one launch period includes a target period and regarding the determined first application as a commonly used application in the second state of the foldable device; the target time period is a preset time period to which the current time belongs.
In one possible design, the start data includes at least one start-up period and a number of starts within each of the at least one start-up period; the starting time period represents a preset time period to which the moment when the foldable device starts the first application in the second state in the history date belongs;
the foldable device determining a common application in the second state of the foldable device based on the launch data of the first application in the second state, comprising:
the foldable device determining that the at least one launch period includes a first application for a target period; the target time period is a preset time period to which the current moment belongs;
the foldable device ranks the determined first applications according to the sequence of starting times in the target time period from high to low;
The foldable device takes the first M first applications in the ordered first applications as common applications in the second state of the foldable device; and M is a positive integer.
In one possible design, the method further includes:
in response to a second launch operation of a first application of the foldable device by a user, the foldable device determines a launch record of the first application, the launch record including a device state and a launch date of the foldable device;
and the foldable equipment determines starting data of the first application in the equipment state according to the starting record of the first application.
In one possible design manner, the starting data includes a starting time period and the number of times of starting in the starting time period, and the starting record further includes a starting time;
the foldable device determines starting data of the first application according to the starting record of the first application, and the foldable device comprises:
the foldable equipment determines a preset time period to which the starting time belongs, and takes the preset time period to which the starting time belongs as the starting time period;
the foldable device obtains the starting times of the first application in the starting time period under the device state in the starting date, and updates the starting times in the starting time period.
In one possible design, the foldable device determines at least one commonly used background application of the background applications of the foldable device, including:
the foldable equipment acquires the display screen size corresponding to the interface of each background application;
the foldable equipment removes background applications with the display screen sizes corresponding to interfaces in the background applications being the display screen sizes corresponding to the first state;
the foldable device determines a commonly used background application of the removed background applications.
In a third aspect, the present application provides an electronic device comprising a display screen, a memory, and one or more processors; the display screen, the memory and the processor are coupled; the display screen is used for displaying images generated by the processor, the display screen comprises a folding screen, the memory is used for storing computer program codes, and the computer program codes comprise computer instructions; the computer instructions, when executed by the processor, cause the electronic device to perform the interface display method of any one of the first aspects above.
In a fourth aspect, the present application provides a computer readable storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the interface display method of any one of the first aspects above.
In a fifth aspect, the present application provides a computer program product which, when run on an electronic device, causes the electronic device to perform the interface display method according to any one of the first aspects above.
It may be appreciated that, for the beneficial effects achieved by the interface display method according to the second aspect, the electronic device according to the third aspect, the computer readable storage medium according to the fourth aspect, and the computer program product according to the fifth aspect, reference may be made to the beneficial effects in the first aspect and any possible design manner thereof, which are not repeated herein.
Drawings
FIG. 1A is a schematic view of an interface of a foldable device in an unfolded state according to an embodiment of the present application;
fig. 1B is a schematic interface diagram of an unfolded state of a foldable device according to an embodiment of the present application;
fig. 1C is an interface schematic diagram of a folded state of a foldable device according to an embodiment of the present application;
fig. 1D is a schematic diagram of an interface of a folded state of a foldable device according to an embodiment of the present application;
fig. 1E is an interface schematic diagram III of a folded state of a foldable device according to an embodiment of the present application;
Fig. 1F is an interface schematic diagram of a folded state of a foldable device according to an embodiment of the present application;
fig. 2 is a schematic hardware structure of an electronic device according to an embodiment of the present application;
fig. 3 is a schematic software structure of an electronic device according to an embodiment of the present application;
FIG. 4 is a schematic flow chart of an interface display method according to an embodiment of the present application;
FIG. 5A is a schematic diagram illustrating a determination process of a conventional application according to an embodiment of the present application;
FIG. 5B is a schematic diagram of a determination process of a conventional application according to an embodiment of the present application;
FIG. 5C is a schematic diagram of a determining flow of a conventional application according to an embodiment of the present application;
FIG. 6 is a schematic diagram of an application start-up procedure according to an embodiment of the present application;
fig. 7 is a flowchart of an interface display of a background application according to an embodiment of the present application.
Detailed Description
The terms "first" and "second" are used below for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the present embodiment, unless otherwise specified, the meaning of "plurality" is two or more.
In order to better understand the scheme of the present application, the following describes terms related to the embodiments of the present application.
Activity (activity): is a component that may contain a user interface, primarily for interaction with a user. One application is typically made up of multiple activities. Briefly, for an application, an interface of the application is actually an activity, and opening an interface is actually starting one or more activities of the interface.
Launch (splash) window: when the application is started, a starting picture is displayed, and the starting picture is a splash window. The splash window typically displays a picture, such as a logo (logo), of the application for showing information of the application. When the device displays the splash window of the application, the application will typically perform an initialization operation in the background, such as adapting the first frame interface (i.e., the main interface) of the application to the size of the display screen of the device. When the initialization operation is not completed, such as when the adaptation is not completed, the device will always display the splash window.
Foldable devices, such as foldable cellular phones, exist in two states, a folded state and an unfolded state, respectively. The user can fold or unfold the foldable mobile phone according to the use requirement. For example, when the foldable mobile phone is in an unfolded state (the foldable mobile phone shown in fig. 1A is in an unfolded state), the inner screen of the foldable mobile phone is a display screen, that is, the inner screen is used for displaying, and the foldable mobile phone can be used as a tablet. When the foldable mobile phone is in a folded state, the foldable mobile phone can be used as a traditional mobile phone, and the outer screen of the foldable mobile phone is a display screen, namely the outer screen is used for displaying. The inner screen is generally larger in size than the outer screen.
When the state of the foldable mobile phone changes, the display screen size of the foldable mobile phone also changes. When a user starts a background application (namely, invisible application), the foldable mobile phone needs to perform size change processing on an interface of the background application so as to enable the interface of the background application to be matched with the current equipment state of the foldable mobile phone. For example, as shown in fig. 1A, the interface currently displayed by the foldable mobile phone is the interface 101 of the browser application, and the foldable mobile phone is in an unfolded state. Thereafter, in response to an application exit operation entered by the user, the foldable handset may display a desktop 102 as shown in fig. 1B, with the browser application becoming a background application for the foldable handset.
Thereafter, the user folds the foldable handset. Correspondingly, the device state of the foldable mobile phone is switched from the unfolded state shown in fig. 1B to the folded state shown in fig. 1C. When the user wants to start a certain background application of the foldable mobile phone, the user can input an operation of sliding up as shown in fig. 1D on the screen of the foldable mobile phone. The foldable handset may display a background application 110 as shown in fig. 1E in response to the sliding up operation, and the background application 110 may include the browser application. The foldable handset, when in the deployed state, has been running a browser application in the foreground, for example, in the deployed state shown in fig. 1B, the foldable handset is running a browser application in the foreground. Accordingly, in fig. 1B, the interface (such as the control, the size and layout of the control, etc. included in the interface) of the browser application is adapted (i.e. matched) with the display screen size corresponding to the unfolded state of the foldable mobile phone. When the user clicks the browser application shown in fig. 1E, it indicates that the user wants to switch the browser application from the background application to the foreground application, and in response to the clicking operation, the foldable mobile phone may first perform a size change process on the interface of the browser application, so that the content on the changed interface is adapted to the size of the display screen corresponding to the folded state, that is, the changed interface is adapted to the folded state. The folded handset may then display the interface 103 adapted to the folded state as shown in fig. 1F instead of the interface 101 adapted to the unfolded state as described above.
As can be seen from the above, after the device state of the foldable mobile phone changes, when the user starts the background application, the foldable mobile phone needs to perform a size change process on the interface of the background application, and then can display the interface corresponding to the current device state and with a display screen size adapted, but cannot immediately display the interface of the background application, so that the time required for starting the background application is long, and the problem that the starting response of the background application is slow (i.e. after the user starts the background application for a long time, the foldable mobile phone displays the interface of the background application and the display time of the splash window is long) occurs.
In some embodiments, the inner screen of the foldable mobile phone may be a foldable screen, which may be composed of two screens, namely, a sub-screen a and a sub-screen B as shown in fig. 1A or 1B. The folding angle (i.e., the included angle) θ between sub-panel a and sub-panel b may have a value in the range of 0, 180. When theta is within the range of [0 DEG, X ], the foldable mobile phone can be determined to be in a folded state. When the foldable mobile phone is in the unfolded state, the foldable mobile phone can be determined to be in the unfolded state when the theta is in the range of (X, 180 degrees), wherein X is a preset angle threshold value, the foldable mobile phone can be set before delivery, can be set in the foldable mobile phone by a user, can be determined by the foldable mobile phone based on the using habit of the user, and can be set to be 85 degrees, 90 degrees or 95 degrees, for example.
When the user folds the foldable handset, it can be folded inwardly along the fold edges as shown in fig. 1B above. When the folding angle between the two sub-screens in the inner screen of the foldable mobile phone is 0 DEG, the two sub-screens in the inner screen of the foldable mobile phone are opposite when the foldable mobile phone is in a folded state, and the two sub-screens are invisible to a user. The foldable mobile phone can display data through an external screen. The outer screen arrangement may be arranged on the back of the sub-screen a or sub-screen b.
It should be understood that the inward folding shown in fig. 1B is only an exemplary folding direction, and the folding direction of the foldable mobile phone may be the outward folding direction. For example, for a foldable mobile phone that is turned out, when the foldable mobile phone is in a folded state, the foldable mobile phone may display data through the above-mentioned sub-screen a or sub-screen b, that is, the sub-screen a or sub-screen a is a display screen. The sub-screen for displaying data may be referred to herein as an external screen. When the foldable mobile phone is in an unfolding state, the foldable mobile phone can display data through the sub-screen a and the sub-screen b.
The arrangement manner between the sub-screens a and B shown in fig. 1A or 1B (i.e., left-right arrangement) is merely an exemplary arrangement manner, and the arrangement manner between the sub-screens included in the inner screen of the foldable mobile phone may be up-down arrangement, which is not limited in the present application.
Accordingly, in view of the above-mentioned problems, the present application provides an interface display method. After the foldable device is switched from the first state to the second state, the foldable device can determine a common background application in the background application of the foldable device, wherein the device state of the foldable device is indicated to change, namely, the display screen size of the foldable device is indicated to change. The first state is a folded state or an unfolded state, and the second state is an unfolded state or a folded state, and the second state is different from the first state.
And then, the foldable equipment can carry out size change processing on the interface of the commonly used background application, wherein the size change processing is used for adapting the interface content of the application to the second state, namely, adapting the size of the display screen corresponding to the second state of the interface of the application, so as to realize the pre-adaptation of the interface of the background application. And then, when a user starts a certain common background application, responding to the starting operation of the common background application, the foldable equipment can display an interface after the change processing of the common background application, so that the timely response starting of the background application is realized. The foldable equipment does not need to carry out size change processing on the interface of the background application when a user starts the background application, so that the starting time of the background application can be effectively shortened, the problems of slow starting response of the background application, long display time of a flash window and the like are avoided, and the user experience is improved. In addition, the foldable device performs the size change processing on the commonly used background application, namely, the application frequently used by the user, instead of performing the size change processing on all the background applications, so that the probability of performing unnecessary size change processing is reduced, and the waste of resources can be reduced.
By way of example, the foldable device in the embodiments of the present application may be a mobile phone, a tablet computer, a desktop, a laptop, a handheld computer, a notebook, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook, a wearable device, a personal digital assistant (personal digital assistant, PDA), an augmented reality (augmented reality, AR) \virtual reality (VR) device, or the like, which is an electronic device with a foldable screen, and the embodiments of the present application do not limit the specific form of the electronic device.
By way of example, fig. 2 shows a schematic structural diagram of an electronic device 200. As shown in fig. 2, the electronic device 200 may include a processor 210, an external memory interface 220, an internal memory 221, a universal serial bus (universal serial bus, USB) interface 230, a charge management module 211, a power management module 212, a battery 213, an antenna 1, an antenna 2, a mobile communication module 240, a wireless communication module 250, an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, an earphone interface 270D, a sensor module 280, keys 290, a motor 291, an indicator 292, a camera 293, a display 294, a user identification module (subscriber identification module, SIM) card interface 295, and the like.
It should be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device 200. In other embodiments of the application, electronic device 200 may include more or fewer components than shown, or certain components may be combined, or certain components may be separated, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 210 may include one or more processing units such as, for example: the processor 210 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller may be a neural hub and a command center of the electronic device 200, among others. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 210 for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. The memory may hold instructions or data that the processor 210 has just used or recycled. If the processor 210 needs to reuse the instruction or data, it may be called directly from the memory. Repeated accesses are avoided and the latency of the processor 210 is reduced, thereby improving the efficiency of the system.
In some embodiments, processor 210 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
It should be understood that the connection relationship between the modules illustrated in the embodiment of the present application is only illustrative, and does not limit the structure of the electronic device 200. In other embodiments of the present application, the electronic device 200 may also employ different interfacing manners, or a combination of interfacing manners, as in the above embodiments.
The charge management module 211 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 211 may receive a charging input of a wired charger through the USB interface 230. In some wireless charging embodiments, the charging management module 211 may receive wireless charging input through a wireless charging coil of the electronic device 200. The charging management module 211 may also supply power to the electronic device through the power management module 212 while charging the battery 213.
The wireless communication function of the electronic device 200 can be implemented by the antenna 1, the antenna 2, the mobile communication module 240, the wireless communication module 250, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 200 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 240 may provide a solution for wireless communication including 2G/3G/4G/5G, etc., applied on the electronic device 200. The mobile communication module 240 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 240 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 240 may amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate the electromagnetic waves. In some embodiments, at least some of the functional modules of the mobile communication module 240 may be disposed in the processor 210. In some embodiments, at least some of the functional modules of the mobile communication module 240 may be disposed in the same device as at least some of the modules of the processor 210.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device (not limited to speaker 270A, receiver 270B, etc.), or displays images or video through display screen 294. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 240 or other functional module, independent of the processor 210.
The wireless communication module 250 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc., as applied on the electronic device 200. The wireless communication module 250 may be one or more devices that integrate at least one communication processing module. The wireless communication module 250 receives electromagnetic waves via the antenna 2, frequency-modulates and filters the electromagnetic wave signals, and transmits the processed signals to the processor 210. The wireless communication module 250 may also receive a signal to be transmitted from the processor 210, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
The electronic device 200 implements display functions through a GPU, a display screen 294, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display screen 294 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 210 may include one or more GPUs that execute program instructions to generate or change display information.
A display screen (or screen) 294 is used to display images, videos, and the like. The display 294 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED) or an active-matrix organic light-emitting diode (matrix organic light emitting diode), a flexible light-emitting diode (flex), a mini, a Micro led, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the electronic device 200 may include 1 or N display screens 294, N being a positive integer greater than 1.
In some embodiments, the display 294 may include an inner screen and an outer screen. The inner screen may be a foldable screen. The inner screen may be composed of two sub-screens (e.g., sub-screen a and sub-screen B shown in fig. 1A or 1B described above), for example. The outer screen may be at least one sub-screen of the inner screen or the outer screen may be a screen separate from the inner screen. For example, when the inner screen is folded inwardly, the outer screen may be an independent screen, which is opposite to a sub-screen in the inner screen. When the inner screen is folded outwards, the outer screen can be a sub-screen in the inner screen.
When the included angle (i.e., folding angle) between the two sub-screens is [0 °, X ], the electronic device 200 is in a folded state. When the included angle (i.e., folding angle) between the two sub-screens belongs to (X, 180 ° ], the electronic device 200 is in an unfolded state, where X is a preset angle threshold.
The electronic device 200 may implement a photographing function through an ISP, a camera 293, a video codec, a GPU, a display 294, an application processor, and the like.
The external memory interface 220 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 200.
Internal memory 221 may be used to store computer executable program code that includes instructions. The processor 210 executes various functional applications of the electronic device 200 and data processing by executing instructions stored in the internal memory 221. The internal memory 221 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the electronic device 200 (e.g., audio data, phonebook, etc.), and so on. In addition, the internal memory 221 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like.
The electronic device 200 may implement audio functions through an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, an ear-headphone interface 270D, an application processor, and the like. Such as music playing, recording, etc.
Keys 290 include a power on key, a volume key, etc. The keys 290 may be mechanical keys. Or may be a touch key.
The indicator 292 may be an indicator light, which may be used to indicate a state of charge, a change in power, a message indicating a missed call, a notification, etc.
The sensor module 280 may include a fold angle detection sensor, a pressure sensor, a gyroscope sensor, a barometric sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.
The folding angle detection sensor is configured to detect an included angle between the inner panels in the electronic device 200, that is, a folding angle between the inner panels, such as a folding angle between the sub-panel a and the sub-panel B shown in fig. 1A or fig. 1B. The folding angle detection sensor may be a hall sensor, for example.
The software system of the electronic device 200 may employ a layered architecture, an event driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. Android with layered architecture in the embodiment of the application TM The system is an example illustrating the software architecture of the electronic device 200.
Fig. 3 is a software configuration block diagram of the electronic device 200 according to the embodiment of the present invention.
The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, android will be TM The system is divided into five layers, from top to bottom, an application layer, an application framework layer, an Zhuoyun row (Android run), a hardware abstraction layer (hardware abstraction layer, HAL) and a system library, and a kernel layer.
The application layer may include a series of application packages.
As shown in fig. 3, the application package may include applications (or simply, applications) such as cameras, gallery, calendar, phone calls, browser, data storage, WLAN, music, desktop, short messages, etc.
The data storage program is used for managing starting data, such as the starting times, the starting time period and the like, of the application of the electronic device in different device states. The start-up period represents a preset period to which a moment when the electronic device starts up the application in different device states within the history date belongs.
The desktop application is used for sensing the operation of a user on a screen of the electronic equipment.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions.
As shown in fig. 3, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, an activity (activity) task management module, a device state management module, a folding angle detection sensor module, a display (display) module, and the like.
A window manager (or window display module) is used to manage the window program. The window manager may obtain the size of the current display screen of the electronic device, that is, the size of the display screen corresponding to the current device state of the electronic device, determine whether a status bar exists, lock the screen, intercept the screen, and so on. The window manager may also draw an interface for the application based on the size of the current display screen.
The activity task management module is used for managing configuration information of an interface (namely activity) of the application, and triggering the data storage program to manage starting data of the application.
The device state management module is configured to manage a device state of the electronic device, where the device state may include a collapsed state and an expanded state.
The display module is used for triggering a related module (such as a display module) in the electronic equipment to perform pre-adaptation processing of an application interface when the equipment state of the electronic equipment changes.
The folding angle detection sensor module is used for sensing the equipment state of the electronic equipment.
The content provider is used to store and retrieve data and make such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc.
The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture.
The telephony manager is used to provide the communication functions of the electronic device 200. Such as the management of call status (including on, hung-up, etc.).
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in a status bar, a prompt tone is emitted, the electronic device vibrates, and an indicator light blinks, etc.
Android run time includes a core library and virtual machines. Android run time is responsible for scheduling and management of the Android system.
The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface manager (surface manager), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), 2D graphics engines (e.g., SGL), etc.
The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio and video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The hardware abstraction layer is an interface layer between the operating system kernel and the hardware circuitry. The hardware abstraction layer includes a fold angle detection sensor HAL. Wherein the fold angle detection sensor HAL is used to detect a fold angle between inner screens of the electronic device (i.e. between sub-screens in the inner screen).
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
It will be appreciated that the layers and the components contained in the layers in the structure shown in fig. 3 do not constitute a specific limitation on the electronic device 200, i.e. the foldable device. In other embodiments of the application, the structure may include more or fewer layers than shown, and more or fewer components may be included in each layer, as the application is not limited.
The application provides an interface display method. After the foldable device is switched from the first state to the second state, a commonly used background application in a background application of the foldable device can be determined. The commonly used background application represents applications that are frequently used by the user in the second state.
After that, the electronic device can adapt the interface of the commonly used background application to the second state, and pre-adaptation of the interface of the background application is realized, so that when a user starts the commonly used background application, the foldable device can directly display the interface of the commonly used background application, which is adapted to the second state, without adapting the interface of the commonly used background application to the second state, and then can display the interface of the commonly used background application, which is adapted to the second state, so that the foldable device can quickly switch the background application to the foreground application, thereby effectively shortening the starting time of the background application, reducing the waiting time of the user and improving the user experience. And because the common background application of the user is adapted to the second state, the background application which is not commonly used by the user is not required to be applied to the second state adaptation, and the waste of resources can be reduced on the basis of ensuring the quick starting of the background application.
The following will describe in detail the interface display method provided by the embodiment of the present application by taking the foldable device as an example of a foldable mobile phone with reference to the accompanying drawings. As shown in fig. 4, the method may include steps S301-S304.
S301, responding to the foldable mobile phone to switch from the first state to the second state, and determining at least one common background application in the background applications of the foldable mobile phone by the foldable mobile phone. The first state is a folded state or an unfolded state, the second state is an unfolded state or a folded state, and the first state and the second state are different.
S302, the foldable mobile phone performs size change processing on interfaces of all the common background applications in the at least one common background application based on the second state. The size change process is used for adapting the interface of the application to the display screen size corresponding to the second state.
In the embodiment of the application, when the foldable mobile phone is switched from the first state to the second state, the device state of the foldable mobile phone is indicated to be changed, namely, the display screen size of the foldable mobile phone is indicated to be changed. For example, when the foldable mobile phone is in a folded state, the display screen of the foldable mobile phone may be an external screen, that is, the size of the display screen corresponding to the folded state is the size of the external screen. Then, the user expands the foldable mobile phone, the device state of the foldable mobile phone changes into an expanded state, and the display screen of the foldable mobile phone can be an inner screen, that is, the size of the display screen corresponding to the expanded state is the size of the inner screen. That is, when the foldable mobile phone is switched from the folded state to the unfolded state, the display screen size of the foldable mobile phone is switched from the display screen size corresponding to the folded state to the display screen size corresponding to the unfolded state.
When the display screen size of the foldable mobile phone changes, the interface content of the application needs to be adapted to the second state of the foldable mobile phone (i.e. the current device state of the foldable mobile phone), that is, the display screen size (i.e. the current display screen size) of the application corresponding to the current device state of the foldable mobile phone. Therefore, in order to shorten the starting duration of the background application, the foldable mobile phone can perform size change processing on the interface of the background application before the background application is started, so that the interface of the background application is matched with the current display screen size of the foldable mobile phone.
In addition, in order to reduce the waste of resources, the foldable mobile phone can firstly determine the commonly used background application in the background application. After that, the foldable mobile phone can perform size change processing on the interface of the commonly used background application, and does not perform size change processing on the interface of the background application which is not commonly used by a user in the background application, so that unnecessary size change processing is avoided, and resource waste is reduced.
The size changing process indicates that the activity information of the interface of the background application is changed to the activity information corresponding to the second state according to the current display screen size (i.e., the display screen size corresponding to the second state) of the foldable mobile phone, so that the changed interface (i.e., the activity information of the changed interface) is adapted to the current display screen size of the foldable mobile phone. By way of example, the activity information may include one or more items of information included in the interface, the size of the control, and the layout (e.g., the location of the control).
For example, the interface of the background application (such as the interface of the common background application described above) may be an interface corresponding to a thumbnail corresponding to the background application. That is, when the foldable mobile phone performs the size changing process on the interface of the commonly used background application, the foldable mobile phone may perform the size changing process on the interface corresponding to the thumbnail corresponding to the commonly used background application. Generally, an interface corresponding to a thumbnail corresponding to an application is an interface displayed when the application is switched to a background application. The card content is the corresponding thumbnail for the browser application as shown in fig. 1E. Correspondingly, when the browser application is a common background application, the foldable mobile phone can change the size of the interface corresponding to the thumbnail corresponding to the browser application.
In some embodiments, after the foldable mobile phone is switched from the first state to the second state, there may be a background application with an interface adapted to the display screen size corresponding to the second state, where the background application does not need to perform the size changing process again. For example, the first state is a folded state, and the second state is an unfolded state. When a user performs an unfolding operation on the foldable mobile phone, the device state of the foldable mobile phone is switched to an unfolding state, wherein the unfolding state is taken as an unfolding state 1. And then, the foldable mobile phone switches the application 1 started by the user into a background application, so that the application 1 exists in the background application of the foldable mobile phone, and the interface of the application 1 is adapted to the unfolding state. And then, the user performs a folding operation on the foldable mobile phone, and the equipment of the foldable mobile phone is switched into a folding state. Then, after the user performs an unfolding operation on the foldable mobile phone again, the device state of the foldable mobile phone is switched to an unfolding state again, where the unfolding state is referred to as an unfolding state 2. At this time, the application 1 still exists in the background application of the foldable mobile phone. Therefore, although the device state of the foldable mobile phone is changed, the application 1 is switched to the background application in the unfolded state 1, and the interface of the application 1 is still adapted to the unfolded state, so that when the device state of the foldable mobile phone is switched to the unfolded state 2, the foldable mobile phone does not need to adapt the interface of the application 1 already adapted to the unfolded state any more.
Therefore, in order to avoid performing unnecessary size change processing, in one example, after the foldable mobile phone is switched from the first state to the second state, the background application of the foldable mobile phone, whose interface is matched with the display screen size corresponding to the second state, may be removed first, that is, the background application of which the display screen size corresponding to the interface (which may refer to adaptation here) is the display screen size corresponding to the first state, so as to obtain candidate background applications. The candidate background application interface is adapted to the display screen size corresponding to the first state.
And then, the foldable mobile phone can determine the common background application from the candidate background applications, so that the common background application subjected to the size change processing is the application of which the interface is matched with the first state, namely, the application which needs to be subjected to the size change processing based on the second state when being started, the background application subjected to the size change processing of the interface which is matched with the second state is prevented from being subjected to the size change processing again, and the waste of resources is further reduced. For example, the application 1 described above becomes a background application that needs to be removed.
In another example, after the foldable mobile phone is switched from the first state to the second state, a commonly used background application in the background application of the foldable mobile phone is determined.
And then, for each common background application, when the interface of the common background application is matched with the current display screen size of the foldable mobile phone, the foldable mobile phone does not need to carry out size change processing on the common background application.
When the interface of the commonly used background application is not matched with the current display screen size of the foldable mobile phone, namely when the interface of the commonly used application is matched with the display screen size corresponding to the first state, the foldable mobile phone needs to perform size change processing on the commonly used background application so that the interface of the commonly used background application is matched with the current display screen size of the foldable mobile phone, and therefore the situation that the interface is matched with the background application in the second state again in size change processing can be avoided, and resource waste can be reduced.
In some embodiments, a commonly used one of the above-described background applications represents an application that is frequently used by the user in the second state. When determining a commonly used background application in the background application of the foldable mobile phone, the foldable mobile phone can be determined by using starting data of each application (i.e. the first application) of the foldable mobile phone in the second state in a historical date, wherein the starting data can comprise the starting times and/or at least one starting time period of the first application.
The first application may be any application of the foldable mobile phone.
Wherein, the history date, i.e. the history period, represents the last period of time, i.e. the last preset number of days. By way of example, the historical date may be the last 3 days. For example, the current date is 2022, 9, 23, then the historical date may be 2022, 9, 21, to 2022, 9, 23.
The number of times of starting the first application in the second state represents the total number of times of starting the first application when the foldable mobile phone is in the second state in the historical date. For example, the history date is the last 3 days. The second state is a folded state. The user triggered the foldable phone to start the application 30 times in the last 3 days when the foldable phone is in the folded state. Accordingly, the number of starts of the application 1 in the second state within the history date is 30.
The starting time period of the first application in the second state represents a preset time period to which the moment when the foldable mobile phone is in the second state in the history date when the first application is started, that is, the preset time period to which the starting moment of the first application belongs. For example, the foldable cellular phone may divide a day into 6 preset time periods based on 4 hours, for example, the 6 preset time periods may be 00:00-04:00, 04:00-08:00, 08:00-12:00, 12:00-16:00, 16:00-20:00, and 20:00-24:00, respectively.
It should be understood that when the time for the foldable mobile phone to start the first application is the time period node, that is, may fall in two preset time periods, the start time period of the first application may include any one of the two preset time periods. If the starting time of the first application is 04:00, and the starting time falls into two preset time periods of 00:00-04:00 and 04:00-08:00 in the 6 preset time periods, the foldable mobile phone can arbitrarily select one preset time period from the two preset time periods of 00:00-04:00 and 04:00-08:00 as the starting time period of the first application. Alternatively, the foldable cellular phone may use a designated preset time period of the two preset time periods as the starting time period of the first application, such as a preset time period before the time period.
It should be noted that, a trigger timing for determining the common application in the second state of the foldable mobile phone is described above, that is, when the foldable mobile phone is switched from the first state to the second state, the foldable mobile phone may determine the common application in the second state of the foldable mobile phone. There are other trigger occasions, for example, the foldable mobile phone can determine the common application in the second state of the foldable mobile phone at a certain fixed time of the day, so that when the foldable mobile phone is switched to the second state, the foldable mobile phone can directly determine the common background application in the background application of the foldable mobile phone by using the determined common application in the second state of the foldable mobile phone. That is, when the device state of the foldable mobile phone changes, the foldable mobile phone does not need to determine the background application of the foldable mobile phone.
For example, when the foldable mobile phone determines the common background application in the background application by using the starting data of each first application in the second state in the history date, the determination may be performed by the following several implementation manners.
In one implementation manner, the foldable mobile phone may determine a commonly used background application in the background application based on the number of times the first application is started in the second state, that is, the commonly used background application in the second state in the background application. Specifically, as shown in fig. 5A, when the foldable mobile phone is switched from the first state to the second state, the foldable mobile phone may obtain the number of times of starting each first application in the second state in the history date. And then, the foldable mobile phone can sort the first applications according to the sequence from high to low of the starting times to obtain the sorted first applications. Then, the foldable mobile phone can use the first N first applications in the ordered first applications as common applications in the second state of the foldable mobile phone. Alternatively, the foldable handset may use the first application with a number of starts higher than a first threshold as a commonly used application in the second state of the foldable handset.
The commonly used application in the second state of the foldable handset represents an application that is commonly used by the user when the foldable handset is in the second state. The N is a positive integer. For example, N is 5, and accordingly, the foldable mobile phone may use the 1 st to 5 th first applications in the first applications after being sequenced as the common applications in the second state of the foldable mobile phone.
Then, for each background application of the foldable mobile phone, the foldable mobile phone can determine whether the background application belongs to a common application in the second state of the foldable mobile phone. If so, the foldable mobile phone can use the background application as the common background application. If not, the foldable handset may not use the background application as the above-described commonly used background application.
In another implementation manner, the foldable mobile phone may determine a commonly used background application in the background application based on a startup period of the first application in the second state. Specifically, as shown in fig. 5B, when the foldable mobile phone is switched from the first state to the second state, the foldable mobile phone may determine a preset time period to which the current time belongs, and use the preset time period as the target time period. Then, the foldable mobile phone can determine that the starting time period in the second state comprises the first application of the target time period, and the determined first application is used as the common application in the second state of the foldable mobile phone.
Then, for each background application of the foldable mobile phone, the foldable mobile phone can determine whether the background application belongs to a common application in the second state of the foldable mobile phone. If so, the foldable mobile phone can use the background application as the common background application. If not, the foldable handset may not use the background application as the above-described commonly used background application.
In another implementation manner, the foldable mobile phone may determine a commonly used background application in the background application based on the startup time period of the first application in the second state and the startup times in each startup time period. Specifically, as shown in fig. 5C, when the foldable mobile phone is switched from the first state to the second state, the foldable mobile phone may determine a preset time period to which the current time belongs, and use the preset time period as the target time period.
Thereafter, the foldable handset may determine that the start-up period in the second state includes the first application for the target period of time within the history date. And then, according to the sequence that the starting times in the target time period are from high to low, the foldable mobile phone can sort the determined first applications to obtain the sorted first applications. And then, the first M first applications in the ordered first applications can be used as common applications in the second state of the foldable mobile phone, wherein the common applications in the second state of the foldable mobile phone represent applications which are frequently used by a user when the foldable mobile phone is in the second state. M is a positive integer. For example, M is 5, and accordingly, the foldable mobile phone may use the 1 st to 5 th first applications in the first applications after being sequenced as the common applications in the second state of the foldable mobile phone. Or, the foldable mobile phone can directly use the first application with the starting times higher than the second threshold value in the target time period as the common application in the second state of the foldable mobile phone.
Then, for each background application of the foldable mobile phone, the foldable mobile phone can determine whether the background application belongs to a common application in the second state of the foldable mobile phone. If so, the foldable mobile phone can use the background application as the common background application. If not, the foldable handset may not use the background application as the above-described commonly used background application.
It should be understood that the values of M and N may be the same or different, and the present application is not limited thereto.
In the embodiment of the application, the foldable mobile phone can determine the commonly used application of the foldable mobile phone in the current equipment state based on the starting times and/or the starting time period of the first application in the current equipment state, namely based on the using habit of the user in the current equipment state, wherein the commonly used application of the foldable mobile phone in the current equipment state indicates the frequently used application of the user in the current equipment state. And then, the foldable mobile phone can determine the common background application of the foldable mobile phone based on the common application of the foldable mobile phone in the current equipment state so as to perform display pre-adaptation on the common background application, so that the determined common background application accords with the use habit of a user, and the accuracy of the determination of the common background application is ensured.
And when the determination efficiency of the common background application needs to be improved, the foldable mobile phone can determine the common background application based on the starting times or the starting time period of the first application in the current equipment state. When the accuracy of determining the commonly used background application needs to be improved, the foldable mobile phone can determine the commonly used background application based on the starting times and/or the starting time period of the first application in the current equipment state.
For example, the startup data (such as the startup times and startup time period) of the first application in the second state may be determined by the foldable mobile phone according to a usage record (i.e. startup record) of the first application. Specifically, when the user performs the second starting operation on the first application on the foldable mobile phone, the foldable mobile phone can record data related to the second starting operation to obtain a usage record of the first application, so that starting data of the first application in different equipment states is determined based on the usage record of the first application.
The usage record of the first application may include an identifier of the first application, a start date of the first application corresponding to the first application, and a device state of the foldable mobile phone. The device state of the foldable mobile phone here means a device state when the foldable mobile phone receives a second start operation of the first application by the user.
In some embodiments, the usage record of the first application may further include a start time of the first application. The start-up time may be used to determine a start-up period.
The second start operation may be an operation of starting the first application from the desktop of the foldable mobile phone. For example, when the user clicks the application a of the desktop of the foldable mobile phone, the operation of the user clicking the application a of the desktop of the foldable mobile phone becomes the second start operation. Of course, the second start operation may also refer to an operation for triggering the foldable mobile phone to switch the first application from the background application to the foreground application, where the second start operation may represent the first start operation hereinafter.
In one example, the startup data may include a startup number. The usage record of the first application includes a start date and a device status of the foldable handset. Accordingly, the determining of the number of starts of the first application may include: the foldable mobile phone can update the starting times of the first application in the starting date in the history date in the equipment state, namely, 1 is added. Accordingly, the number of times the first application is started in the device state in the history date is the sum of the latest times the first application is started in the device state in each date in the history date.
For example, the start date in the usage record of the first application is 2022, 9, 23, and the device status of the foldable mobile phone in the start record of the first application is a folded status. The history date is from 2022, 9, 21 to 2022, 9, 23. The number of starts in the folded state of the first application on day 2022, 9, 21 of the history of the foldable handset records is 10, indicating that the user starts the first application 10 times in total on day 2022, 9, 21 of the history of the foldable handset.
The number of starts in the folded state of the first application on 2022, 9, 21 of the history date recorded by the foldable mobile phone is 2.
And the number of starts in the folded state of the first application of 2022, 9, 23 in the history of the foldable cellular phone record is 9. Thus, after obtaining the start record of the first application, the foldable mobile phone may add 1 to the number of starts (i.e. 9 times) of the first application in the folded state of 2022, 9 months and 23 days, to obtain 10 times.
Correspondingly, the number of times the first application is started in the device state in the history date is 10+2+10=22 times.
In another example, the startup data may include a startup period. The start record of the first application may include a start time, a start date, and a state of the foldable device of the first application. Accordingly, the determining of the start-up period of the first application may include: the foldable mobile phone may first determine a preset time period to which the start time belongs, and take the preset time period to which the start time belongs as a start time period, that is, a start time period of the first application in the device state as a start date of the first application in the history date. For example, there are 6 predetermined time periods of 00:00-04:00, 04:00-08:00, 08:00-12:00, 12:00-16:00, 16:00-20:00, 20:00-24:00, respectively. The starting time in the starting record of the first application is 12:05, the starting date is 2022, 9 months and 23 days, and the device state is a folded state, so that the foldable mobile phone can take the preset time period of 12:00-16:00 as a starting time period of 2022, 9 months and 23 days in the folded state, that is, the starting time period of the first application with the historical date of 12:00-16:00 in the folded state.
In another example, the startup data may include startup periods and startup times within each startup period. The starting record of the first application may include a starting time, a starting date and a device state of the foldable mobile phone. Accordingly, the determining of the start data of the first application may include: the foldable cellular phone may first determine a preset time period to which the start time belongs.
And then, when the starting time period of the first device in the starting date in the history date in the device state comprises the preset time period to which the starting time belongs, indicating that the preset time period to which the starting time belongs is already a starting time period, the foldable mobile phone can update the starting times of the first device in the starting time period in the starting date in the device state, namely, add 1. In brief, when the user is in the unfolded state and the application b is started at the time of 12:05 of the year 2022, 9 and 23, the number of times the application b is started in the folded state in the preset time period of 12:00-16:00 of the year 2022, 9 and 23 is added by 1.
When the startup time period of the first device in the startup date in the history date in the device state does not include the preset time period to which the startup time belongs, which indicates that the preset time period to which the startup time belongs is not the startup time period in the startup date, the foldable mobile phone can take the preset time period to which the startup time belongs as a startup time period of the startup date, and accordingly, the startup frequency of the first device in the startup date in the startup time period in the device state is 1.
Accordingly, for each launch period in a history date, the sum of the number of launches of the first application in the launch period in each of the history dates in the device state is the number of launches of the first application in the launch period in the history date in the device state.
For example, the number of starts of the application b in the folded state in the preset period of 12:00-16:00 on the day 23 of the year 2022 9 is 3, the number of starts of the application b in the preset period of 12:00-16:00 on the day 22 of the year 2022 9 is 1, and the number of starts of the application b in the preset period of 12:00-16:00 on the day 21 of the year 2022 9 is 4. The history date includes three days, which are 2022, 9, 21, and 23, and the number of times of starting the application b in the folded state for the preset period of 12:00 to 16:00 in the history date is 3+1+4=8, that is, the preset period of starting the application b in the folded state for the preset period of 12:00 to 16:00 in the history date is 8.
In some embodiments, the foldable mobile phone may record when recording the usage record of the first application, and may record when performing the related operation (such as starting the first application from the desktop) in response to the second starting operation. Or may be recorded upon receipt of the second start-up operation. That is, when the foldable mobile phone receives the second start operation, no matter whether the foldable mobile phone responds to the second start operation or not and performs related processing, the usage record of the first application can be obtained as long as the foldable mobile phone receives the second start operation of the user on the first application.
It will be appreciated that the usage record of the first application may reflect the habit of the user using the first application. Wherein, the habit of using the application is different for different users; therefore, the usage records of the device state, the starting time and the like of the foldable mobile phone, which are acquired by different foldable mobile phones when the user uses the first application, can be different.
In some embodiments, to reduce the occupation of resources by data storage, the foldable handset may store only relevant data within each of the historical dates, while deleting relevant data within the dates preceding the historical dates. For example, when the current date is 2022, 9 and 23 days and the history date is the latest 3 days, the history date is 2022, 9 and 21 days to 2022, 9 and 23 days. When the 23 days have ended, the current date becomes 2022 9 month 24 days, and correspondingly, the historical date is 2022 9 month 22 days to 2022 9 month 24 days, so that the foldable mobile phone can delete relevant data in 2022 9 month 21 days, such as deleting starting data of each first application in 2022 9 month 21 days under different device states.
It should be noted that, the foldable mobile phone not only can perform the size change processing on the commonly used background application in the background application, but also can perform the size change processing on the not commonly used background application in the background application, that is, the foldable mobile phone can perform the size change processing on all applications in the background application, so that when a user starts any application in the background application, the foldable mobile phone can directly display an interface of the application adapted to the second state, thereby reducing the starting time of the background application, shortening the waiting time of the user and improving the user satisfaction.
In some embodiments, after the size of the interface of the common background application is changed, that is, after the changed interface of the common background application is obtained, the foldable mobile phone may set the changed interface to an invisible state, that is, the common background application is still an invisible application. The interface after the change processing is set to be in an invisible state can indicate that the thumbnail corresponding to the application in the background is still the thumbnail corresponding to the interface before the change processing, so that the interface of the application after the change processing is not displayed although the interface is already adapted, the adaptation process of the application interface is simulated under the condition that a user does not feel, and the confusion of the user on why the foldable mobile phone automatically adapts to the application interface is avoided.
In some embodiments, in determining the commonly used background application, the foldable handset is further determined based on user information including any one or more of the following: the geographic location of the user, the current time.
The foldable handset may analyze the usage data of the first application of the foldable handset for rules of the user's usage of the first application based on a correlation algorithm or model (e.g., a machine learning algorithm), so that a predicted usage time and/or a predicted usage location of the first application may be determined. The usage data may include a usage time and/or a usage location of the first application.
In one case, the first application exists for a predicted time of use. When the difference between the current time and the predicted use time of the background application is smaller, the background application can be used as a common background application by indicating that the user is likely to use the background application, so that the foldable mobile phone can change the size of an interface of the common background application, and the quick start of the common background application is ensured.
In another case, the first application has a preset usage location. When the difference between the geographical position of the user and the predicted use position of the background application is smaller, the background application can be used as a common background application by indicating that the user is likely to use the background application, so that the foldable mobile phone can change the size of the interface of the common background application, and the quick start of the common background application is ensured.
In another case, the first application has a predicted usage location and a predicted usage time. When the difference between the geographical position of the user and the predicted use position of the background application is small and the difference between the current time and the predicted use time of the background application is small, the background application can be used as a common background application by indicating that the user can use the background application, so that the foldable mobile phone can change the size of the interface of the common background application, and the quick start of the common background application is ensured.
It should be appreciated that the foldable handset is user-authorized when collecting user-related data (e.g., user information, application usage data, usage records, etc., as described above).
S303, the foldable mobile phone receives a first starting operation of a user on a target common background application. The first starting operation is used for triggering the foldable mobile phone to switch the target commonly-used background application into the foreground application.
S304, the foldable mobile phone responds to the first starting operation, and the interface after the change processing of the target commonly used background application is displayed.
The target commonly used background application is one application of commonly used background applications of the foldable mobile phone.
In an exemplary embodiment, after the foldable mobile phone is switched to the second state, when the user starts a certain background application of the foldable mobile phone, if the background application belongs to the common background application, the foldable mobile phone may use the background application as the target common background application. Because the interface of the target commonly used background application is subjected to the size change processing, the foldable mobile phone can directly display the interface of the target commonly used background application after the change processing, and the interface of the target commonly used background application does not need to be subjected to the size change processing, so that the interface of the target commonly used background application is adapted to the second state, and the starting time of the background application can be effectively shortened.
For example, the second state is an expanded state, and the interface after the change processing of the target commonly used background application (i.e. the background application started by the user) is already adapted to the display screen size corresponding to the expanded state of the foldable mobile phone, i.e. the size of the inner screen of the foldable mobile phone. Therefore, the foldable mobile phone can directly display the interface after the change processing of the target common background application, namely, load the corresponding interface based on the activity information of the interface after the change processing of the target common background application.
If a certain background application started by the user does not belong to the common background application, the interface of the background application is indicated not to be subjected to size change processing, namely the interface of the background application is still adapted to the first state. Therefore, the foldable mobile phone can perform a size change process on the interface of the background application, so that the interface of the background application is adapted to the size of the display screen in the second state. And then, the foldable mobile phone can display the interface after the change processing of the background application.
The application provides an interface display method. For the foldable mobile phone, the user may perform a click operation on a first application on the desktop displayed on the foldable mobile phone, where the click operation is the second start operation. The foldable mobile phone responds to the clicking operation, can record the use record of the first application and start the first application to record the use condition of the application of the user in different equipment states, so that the foldable mobile phone can determine the use habit of the user in different equipment states by utilizing the use condition, and the starting data of the application in different equipment states is obtained. The starting procedure of one possible foldable handset application will be illustrated in the following in connection with the software architecture shown in fig. 3 described above. For example, as shown in fig. 6, the starting process of the application of the foldable mobile phone may include steps S401 to S414.
First, when a user starts a first application through a desktop displayed on a foldable mobile phone, the desktop application in the foldable mobile phone may execute S401, and receive a click operation of the user on the first application on the desktop displayed on the foldable mobile phone. The first application on the desktop here is actually an icon of the first application.
Thereafter, the desktop application may execute S402, in response to the clicking operation, to send a first start request to an active task management module in the foldable handset. Wherein the start request may include an identification of the first application, the first start request being for starting the first application.
After that, the activity task management module may execute S403 after receiving the first start request, and initialize the activity information of the first target interface of the first application in response to the first start request. For example, the first target interface may include a launch window or other interface of the first application.
Thereafter, the active task management module may execute S404 to send a device state acquisition request to a device state management module in the foldable handset to determine a current device state of the foldable handset.
After that, the device state management module may execute S405 after receiving the device state acquisition request, and send, in response to the device state acquisition request, the current device state of the foldable mobile phone to the active task management module.
After that, the activity task management module may execute S406 after receiving the current device state of the foldable mobile phone, and send an activity lifecycle execution start request to the first application.
After that, after receiving the activity lifecycle execution start request, the first application may execute S407, and complete execution of the lifecycle of the activity of the first target interface in response to the activity lifecycle execution start request.
For example, the execution of the lifecycle of the activity of the first target interface may be that the activity is switched from the onCreate state to the onStart state and then to the onResume state.
After that, after completing the execution of the lifecycle of the activity of the first target interface, the first application may execute S408 to send lifecycle execution completion information to the above-mentioned activity task management module. The lifecycle execution completion information is used to inform that a declaration period of an activity of a first target interface of the first application has been completed by execution.
And the first application may execute S409, sending an interface drawing request to a window manager in the foldable handset. The interface drawing request is used for indicating to draw a starting window of the first application.
After that, after the active task management module receives the above-mentioned lifecycle execution completion information, S410 may be executed to send a record notification message to the data storage program in the foldable mobile phone, where the record notification message may include a start record of the first application.
After that, the data storage program may execute S411 to store the start record of the first application in the record notification message after receiving the record notification message. The start record of the first application is used for determining start data of the first application in the current equipment state of the foldable mobile phone. The current device state refers to the device state of the foldable mobile phone when the desktop application receives the clicking operation.
After receiving the above-mentioned interface drawing request, the window manager may execute S412, and record, in response to the interface drawing request, the interface drawing information of the first application. For example, the interface drawing information may include information such as an interface identifier of a launch window of the first application, a control identifier included in the launch window, a control size, a control layout, and the like.
The window manager cannot directly draw the starting window of the first application on the display screen of the foldable mobile phone after receiving the interface drawing request, but only draws the starting window of the first application after receiving the application display notification message sent by the active task management module. That is, after the above-mentioned active task management module completes the related preparation operation for the first application, which indicates that the foldable mobile phone can display the interface of the first application, the active task management module may execute S413 to send an application display notification message to the window manager. The application display notification message is used to trigger the display of a launch window of the first application.
After that, the window manager may execute S414, after receiving the application display notification message, to draw a start window of the first application on a display screen of the foldable mobile phone in response to the application display notification message. For example, when the current device state of the foldable handset is a folded state, the window manager may draw a launch window of the first application on an external screen of the foldable handset.
It should be understood that the execution sequence of the portion shown in fig. 6 is merely an example, and the active task management module may execute the S410 at any time after receiving the first start request, that is, at any time after the user starts the first application, which is not limited by the execution time of the S410.
The application provides an interface display method. For the foldable mobile phone, when the equipment state of the foldable mobile phone changes, the foldable mobile phone can determine common background applications in the background applications of the foldable mobile phone. After that, the foldable mobile phone can pre-adapt the interface of the common background application, so that the foldable mobile phone can directly display the adapted interface of the common background application when the common background application is switched to the foreground application, thereby shortening the starting time of the background application and reducing the waste of resources. One possible background application interface display process will be illustrated in connection with the software architecture described above in fig. 3. For example, as shown in FIG. 7, the interface display process of the background application may include steps S501-S518.
First, when a user folds or unfolds a foldable mobile phone, a folding angle detection sensor HAL in the foldable mobile phone may perform S501, receive a first operation of the foldable mobile phone by the user, the first operation representing an operation of folding or unfolding the foldable mobile phone by the user.
Thereafter, the folding angle detection sensor HAL may perform S502, in response to the first operation, determining a folding angle between the inner screens of the foldable cellular phone.
Thereafter, the folding angle detection sensor HAL may perform S503 to transmit the folding angle to the folding angle detection sensor module in the foldable cellular phone. The folding angle may be used to determine the device status of the foldable cellular phone.
After that, the folding angle detection sensor module may perform S504 to determine the current device state of the foldable cellular phone based on the folding angle after receiving the folding angle.
When the current device state is different from the previous device state, that is, when the device state of the foldable mobile phone is changed, the folding angle detection sensor module may execute S505 to send a device state change notification message to the device state management module in the foldable mobile phone. The device state change notification message indicates that the foldable mobile phone is switched from a first state to a second state, wherein the second state is a current device state, and the first state is a device state previous to the current device state.
For example, when the foldable handset is in an unfolded state, the user folds the foldable handset. The folding operation here is the first operation described above. Accordingly, the folding angle detection sensor module in the foldable mobile phone can determine that the foldable mobile phone is in a folded state. The folded state is the current device state (i.e. the second state) of the foldable mobile phone, and the unfolded state is the previous device state (i.e. the first state). Because the current equipment state is inconsistent with the last equipment state, which indicates that the equipment state of the foldable mobile phone is changed, the folding angle detection sensor module can send an equipment state change notification message to the equipment state management module.
After that, the device state management module may execute S506 after receiving the device state change notification message, and in response to the device state change notification message, transmit a device state change event to the display module in the foldable mobile phone. The device state change event may include a display screen size corresponding to a current device state.
Thereafter, the display module may execute S507, in response to the device status change event, to update its recorded display screen size, i.e., to update the recorded display screen size to the display screen size corresponding to the current device status. And the display module may perform S508 to send a display screen size change message to a window manager in the foldable handset. The display screen size change message may indicate a device status of the foldable mobile phone, that is, a display screen size is changed, which may include a display screen size corresponding to the current device status.
After that, the window manager may execute S509 after receiving the display screen size change message, and send a display configuration processing notification message to the active task management module in the foldable mobile phone in response to the display screen size change message. The display configuration processing notification message is used for triggering the active task management module to process the display configuration information.
After that, the active task management may execute S510 to send a common application information acquisition request to the data storage program in the foldable cellular phone after receiving the above-mentioned display configuration processing notification message. The common application information acquisition request is used for acquiring a common application in the current equipment state of the foldable mobile phone.
After that, the data storage program may execute S511 after receiving the commonly used application information acquisition request, and determine, in response to the commonly used application information acquisition request, an identification of the commonly used application in the current device state of the foldable mobile phone based on the usage habit of the user in the current device state.
Thereafter, the data storage program may execute S512 to send the identification of the commonly used application in the current device state of the foldable handset to the active task management module. The process of determining the common application in the current device state of the foldable mobile phone by the data storage program is similar to the process of determining the common application in the second state by the foldable mobile phone, and a detailed description of the process is omitted.
After the active task management module receives the identifier of the common application in the current device state of the foldable mobile phone, the active task management module may execute S513, and for each background application of the foldable mobile phone, determine that the background application is the common background application when the background application belongs to the common application in the current device state of the foldable mobile phone.
After that, after determining the commonly used background application, the active task management module may execute S514 to send a display configuration update request to the commonly used background application, that is, notify the display screen size change event, which may include display configuration information.
The display configuration update request is used for triggering the size change processing on the interface of the common background application so as to enable the interface of the common background application to be adapted to the current equipment state, that is, the display configuration update request can be used for requesting the task of the common background application to update the display configuration information. For example, the display configuration information may be activity information of an interface corresponding to a thumbnail corresponding to the commonly used background application task.
For example, the above-mentioned size changing process, that is, updating of the display configuration information may include the above-mentioned active task management module indicated by S406 shown in fig. 6 sending an active lifecycle execution start request to the commonly used background application. And after receiving the activity life cycle execution starting request, the first application responds to the activity life cycle execution starting request to complete the execution process of the life cycle of the activity of the first target interface.
After that, after receiving the display update request, the common background application may execute S515 to complete updating of the display configuration information based on the current device state of the foldable device. The updated display configuration information of the commonly used background application is adapted to the current equipment state.
After that, after the update of the display configuration information is completed, the commonly used background application may perform S516 to send an update completion notification message to the active task management module. The update completion notification message indicates the commonly used background and completes the update of the display configuration information.
After that, the active task management module may perform S517 after receiving the update completion notification message, and send a window display update request to the window manager in response to the update completion notification message.
After that, after the window manager receives the window display update request, S518 may be performed to refresh the application display window information again in response to the window display update request.
In some embodiments, when the foldable mobile phone applies the interface display method described in the present application, when the display screen of the foldable mobile phone changes in size, the aplog log has a log of change events of the size of the application (such as the above-mentioned commonly used background application). Illustratively, the log is 09-2316:18:27.39223362478 iwm_relay_resume_activity. Where 09-2316:18:27.392 represent log-generated events. 2336 represents process number and 2478 represents thread number. Iwm_repeat_resume_activity represents a resize event.
In the embodiment of the application, for the foldable mobile phone, aiming at the starting data of the user on the foldable mobile phone, the using habit of the user in different equipment states is determined. When the equipment state of the foldable mobile phone changes, the foldable mobile phone can accurately determine a common background application task in background application tasks (the task can comprise an active interface record, namely, the active information of an interface corresponding to a thumbnail corresponding to the task) of the foldable mobile phone based on the use habit, so that display pre-adaptation is performed on the common background application task, and long application starting time caused by the need of re-adaptation when a user starts the common background application task is avoided.
In some embodiments, the present application provides a computer readable storage medium comprising computer instructions that, when run on an electronic device, cause the electronic device to perform the interface display method as described above.
In some embodiments, the present application provides a computer program product which, when run on an electronic device, causes the electronic device to perform the interface display method as described above.
It will be apparent to those skilled in the art from this description that, for convenience and brevity of description, only the above-described division of the functional modules is illustrated, and in practical application, the above-described functional allocation may be performed by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to perform all or part of the functions described above.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another apparatus, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and the parts displayed as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a readable storage medium. Based on such understanding, the technical solution of the embodiments of the present application may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions for causing a device (may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a random access memory (random accessmemory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely illustrative of specific embodiments of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present application should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. An interface display method, comprising:
detecting that the foldable device is switched from the first state to the second state;
performing size change processing on at least one interface of the common background application; the size changing process is used for adapting the interface of the common background application to the display screen size corresponding to the second state; the first state is a folded state or an unfolded state, the second state is an unfolded state or a folded state, and the first state and the second state are different;
the foldable device receives a first starting operation of a user on a target common background application in the at least one common background application, wherein the first starting operation is used for triggering the foldable device to switch the target common background application into a foreground application;
and the foldable equipment responds to the first starting operation and displays the interface of the target common background application after the size change treatment.
2. The method according to claim 1, wherein the method further comprises:
acquiring user information;
determining the at least one commonly used background application according to the user information;
the user information includes any one or more of the following: the geographic location of the user, the current time.
3. The method according to claim 1, wherein the method further comprises:
the foldable device determines at least one commonly used background application in the second state according to the starting data of at least one first application in the second state.
4. A method according to any one of claims 1-3, characterized in that the method further comprises:
the foldable equipment acquires the display screen size corresponding to at least one background application interface; the at least one background application comprises the target common background application;
the foldable device determines a candidate background application from the at least one background application, wherein the candidate background application is obtained by excluding a second application from the at least one background application; the display screen size corresponding to the interface of the second application is the first display screen size; the first display screen size is the display screen size corresponding to the first state;
The foldable device determines a commonly used background application from the candidate background applications.
5. A method according to claim 3, wherein the initiation data is initiation data of the first application in the second state over a history period.
6. The method of claim 3 or 5, wherein the start-up data comprises a number of starts;
the foldable device determines at least one commonly used background application in the second state according to the starting data of the at least one first application in the second state, and the foldable device comprises: determining the at least one commonly used background application according to the first N first applications with the highest starting times in the at least one first application; the N is a positive integer;
or determining the at least one commonly used background application according to the first application with the starting times higher than the first threshold value in the at least one first application.
7. The method according to claim 3 or 5, wherein the start data of the first application in the second state includes information of a start time period, the start time period representing a preset time period to which a start time of the first application in the second state belongs;
The foldable device determines at least one commonly used background application in the second state according to the starting data of the at least one first application in the second state, and the foldable device comprises:
determining the at least one commonly used background application according to a first application, the starting time period of which comprises a target time period, in the at least one first application; the target time period is a preset time period to which the current time belongs.
8. The method according to claim 3 or 5, wherein the start-up data of the first application in the second state includes information of a start-up period and information of the number of starts within the start-up period; the starting time period represents a time period to which the starting time of the first application in the second state belongs;
the foldable device determines at least one commonly used background application in the second state according to the starting data of the at least one first application in the second state, and the foldable device comprises:
the foldable device determines a first application whose startup period includes a target period from the at least one first application; the target time period is a preset time period to which the current moment belongs;
The foldable device ranks the determined first applications according to the sequence of starting times in the target time period from high to low;
the foldable device takes the first M first applications in the ordered first applications as common applications in the second state of the foldable device; the background application corresponding to the common application is a common background application; and M is a positive integer.
9. An electronic device comprising a display screen, a memory, and one or more processors; the display screen, the memory and the processor are coupled; the display screen is used for displaying images generated by the processor, the display screen comprises a folding screen, the memory is used for storing computer program codes, and the computer program codes comprise computer instructions; the computer instructions, when executed by the processor, cause the electronic device to perform the method of any one of claims 1 to 8.
10. A computer readable storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method of any one of claims 1 to 8.
CN202211583733.3A 2022-12-09 2022-12-09 Interface display method and electronic equipment Active CN116700855B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211583733.3A CN116700855B (en) 2022-12-09 2022-12-09 Interface display method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211583733.3A CN116700855B (en) 2022-12-09 2022-12-09 Interface display method and electronic equipment

Publications (2)

Publication Number Publication Date
CN116700855A true CN116700855A (en) 2023-09-05
CN116700855B CN116700855B (en) 2024-07-12

Family

ID=87831759

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211583733.3A Active CN116700855B (en) 2022-12-09 2022-12-09 Interface display method and electronic equipment

Country Status (1)

Country Link
CN (1) CN116700855B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140351729A1 (en) * 2013-05-21 2014-11-27 Samsung Electronics Co., Ltd. Method of operating application and electronic device implementing the same
CN107992240A (en) * 2016-10-25 2018-05-04 中兴通讯股份有限公司 Application icon display control method, device and terminal
CN111813293A (en) * 2020-05-29 2020-10-23 维沃移动通信有限公司 Application program management method and electronic equipment
CN112445276A (en) * 2019-08-30 2021-03-05 华为技术有限公司 Folding screen display application method and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140351729A1 (en) * 2013-05-21 2014-11-27 Samsung Electronics Co., Ltd. Method of operating application and electronic device implementing the same
CN107992240A (en) * 2016-10-25 2018-05-04 中兴通讯股份有限公司 Application icon display control method, device and terminal
CN112445276A (en) * 2019-08-30 2021-03-05 华为技术有限公司 Folding screen display application method and electronic equipment
CN111813293A (en) * 2020-05-29 2020-10-23 维沃移动通信有限公司 Application program management method and electronic equipment

Also Published As

Publication number Publication date
CN116700855B (en) 2024-07-12

Similar Documents

Publication Publication Date Title
CN111399789B (en) Interface layout method, device and system
CN115328358B (en) Display method and related device
CN110839096A (en) Touch method of equipment with folding screen and folding screen equipment
CN113127130B (en) Page jump method, device and storage medium
CN111338519B (en) Display method and electronic equipment
CN115348350B (en) Information display method and electronic equipment
CN110727381A (en) Application switching method and electronic equipment
CN115061607B (en) Function page display method and electronic equipment
WO2021129254A1 (en) Method for controlling display of screen, and electronic device
WO2023029985A1 (en) Method for displaying dock bar in launcher and electronic device
CN115599476A (en) Display method and electronic equipment
CN116700855B (en) Interface display method and electronic equipment
CN114896097B (en) Application program non-response processing method and electronic equipment
CN116048830B (en) Method for reminding of software version upgrade, electronic equipment and readable storage medium
CN117215446B (en) Display method and electronic equipment
CN117615055B (en) Display control method, electronic equipment and storage medium
CN115250261B (en) Information display method and electronic equipment
CN116339562B (en) Shortcut input method and electronic device
CN115828227B (en) Method for identifying advertisement popup, electronic equipment and storage medium
CN114816169B (en) Desktop icon display method and device and storage medium
CN117724825B (en) Interface display method and electronic equipment
WO2024093431A1 (en) Image drawing method and electronic device
CN116055623B (en) Power consumption control method, electronic equipment and storage medium
CN114513760B (en) Font library synchronization method, device and storage medium
WO2023045774A1 (en) Display method and electronic device

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