Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
The terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used in this disclosure to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure. The term "if" as used herein may be interpreted as "at..once" or "when..once" or "in response to a determination", depending on the context.
In the course of using an electronic device by a user, it is often the case that a plurality of applications need to be run simultaneously. For example, a user may be talking to friends while watching a movie, and thus, running both an instant messaging application and a video-type application on an electronic device. However, for electronic devices like mobile phones, it is often defaulted to display an application in full screen form, resulting in that it can only display one application at a time, for example, in case of displaying a video-type application, an instant messaging application can only run in the background, which makes it necessary for a user to frequently switch between the instant messaging application and the video-type application in the above scenario.
For this reason, in the related art, a technical solution (also referred to as a small window mode) for displaying the application level through a non-full window is proposed, wherein the application program is displayed through a floating window as a representative, so as to solve the technical problem that a plurality of application programs cannot be displayed simultaneously. For example, in the above scenario, the video-type application may be displayed in full-screen mode, while the instant messaging application is displayed in small-window mode, thus avoiding frequent switching between the two applications.
However, when the application level is displayed through a non-full screen window, the content to be displayed is often reduced, so that the key information related to the application program cannot be displayed or is not highlighted, which results in a problem that the user ignores the key information. For example, when the instant messaging application program is displayed through the floating window, the floating window is smaller, so that when a new message is received, the page is not quite obvious, the user does not notice the page in the floating window, and further ignores the new message, for example, when the game application program and the instant messaging application program are simultaneously operated, if a role in a game dies, the game application program is likely to be switched to a small window mode, and the instant messaging application program is likely to be switched to a full-screen mode, so that when the instant messaging application program is chatting, the situation in the game is observed through the small window, however, when the game application program is displayed through the small window mode, certain key information, such as the regeneration countdown of the role, is very small, the display range is very small, and the user is difficult to see the key information in the small window, so that the user cannot switch the game application program to the full-screen mode in time, the game progress is affected, and the game experience of the user is reduced.
In view of the above problems, the present disclosure proposes a key information display method to solve a technical problem that key information is ignored by a user when an application program is displayed through a non-full screen window.
Fig. 1 is a flowchart illustrating a key information display method according to an exemplary embodiment of the present disclosure. As shown in fig. 1, the method may include the steps of:
and 102, acquiring related data generated in the running process of the application program, and determining predefined key information from the related data.
The technical scheme of the disclosure can be applied to any type of electronic equipment, for example, the electronic equipment can be a mobile terminal such as a smart phone, a tablet personal computer and the like, and also can be a fixed terminal such as a smart television, a PC (personal computer ) and the like. It should be understood that, only an electronic device capable of displaying an application program through a non-full screen window may be used as the electronic device in the present disclosure, and specifically, which type of electronic device the technical solution of the present disclosure is applied to may be determined by a person skilled in the art according to actual needs, which is not limited by the present disclosure.
As can be seen from the above, when the application program is displayed through the non-full-screen window, the displayed content is pruned or reduced compared to the full-screen mode, which makes it difficult for the user to acquire the key information from the non-full-screen window. Therefore, the present disclosure proposes a technical solution for extracting and temporarily displaying key information in an application program, specifically, the key information is displayed in a generated information capsule.
It should be understood that the present disclosure generates an information capsule for displaying the key information, which is equivalent to independently displaying the key information, so that the user does not need to manually screen the key information from a large amount of information contained in a non-full screen window, but can directly obtain the key information from the information capsule, thereby avoiding the situation that the user ignores the key information.
It should be stated that the information capsule in the present disclosure refers to a window temporarily generated for displaying key information. Whether an information capsule is generated depends on whether the application is in a non-full screen window mode and whether critical information is present in the application, and the information capsule is generated if and only if both are satisfied. The information capsule is called because in practical application, the window for displaying the key information is generally designed to be similar to a capsule shape so as to be displayed differently from the non-full screen window.
And 104, under the condition that the application program is determined to be displayed through a non-full-screen window, generating an information capsule which is displayed in association with the non-full-screen window so as to display the determined key information in the information capsule.
In the present disclosure, the key information may be predefined by a technician according to related information of the application program, for example, a developer of the application program and a manufacturer of the electronic device may negotiate in advance to determine the key information contained in the application program. On the basis, the electronic equipment can determine key information from related data generated by the operation of the application program according to predefined content, and generate an information capsule to display the key information under the condition that the application program is displayed through a non-full screen window.
In the present disclosure, the predefined key information may include various types.
In an embodiment, the predefined key information may relate to the type of service for which the application is responsible. In actual operation, service data related to the service responsible for the application program generated in the running process of the application program can be preferentially acquired, and predefined key information corresponding to the service type can be determined from the service data.
It should be understood that the key information determined in this embodiment is related to the service that is responsible for the application program, so that the user may timely acquire the key information related to the service, and further perform a corresponding operation on the service. In practical applications, different service data may be predefined as critical information.
In one case, the determined critical information may be related to the execution stage at which the application is responsible for the business. In actual operation, a plurality of key information corresponding to the execution stage where the service is located may be predefined. Then, in the running process of the application program, the current execution stage of the service can be determined preferentially, and the key information matched with the execution stage is determined from the acquired service data, so that the generated information capsule is displayed under the condition that the application program is displayed through a non-full-screen window, and when the service enters the next execution stage, the key information matched with the next execution stage can be further determined from the acquired service data, so that the key information displayed in the information capsule is updated.
For example, in the case that the application is a taxi taking application, the service that the application is responsible for is a taxi taking service. Then, key information corresponding to the driving business in each execution stage can be predefined. For example:
(1) The key information at the stage of "not yet driving into a car" can be defined as how much time is expected to be driven into the car.
(2) The key information at this stage of "drive after car, driver is driving on" can be defined as the estimated driving time, or how much distance the driver is from you.
(3) The key information at this stage of "driver has arrived" can be defined as how much time to get on the vehicle.
On this basis, when the user starts driving, key information similar to "drive to get on after 3 minutes" can be displayed, when the user just drives to get on, the key information similar to "drive 2 km away from you" or "drive to get on after 5 minutes" can be displayed, and when the vehicle arrives, the key information similar to "please get on in 3 minutes" can be displayed. Therefore, in this case, the user can grasp the execution condition of the service according to the displayed key information, so as to perform corresponding arrangement, thereby improving the user experience.
For another example, in the case where the application is a game-type application, the key information may be determined according to the progress of the game. For example:
(1) The critical information that the game is in the "loading" phase may be defined as that the game is being loaded.
(2) The key information that can be defined at the stage of "the game character is in revival" is that the character revives and counts down.
On the basis, when the user displays the game application program through the non-full-screen window, the stage of the game can be determined through the displayed key information, so that corresponding operation can be performed, and the game experience is improved.
In another case, the determined key information may be related to an object to which the application is responsible for the business. In actual operation, a plurality of key information corresponding to the objects involved in the service may be predefined. Then, during the running process of the application program, the static attribute information related to the object related to the service can be preferentially determined, so that the predefined static attribute information is determined as key information. For example, in the above examples of the taxi taking application, the objects involved in the taxi taking service include a driver, a user, and a vehicle. At this time, the contact manner of the driver may be predefined as static attribute information corresponding to the driver, and the license plate number of the vehicle may be predefined as static attribute information corresponding to the vehicle. At least one of which may be displayed during the drive up process for the user to contact the driver and/or to find the vehicle.
Of course, the above examples are illustrative only, and the key information may be determined in other ways than by the stage of execution in which the business is being performed, or by the object involved. For example, when the application program is an instant messaging application program, the received new message or the reminding information generated for the new message can be used as key information, and once the new message is received, the new message or the reminding information for the new message is displayed as key information. In particular, how to set key information according to different applications may be determined by those skilled in the art according to actual situations, which is not limited by the present disclosure.
In another embodiment, the determined key information may also be independent of the service for which the application is responsible. Specifically, the determined key information may be operation data for characterizing the current operation condition of the application program. Then, in the running process of the application program, the running data of the application program (namely, the obtained relevant data of the application program is the running data used for representing the running condition of the application program) can be obtained, and the running data used for representing the current running condition is determined from the obtained running data to serve as key information.
It should be noted that, although in the above description, "acquiring operation data" and "determining operation data for characterizing a current operation condition" exist in sequential order. However, in practical application, after determining certain type of operation data as key information, the type of operation data can be acquired in real time and displayed dynamically, instead of acquiring all operation data once every time when displaying.
Of course, in the present embodiment, which type of operation data is specifically displayed as the key information may also be determined by predefining. For example, at least one of CPU occupancy, memory occupancy, power consumption value, traffic consumption value, and network transmission speed may be used as the key information.
It should be understood that the operation data is displayed as key information, so that the user can know the operation condition of the application program in real time, and then the operation condition is correspondingly adjusted. For example, when the electric quantity loss value is used as key information, a user can clearly know the influence of the running of the application program on the electric quantity, and further when the fact that a certain application program consumes more electric quantity is found, the application program is closed in time so as to avoid the influence of excessive electric consumption on the normal use of the electronic equipment, when the flow loss value is used as key information, the situation is similar, for example, in the process of actually using the electronic equipment, the CPU total occupancy rate of the equipment is often found to be higher, and the user cannot know which application program is occupied specifically, and if the user needs to know to open a setting interface or check professional monitoring software, the user can display the application program as key information, so that the user can intuitively see the occupancy condition of the CPU by the certain application program in the use process, and the operation of the user is greatly simplified.
In the disclosure, when it is determined that an application program is displayed through a non-full screen window, a preset STARTSERVICE interface may be invoked to generate an information capsule corresponding to the application program through a Service program, and the information capsule is displayed in association with the non-full screen window for displaying the application program. On the software level, the STARTSERVICE interface is usually called by an application program to enable a corresponding Service program, and after the application program determines predefined key information, the key information is transmitted to the Service program through the Intent to generate an information capsule by the Service program and an operating system in a matching way, and the key information is displayed in the information capsule.
The Intent is responsible for communication among all the components of the application, and is a medium for transmitting information in the Android system.
It should be appreciated that when an application is switched from "through non-full screen window display" to full screen display mode, the generated information capsule may be turned off to avoid affecting the effect of full screen display. At the software level, a preset StopService interface can be called to close the Service program, wherein when the Service program is closed, the information capsule is also closed.
The non-full screen window in the present disclosure may include multiple types of windows. For example, the non-full screen window may be a small window similar to the floating window described above, or may be a mini window occupying a smaller screen area. In practical applications, the area of the widget is usually maintained at a size that a user can operate the application, and the mini-window is further reduced on the basis of the widget, so that the user can more conveniently operate the area outside the mini-window.
In most applications, the content displayed full screen is typically scaled down equally, either in a widget or in a mini-window. In other words, when the application program displays the content in the widget or displays the content in the mini-window, the displayed content is consistent with the content in full screen display. Of course, in addition to the display by the scaling down, the content displayed in full screen may be deleted and then displayed through the widget and/or the mini-window, for example, when the application is a video application, the comment area and the selection area below the play area may not be displayed when the application is displayed through the widget and/or the mini-window.
It should be appreciated that the size of the area of the widget is typically maintained at a size that can be manipulated by the user, and that while screening out key information may be laborious compared to a full screen display, the user may still be able to obtain key information by way of a manual search. Therefore, by adopting the scheme, the user can be helped to screen out the key information from the displayed information under the condition that the application program is displayed through the small window.
However, the mini-window is further scaled down on a widget basis, which makes it difficult for the user to see the content displayed by the application, i.e., to obtain key information therefrom by means of manual search. Therefore, by adopting the scheme under the condition that the application program is displayed through the mini window, the problem that the user cannot see the display content in the mini window clearly, so that key information related to the application program cannot be acquired can be solved.
It should be stated that, since it is often difficult for the user to see the contents displayed in the mini window, if the screen area occupied by the key information displayed in the information capsule is identical to the area occupied by the key information displayed in the mini window, it is still difficult for the user to see the key information. Therefore, in general, the key information occupies a larger screen area when displayed in the information capsule than when displayed in the mini window, so that the user can clearly know the contents of the key information.
In the present disclosure, in order to enable a user to clearly know the correspondence between the displayed information capsule and the non-full screen window, the information capsule and the non-full screen window are typically displayed in association.
In one case, by means of maintaining the relative positional relationship between the information capsule and the non-full screen window, the user can know which non-full screen window the key information displayed in the information capsule corresponds to, specifically, when the user moves one of the non-full screen window and the information capsule corresponding to any application program, the electronic device can adjust the position of the other, so that the relative positional relationship between the non-full screen window and the information capsule is kept unchanged.
In another case, by adding a unified information identifier to the non-full-screen window and the information capsule corresponding to the same application program, the user can know which non-full-screen window corresponds to the key information displayed in the information capsule, specifically, when the user moves one of the non-full-screen window and the information capsule corresponding to any application program, the position of the other one of the non-full-screen window and the information capsule corresponding to any application program can be kept unchanged, but unified identification information is displayed in the non-full-screen window and the information capsule corresponding to any application program. For example, for any application A, the identification "A" may be displayed in its corresponding non-full screen window and information capsule.
The information capsule in the present disclosure may include various types, for example, may include an information presentation class and an application control class. The information display class is used for displaying static information related to the application program, and the key information in the examples described above is static information, and the information capsule corresponding to the information display class is the information display class. The information capsule of the application control class can be used for controlling the running of the application program to a certain extent, and in actual operation, a control operation can be predefined for the information capsule so as to execute the predefined control operation for the corresponding application program under the condition that the user triggers the information capsule.
For example, when the application program is a stand-alone game application program, the predefined operation of the information capsule can be set to pause and cancel the pause, so that the user can simply control the stand-alone game application program when the stand-alone game application program is displayed through a non-full-screen window, for example, when a game play scenario is played, if the user wants to watch the game scenario, the information capsule can be triggered to pause the application program, and when the user wants to watch the game scenario, the user can switch to a full-screen mode to watch the game scenario until the user wants to watch the game scenario, and if the user does not want to watch the game scenario, the user can also trigger the information capsule to play the scenario in the non-full-screen window in the operation process of other application programs.
Of course, the above examples are only illustrative, and how to set the predefined operation of the application control class information capsule in particular, may be set by those skilled in the art according to the actual situation, and the disclosure is not limited thereto.
In the present disclosure, it is emphasized that, although "how to acquire key information" is described preferentially in the above description, "in the case where it is determined that an application program is displayed through a non-full screen window, an information capsule is generated to display key information" is described. However, in actual operation, it may be preferentially determined whether the application program is displayed through the non-full-screen window, and then, in the case that it has been determined that the application program is displayed through the non-full-screen window, the key information is acquired and displayed in the information capsule. How to operate in particular, which is not limited by the present disclosure, may be determined by one skilled in the art based on actual circumstances.
According to the technical scheme, the method and the device can acquire related data generated in the application degree operation process and extract predefined key information from the related data. On the basis, the display mode of the application program is further judged, and in the case that the application program is determined to be displayed through the non-full-screen window, an information capsule which is displayed in a correlated mode with the non-full-screen window is generated so as to display the determined key information in the information capsule.
It should be understood that when an application program displays through a non-full screen window, compared with a full screen mode, the displayed content is necessarily pruned or zoomed, which can cause that a user cannot browse key information from the non-full screen window or cannot notice the key information from a plurality of pieces of information, and the problem that the use experience of the user is affected because the key information is not noticed easily occurs. However, through the technical scheme of the disclosure, when the application program is displayed through the non-full screen window, the key information is extracted and temporarily displayed in the form of an information capsule, so that the user can easily acquire the key information, and the situation that the user ignores the key information is avoided.
Further, the key information determined in the present disclosure may be related to the service for which the application is responsible. In one case, the determined key information is used for representing the current execution stage of the service, so that the user can know the execution state of the service according to the displayed key information, and then make a corresponding reaction. In another case, the key information may be related to the object related to the service, so that the user may directly obtain the description information of the object related to the service.
Still further, the key information determined in the present disclosure may also be unrelated to the service that the application is responsible for, and be merely used to characterize the operation status of the application, that is, to display certain operation data of the application as the key information. Therefore, through the technical scheme disclosed by the invention, a user can know the running condition of the application program in the use process of the application program, and does not need to open a setting page or specialized monitoring software to check as in the related technology, so that the user operation is greatly simplified.
In practical applications, the technical scheme of the present disclosure is mostly used for reminding key information related to services responsible for an application program, and considering resources consumed for generating an information capsule and the achievable effect of displaying the key information, the information capsule is usually generated to display the key information only when the application program displays through a mini window. Next, a key information display method in this scene will be described. It should be emphasized before the description that in the next embodiment, only the key information in the previous embodiment is further limited, and the conditions for generating the information capsule are further limited, so that in the case of displaying the application program through the mini window, most operations, such as obtaining the key information, how to perform the association display on the information capsule, etc., can refer to the description of the previous embodiment, and will not be described in detail in the next embodiment.
Fig. 2 is a flowchart of another key information display method according to an exemplary embodiment of the present disclosure. As shown in fig. 2, the method may include the steps of:
Step 202, acquiring service data related to the responsible service generated in the running process of the application program, and determining predefined key information corresponding to the type of the service from the service data.
It should be appreciated that displaying an application through a mini-window may result in the displayed content being truncated or reduced compared to full-screen mode, making it difficult for a user to obtain key information from the mini-window. Therefore, the present disclosure proposes a technical solution for extracting and temporarily displaying key information in an application program, specifically, the key information is displayed in a generated information capsule.
As described above, the information capsule in the present disclosure refers to a window temporarily generated for displaying key information. Whether an information capsule is generated depends on whether an application is displayed through a mini window and whether critical information is present in the application, and the information capsule is generated if and only if both are satisfied. The information capsule is called because in practical applications, the window for displaying key information is generally designed to be similar to a capsule shape for distinguishing display from a mini window.
And 204, under the condition that the application program is determined to be displayed through the mini window, generating an information capsule which is displayed in association with the mini window so as to display the determined key information in the information capsule.
In this embodiment, the key information may be predefined by a technician according to the service for which the application is responsible, for example, a developer of the application and a manufacturer of the electronic device may negotiate in advance to determine which service data related to the service for which the application is responsible is determined as the key information. In particular, which service data is determined as the key information is usually related to the type of the service, for example, if the service responsible for the application belongs to the taxi taking service, the predefined key information should be related to the taxi taking service, and for example, if the service responsible for the application belongs to the video playing service, the predefined key information should be related to the video playing service.
On the basis, the electronic equipment can determine predefined key information corresponding to the type of the service from service data generated by the operation of the application program according to the predefined content, and generate an information capsule to display the determined key information under the condition that the application program is displayed through the mini window.
In one case, the determined critical information may be related to the execution stage at which the application is responsible for the business. In actual operation, a plurality of key information corresponding to the execution stage where the service is located may be predefined. Then, in the running process of the application program, the current execution stage of the service can be preferentially determined, and the key information matched with the execution stage is determined from the acquired service data, so that the generated information capsule is displayed under the condition that the application program is displayed through a mini window; when the service enters the next execution stage, the key information matched with the next execution stage can be further determined from the acquired service data so as to update the key information displayed in the information capsule.
In another case, the determined key information may be related to an object to which the application is responsible for the business. In actual operation, a plurality of key information corresponding to the objects involved in the service may be predefined. Then, during the running process of the application program, the static attribute information related to the object related to the service can be preferentially determined, so that the predefined static attribute information is determined as key information. For example, in the above examples of the taxi taking application, the objects involved in the taxi taking service include a driver, a user, and a vehicle. At this time, the contact manner of the driver may be predefined as static attribute information corresponding to the driver, and the license plate number of the vehicle may be predefined as static attribute information corresponding to the vehicle. At least one of which may be displayed during the drive up process for the user to contact the driver and/or to find the vehicle.
Of course, the above examples are only illustrative, and the key information corresponding to the type of the responsible service may be determined in other ways than by the execution stage in which the service is located or by the object involved. For example, when the application program is an instant messaging application program, the received new message or the reminding information generated for the new message can be used as key information, and once the new message is received, the new message or the reminding information for the new message is displayed as key information. In particular, how to set key information according to different applications may be determined by those skilled in the art according to actual situations, which is not limited by the present disclosure.
In this embodiment, when it is determined that the application program is displayed through the mini window, a preset STARTSERVICE interface may be called to generate an information capsule corresponding to the application program through the Service program, and the information capsule is displayed in association with the mini window for displaying the application program. On the software level, the STARTSERVICE interface is usually called by an application program to enable a corresponding Service program, and after the application program determines predefined key information, the key information is transmitted to the Service program through the Intent to generate an information capsule by the Service program and an operating system in a matching way, and the key information is displayed in the information capsule.
The Intent is responsible for communication among all the components of the application, and is a medium for transmitting information in the Android system.
It should be appreciated that when an application is switched from "through mini window display" to full screen display mode, the generated information capsule may be turned off to avoid affecting the effect of full screen display. At the software level, a preset StopService interface can be called to close the Service program, wherein when the Service program is closed, the information capsule is also closed.
In this embodiment, the association display between the information capsule and the mini window may also be implemented in various manners.
In an embodiment, after the information capsule corresponding to the mini-window is generated, a unified information identifier may be added in the information capsule corresponding to the same application program and the mini-window. For example, for any application A, the identification "A" may be displayed in its corresponding mini window and information capsule.
In another embodiment, the relative position relationship between the information capsule and the mini window can be maintained in a manner that the user knows which mini window the key information displayed in the information capsule corresponds to, specifically, when the user moves one of the mini window and the information capsule corresponding to any application program, the position of the other one can be adjusted so that the relative position relationship between the mini window and the information capsule is maintained unchanged.
It should be noted that, in this embodiment, the information capsule may be displayed in the mini window or may be displayed independently in an area other than the mini window, and how to display specifically may be determined by those skilled in the art according to the actual situation, which is not limited in this disclosure.
It should be appreciated that when an application is displayed through a mini-window, the content displayed in the mini-window occupies a small screen area that is typically difficult for a user to see. If the screen area occupied by the key information when displayed in the information capsule is consistent with the area occupied when displayed in the mini window, it will still be difficult for the user to see the key information clearly. Therefore, in general, the key information occupies a larger screen area when displayed in the information capsule than when displayed in the mini window, so that the user can clearly know the contents of the key information.
As described above, the information capsule in the present embodiment may include various types, and for example, may include an information presentation class and an application control class. The information display class is used for displaying static information related to the application program, and the corresponding information capsule is the information display class. The information capsule of the application control class can be used for controlling the running of the application program to a certain extent, and in actual operation, a control operation can be predefined for the information capsule so as to execute the predefined control operation for the corresponding application program under the condition that the user triggers the information capsule.
It is emphasized that, although "how to acquire the key information" is described preferentially in the above description, "in the case where it is determined that the application program is displayed through the mini-window, an information capsule is generated to display the key information" is described. However, in actual operation, it may be preferable to determine whether or not the application program is displayed through the mini window, and then, in the case where the display through the mini window has been determined, acquire the key information and display it in the information capsule. How to operate in particular, which is not limited by the present disclosure, may be determined by one skilled in the art based on actual circumstances.
According to the technical scheme, the key information corresponding to the type of the service can be predefined for the application program according to the type of the service which is responsible for the application program, so that the predefined key information corresponding to the type of the service is determined from the generated service data in the running process of the application program, and an information capsule is generated to display the determined key information under the condition that the application program is determined to be displayed through a mini window.
It should be appreciated that the mini-window itself occupies a smaller screen area, but still requires the display of a large amount of information related to the application, such that the displayed content occupies a smaller screen area, e.g., the font is substantially reduced compared to full screen mode, which makes it difficult for the user to see the content displayed in the mini-window and to obtain key information therefrom. Therefore, through the technical scheme, the key information contained in the information capsule can be automatically acquired by the equipment and displayed in a mode of generating the information capsule, so that the problem that the key information cannot be acquired due to the fact that a user is difficult to see the content in the mini window is avoided.
Next, taking taxi taking software installed on a smart phone as an example, the technical scheme of the disclosure will be described.
Fig. 3 is a flowchart of a key information display method applied to a smart phone according to an exemplary embodiment of the present disclosure. As shown in fig. 3, the method may include the steps of:
step 301, starting a taxi-taking APP when a user triggers the taxi-taking APP icon.
In this embodiment, the developer of the taxi taking APP and the manufacturer of the smart phone may negotiate in advance to define key information corresponding to the taxi taking APP in each execution stage of the taxi taking service.
For example, the correspondence between each execution stage of negotiation and the key information can be shown in the following table 1:
stage of taxi taking service |
Key information |
Not yet drive to the car |
Predicted response time |
The driver has not arrived |
Predicted arrival time |
The driver has arrived |
Get-on countdown |
TABLE 1
In actual operation, the predefined content shown in table 1 above may be pre-placed in the taxi taking APP, so that the taxi taking APP can determine corresponding key information according to the stage of the taxi taking service.
Step 302, determining the current stage of the taxi taking service.
Step 303, determining the key information corresponding to the current stage.
In this embodiment, after the taxi taking APP is started, the taxi taking APP may monitor the execution stage of the taxi taking service to determine the corresponding key information.
With the above example, when it is determined that the current stage is not driving, an expected response time can be calculated based on the collected related information, such as the number of nearby vehicles, the number of driving users, and the like. Assuming that the calculated predicted response time is "3 minutes", the information of "driving in 3 minutes" can be taken as key information.
It should be noted that, at the software level, the above steps of determining the stage at which the key information is determined are typically performed by the taxi taking APP. After determining the key information, the taxi taking APP can call STARTSERVICE the interface to enable the Service program, and the key information is transmitted to the Service program by the Intent, wherein the Intent also carries identification information of the taxi taking APP to indicate the APP corresponding to the key information. The service program can further transmit the key information and the information of the taxi taking APP to the operating system, so that the operating system can determine the current display state of the taxi taking APP.
The Intent is responsible for communication among all the components of the application, and is a medium for transmitting information in the Android system. When the taxi taking APP transmits key information through the Intent, the key information can be packaged into a data packet, the data packet is named by the identification of the taxi taking APP and is encrypted through a predefined key, on the basis, an operating system can determine that the corresponding application program is the taxi taking APP according to the name of the data packet after receiving the data packet, and the data packet is analyzed through the predefined key, so that the key information corresponding to the taxi taking APP is obtained.
Step 304, judging whether the taxi taking APP is displayed through a mini window, if yes, jumping to step 305, otherwise, jumping to step 308.
In this embodiment, if the operating system determines that the taxi taking APP is displayed through the mini window, a corresponding information capsule may be generated to display the obtained key information, and if the taxi taking APP is determined to be displayed in the full-screen window, the key information may be directly discarded, or even the StopService interface may be further invoked to close the service program.
With the above example in mind, assuming that the taxi taking APP is displayed through the mini window, an information capsule corresponding to the mini window may be generated, and then the key information of "taxi taking within 3 minutes" is displayed in the information capsule.
In actual operation, the information capsule may be displayed in the mini window as shown in fig. 4 or may be displayed outside the mini window as shown in fig. 5. The blank area of the mini-window in both figures represents an area for displaying information related to the driving APP, and for example, a map on which the position of the user and the position of the driver (not shown in the figures) are displayed may be displayed.
In the case shown in fig. 5, the association display may be performed by keeping the relative positional relationship between the mini window and the information capsule consistent, or by adding the mark of the driving APP to both.
In step 305, an information capsule is generated and key information is displayed therein.
Step 306, judging whether the stage of the taxi taking service is changed, if so, jumping to step 302, and if not, jumping to step 307.
In this embodiment, the method further includes a process of determining whether a change occurs in a stage in which the driving service is located, so as to re-determine the key information when it is determined that the change occurs.
It should be noted that, on the software level, the operating system usually does not perform a step of determining whether the execution state of the service is changed, but rather the driving APP continuously determines the key information according to the state of the driving service, and transmits the key information to the operating system through the service program, where the operating system updates the content displayed in the information capsule when receiving the new key information.
When the driving APP determines that the driving service is changed to the driving stage, but the driver has not arrived, the driving APP may determine the estimated arrival time according to the user position and the driver position, and the road condition, and then send the estimated arrival time to the operating system, where the operating system only needs to replace the original key information displayed in the information capsule with the received key information. Assuming that the currently determined estimated arrival time is "the driver is estimated to arrive after 5 minutes," the "estimated 3 minutes to get to the car" originally displayed by the information capsule may be replaced with "the driver is estimated to arrive after 5 minutes.
Of course, the above operation modes are merely illustrative, and in practical application, the actual operation modes may also be different from the above operation modes due to different operation systems and different APP design principles, and in particular, how to determine the stage of the service, how to determine the key information, and how to determine the display mode of the application program may be determined by those skilled in the art according to the actual situation, which is not limited in this embodiment.
Step 307, maintaining the key information displayed in the information capsule.
Step 308, no key information is displayed.
It should be emphasized that this embodiment is described by taking a driving APP as an example, and the operation modes of other APPs are similar, and reference may be made to the operation modes of this embodiment.
By the technical scheme, under the condition that the application program is displayed through the mini window, the information capsule corresponding to the application program can be temporarily generated so as to display key information contained in the application program.
In the above embodiment, the determined key information is related to the execution stage of the service that the application program is responsible for, so that the user can determine the execution status of the service through the displayed key information, and then make a corresponding response. For example, in the embodiment, the user can know whether the car is driven, how long the driver arrives after driving, and the like through the information capsule, so that the user can reasonably arrange when to go to the boarding place.
Fig. 6 is one of block diagrams of a key information display apparatus shown in an exemplary embodiment of the present disclosure. Referring to fig. 6, the apparatus includes an acquisition unit 601 and a generation unit 602.
An acquisition unit 601 configured to acquire related data generated during the running of an application program, and determine predefined key information from the related data;
The generating unit 602 is configured to generate an information capsule displayed in association with a non-full screen window in order to display the determined key information in the information capsule, in the case that it is determined that the application program is displayed through the non-full screen window.
Alternatively to this, the method may comprise,
The related data comprises service data related to a service for which the application program is responsible;
the acquisition unit 601 is further equipped to:
And determining predefined key information corresponding to the type of the service from the service data to serve as the determined key information.
Optionally, the acquisition unit 601 is further configured to:
determining the current execution stage of the service;
And determining key information matched with the execution stage from key information corresponding to the service type, and taking the key information as the determined key information.
Optionally, the acquisition unit 601 is further configured to:
determining static attribute information related to an object related to the service;
and determining static attribute information of a predefined type as the key information.
Alternatively to this, the method may comprise,
The related data comprises operation data used for representing the operation condition of the application program;
the acquisition unit 601 is further equipped to:
And determining the operation data used for representing the current operation condition of the application degree from the operation data, and taking the operation data as the key information.
Optionally, the operation data includes at least one of:
CPU occupancy rate, memory occupancy rate, electric quantity loss value, flow loss value and network transmission speed.
Optionally, the non-full screen window comprises a small window and/or a mini window;
The area occupied by the small window in the screen is larger than the area occupied by the mini window in the screen, and when the application program displays the content in the small window or the mini window, the displayed content is consistent with the content in full screen display.
Optionally, the screen area occupied by the key information when displayed in the information capsule is larger than the screen area occupied when displayed in the mini window.
As shown in fig. 7, fig. 7 is a second block diagram of a key information display apparatus according to an exemplary embodiment of the present disclosure, which further includes an adjusting unit 603 and a control unit 604 on the basis of the embodiment shown in fig. 6 described above.
Optionally, the method further comprises:
and an adjusting unit 603 configured to adjust a position of one of the non-full screen window and the information capsule so that a relative positional relationship between the non-full screen window and the information capsule remains unchanged, or to keep a position of the other one unchanged, and to display uniform identification information in the non-full screen window and the information capsule, when the other one moves based on an operation of a user.
Optionally, the type of the information capsule is an application control type;
A control unit 604 is equipped to perform predefined control operations on the application in case it is detected that the information capsule is triggered.
Fig. 8 is a third block diagram of a key information display apparatus according to an exemplary embodiment of the present disclosure. Referring to fig. 8, the apparatus includes an acquisition unit 801 and a generation unit 802.
An acquiring unit 801 configured to acquire service data related to a responsible service generated during an application running, and determine predefined key information corresponding to a type of the service from the service data;
And the generating unit 802 generates an information capsule which is displayed in association with the mini window so as to display the determined key information in the information capsule when the application program is determined to be displayed through the mini window.
Optionally, the acquisition unit 801 is further configured to:
determining static attribute information related to an object related to the service;
and determining static attribute information of a predefined type as the key information.
Optionally, the generating unit 802 is further configured to:
Calling STARTSERVICE an interface to generate an information capsule corresponding to the application program through a Service program;
And carrying out association display on the information capsule and the mini window.
Optionally, the generating unit 802 is further configured to:
and generating an information capsule corresponding to the mini window, and adding a unified information identifier in the mini window and the information capsule.
Alternatively to this, the method may comprise,
The information capsule is displayed in the mini window, or
The information capsule is independently displayed in an area other than the mini window.
Alternatively to this, the method may comprise,
And the screen area occupied by the key information when displayed in the information capsule is larger than the screen area occupied when displayed in the mini window.
As shown in fig. 9, fig. 9 is a fourth block diagram of a key information display apparatus according to an exemplary embodiment of the present disclosure, which further includes a determining unit 803, a calling unit 804, an adjusting unit 805, and a control unit 806 on the basis of the foregoing embodiment shown in fig. 8.
Optionally, the method further comprises:
a determining unit 803 configured to determine an execution stage in which the service is currently located, and determine key information matching the execution stage from key information corresponding to the type of the service as the determined key information
Optionally, the method further comprises:
and a calling unit 804, configured to call StopService an interface to close the Service program if it is determined that the application program is in the full-screen display mode, where the information capsule is closed if the Service is closed.
Optionally, the method further comprises:
and an adjusting unit 805 configured to adjust a position of one of the mini window and the information capsule so that a relative positional relationship between the mini window and the information capsule is maintained when it is detected that the other is moved based on an operation of a user.
Optionally, the information capsule is of an application control type, and the device further comprises:
A control unit 806 is equipped to perform predefined control operations on the application in case it is detected that the information capsule is triggered. For the device embodiments, reference is made to the description of the method embodiments for the relevant points, since they essentially correspond to the method embodiments. The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the objectives of the disclosed solution. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
Correspondingly, the disclosure further provides a key information display device, which comprises a processor and a memory for storing executable instructions of the processor, wherein the processor is configured to implement the key information display method according to any one of the embodiments, for example, the method can comprise the steps of obtaining related data generated in the operation of an application program, determining predefined key information from the related data, and generating an information capsule which is displayed in association with a non-full-screen window under the condition that the application program is determined to be displayed through the non-full-screen window so as to display the determined key information in the information capsule.
Accordingly, the present disclosure also provides an electronic device, where the electronic device includes a memory, and one or more programs, where the one or more programs are stored in the memory, and where the one or more programs configured to be executed by the one or more processors include instructions for implementing the key information display method according to any one of the foregoing embodiments, for example, the method may include acquiring related data generated during an application running, and determining predefined key information from the related data, and generating an information capsule displayed in association with a non-full screen window to display the determined key information in the information capsule if it is determined that the application is displayed through the non-full screen window.
FIG. 10 is a block diagram illustrating an apparatus 1000 for implementing a process scheduling method, according to an example embodiment. For example, apparatus 1000 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, or the like.
Referring to FIG. 10, the apparatus 1000 may include one or more of a processing component 1002, a memory 1004, a power component 1006, a multimedia component 1008, an audio component 1010, an input/output (I/O) interface 1012, a sensor component 1014, and a communication component 1016.
The processing component 1002 generally controls overall operation of the apparatus 1000, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 1002 can include one or more processors 1020 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 1002 can include one or more modules that facilitate interaction between the processing component 1002 and other components. For example, the processing component 1002 can include a multimedia module to facilitate interaction between the multimedia component 1008 and the processing component 1002.
The memory 1004 is configured to store various types of data to support operations at the apparatus 1000. Examples of such data include instructions for any application or method operating on the device 1000, contact data, phonebook data, messages, pictures, videos, and the like. The memory 1004 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 1006 provides power to the various components of the device 1000. The power components 1006 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 1000.
The multimedia component 1008 includes a screen between the device 1000 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia assembly 1008 includes a front-facing camera and/or a rear-facing camera. The front camera and/or the rear camera may receive external multimedia data when the apparatus 1000 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 1010 is configured to output and/or input audio signals. For example, the audio component 1010 includes a Microphone (MIC) configured to receive external audio signals when the device 1000 is in an operational mode, such as a call mode, a recording mode, and a speech recognition mode. The received audio signals may be further stored in memory 1004 or transmitted via communication component 1016. In some embodiments, the audio component 1010 further comprises a speaker for outputting audio signals.
The I/O interface 1012 provides an interface between the processing assembly 1002 and peripheral interface modules, which may be a keyboard, click wheel, buttons, and the like. These buttons may include, but are not limited to, a home button, a volume button, an activate button, and a lock button.
The sensor assembly 1014 includes one or more sensors for providing status assessment of various aspects of the device 1000. For example, the sensor assembly 1014 may detect an on/off state of the device 1000, a relative positioning of the components, such as a display and keypad of the device 1000, the sensor assembly 1014 may also detect a change in position of the device 1000 or a component of the device 1000, the presence or absence of user contact with the device 1000, an orientation or acceleration/deceleration of the device 1000, and a change in temperature of the device 1000. The sensor assembly 1014 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 1014 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1014 can also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1016 is configured to facilitate communication between the apparatus 1000 and other devices, either wired or wireless. The apparatus 1000 may access a wireless network based on a communication standard, such as WiFi,2G or 3G,4G LTE, 5G NR (New Radio), or a combination thereof. In one exemplary embodiment, the communication component 1016 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1016 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 1000 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 1004, including instructions executable by processor 1020 of apparatus 1000 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
The foregoing description of the preferred embodiments of the present disclosure is not intended to limit the disclosure, but rather to cover all modifications, equivalents, improvements and alternatives falling within the spirit and principles of the present disclosure.