Disclosure of Invention
In view of the above problems, the present invention has been made to provide a floating problem control display method and apparatus suitable for a mobile terminal that overcomes or at least partially solves the above problems.
According to one aspect of the invention, a floating problem interaction control display method suitable for a mobile terminal is provided, wherein the method comprises the following steps:
starting a suspension problem interaction control service;
monitoring an application window event triggered in the mobile terminal;
matching the application window event with the record items stored in the suspension interactive control service to obtain matched record items;
and when the suspension problem interaction control service is triggered, displaying the matched record item in a suspension window of the mobile terminal.
Optionally, the method further comprises:
displaying a hidden control on the floating window;
when the hidden control is triggered, hiding the floating window, and displaying a small icon of the floating window on a display interface of the mobile terminal;
when the floating window thumbnail is triggered, the hidden floating window is expanded.
Optionally, the method further comprises:
and when an instruction of clicking a display area of the mobile terminal except the floating window is received, hiding the floating window and displaying the small icon of the floating window on a display interface of the mobile terminal.
Optionally, the displaying the matched record items in a floating window of the mobile terminal includes:
starting a service in the android system;
sending a create floating window message to the service; after receiving the message of creating the floating window, the service adds the floating window view control of the record item to a WindowManger of the android system;
sending a floating window updating message to the service; and after receiving the message for updating the floating window, the service updates the floating window view control in the WindowManger according to the data in the message for updating the floating window.
Optionally, the method further comprises:
sending a message for closing a floating window to the service; and after receiving the message of closing the floating window, the service removes the floating window view control in the WindowManger.
Optionally, the matching the application window event with the record items stored in the floating interactive control service to obtain the matched record items includes:
when an application window event triggered in the mobile terminal is monitored, automatically matching the application window event with a record item stored in the suspension interaction control service to obtain a matched record item;
or,
and when a question query word related to the application window event is received from a question query word input interface, searching a record item corresponding to the application window event from record items stored in the suspension interaction control service according to the question query word.
According to another aspect of the present invention, there is provided a floating question interaction control display apparatus for a mobile terminal, wherein the apparatus includes:
the starting unit is suitable for starting the suspension problem interaction control service;
the monitoring unit is suitable for monitoring an application window event triggered in the mobile terminal;
the matching unit is suitable for matching the application window event with the record items stored in the suspension interactive control service to obtain matched record items;
and the floating window display unit is suitable for displaying the matched record items in a floating window of the mobile terminal when the floating problem interaction control service is triggered.
Optionally, the floating window displaying unit is further adapted to display a hidden control on the floating window, hide the floating window when the hidden control is triggered, display a small icon of the floating window on a display interface of the mobile terminal, and expand the hidden floating window when the small icon of the floating window is triggered.
Optionally, the floating window displaying unit is further adapted to hide the floating window and display the small floating window icon on the display interface of the mobile terminal when an instruction of clicking a display area of the mobile terminal except the floating window is received.
Optionally, the floating window displaying unit is adapted to start a service in the android system, send a message for creating a floating window to the service, and send a message for updating the floating window to the service;
after receiving the message of creating the floating window, the service adds the floating window view control of the record item to a Windows manager of the android system; and after receiving the message for updating the floating window, the service updates the floating window view control in the WindowManger according to the data in the message for updating the floating window.
Optionally, the floating window presenting unit is further adapted to send a message to close the floating window to the service; after receiving the message of closing the floating window, the service removes the floating window view control in the WindowManger;
the floating window display unit is further adapted to close the service.
Optionally, the matching unit is adapted to, when the monitoring unit monitors an application window event triggered in the mobile terminal, automatically match the application window event with a record item stored in the floating interaction control service to obtain a matched record item; or when receiving a question query term related to the application window event from a question query term input interface, searching a record item corresponding to the application window event from record items stored in the suspension interaction control service according to the question query term.
Such a launch hover issue interaction control service in accordance with the present invention; monitoring an application window event triggered in the mobile terminal; matching the application window event with the record items stored in the suspension interactive control service to obtain matched record items; when the suspension problem interaction control service is triggered, the matched record items are displayed in a suspension window of the mobile terminal, and the record items matched with the application window event are displayed in a suspension window mode, so that the related record items in the suspension window can be checked when the application window event is operated, the application window event does not need to be withdrawn, the operation of a user is greatly facilitated, and the time and the energy are saved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Fig. 2 is a flowchart illustrating a floating question interactive control display method suitable for a mobile terminal according to an embodiment of the present invention. As shown in fig. 1, the method includes:
step S210, starting the suspension problem interaction control service.
Step S220, monitoring an application window event triggered in the mobile terminal.
In the embodiment of the present invention, the application window event generally refers to some window applications in the mobile terminal, such as games, applications for setting certain functions of a mobile phone, and the like.
And step S230, matching the application window event with the record items stored in the suspension interactive control service to obtain matched record items.
In the embodiment of the invention, the floating interactive control service stores the record items related to the application window events in advance. For example, there are various kinds of games, guidance for setting various functions of the mobile terminal, and various kinds of application window events.
In one embodiment of the invention, each pre-stored record item related to the application window event exists in the form of a teletext web page.
And step S240, when the suspension problem interaction control service is triggered, displaying the matched record item in a suspension window of the mobile terminal.
In an embodiment of the present invention, a floating control, such as a floating ball, or a floating small icon in other shapes and styles, may be displayed on the display interface of the mobile terminal, and the user may trigger the floating problem interaction control service by clicking the floating control.
In the method shown in fig. 2, since the record item matched with the application window event is displayed in the form of the floating window, the related record item in the floating window can be viewed when the application window event is operated, and the application window event does not need to be exited, thereby greatly facilitating the operation of a user and saving time and energy.
For example, when a user needs to set a ring tone of a mobile phone according to the teletext solution of "customized incoming call ring tone for mobile phone" shown in fig. 1, the ring tone can be displayed in the floating window shown in fig. 3 according to the method shown in fig. 2. Therefore, the problems that the image-text solutions have many steps and the user needs to repeatedly quit the application and open the solutions for checking when the user can not remember all the solutions at one time are solved.
Fig. 3 shows a floating window presentation diagram of a teletext solution for a "mobile phone customized incoming ringtone" according to an embodiment of the invention. Referring to fig. 3, a graphic solution of "mobile phone customized incoming call ring" is shown in the floating window. In this way, when the user sets the ring tone of the mobile phone, the floating window as shown in fig. 3 is triggered and opened directly on the ring tone setting page of the mobile phone, and the user-defined ring tone setting is performed according to the content in the floating window.
In one embodiment of the present invention, the method shown in fig. 2 further comprises: displaying a hidden control on the floating window; when the hidden control is triggered, hiding the floating window, and displaying a small icon of the floating window on a display interface of the mobile terminal; when the floating window thumbnail is triggered, the hidden floating window is expanded. Alternatively, in another embodiment of the present invention, the method shown in fig. 2 further includes: when an instruction of clicking a display area of the mobile terminal except the floating window is received, the floating window is hidden, a small icon of the floating window is displayed on a display interface of the mobile terminal, and when the small icon of the floating window is triggered, the hidden floating window is expanded again.
For example, referring to fig. 3, the "-" button control in the top right corner of the floating window is the hidden control, and the "x" button control in the top left corner is the floating window closing button control. When the user clicks the "-" button control, the floating window is hidden, and a small icon of the floating window is displayed on the display interface of the mobile terminal, as shown in fig. 4.
FIG. 4 shows a schematic view of a floating window thumbnail according to one embodiment of the present invention. Referring to fig. 4, on the display interface of the mobile terminal, the circular small icon at the lower right of the time (23: 09) is the floating window small icon. If the floating window thumbnail is clicked, the floating window as shown in FIG. 3 is displayed.
In an embodiment of the present invention, in step S230 of the method shown in fig. 2, matching the application window event with a record item stored in the floating interaction control service, and obtaining a matched record item includes: when an application window event triggered in the mobile terminal is monitored, automatically matching the application window event with a record item stored in the suspension interaction control service to obtain a matched record item; or when a question query word related to the application window event is received from a question query word input interface, searching a record item corresponding to the application window event from record items stored in the suspension interaction control service according to the question query word.
I.e. the triggering of the display of the floating window has two forms: one is to actively find out a matched record item and push the record item when an application window event triggered in the mobile terminal is monitored. For example, when it is monitored that a user starts a certain game in a mobile phone, the background automatically finds out the breakthrough strategy of the game, displays a floating control on an interface of the game, and displays the found breakthrough strategy in a floating window when the user triggers the floating control. And the other method is that a user inputs a question query word in a question query word input interface of the suspension interaction control service, and the background searches a corresponding record item from the record items stored in the suspension interaction control service according to the question query word and displays the record item in a suspension window.
In an embodiment of the present invention, the presenting the matched entry in the floating window of the mobile terminal in step S240 of the method shown in fig. 2 includes: starting a Service (Service) in the android system; sending a create floating window message to the service; after receiving the message of creating the floating window, the service adds the floating window view control of the record item to a WindowManger of the android system; sending a floating window updating message to the service; and after receiving the message for updating the floating window, the service updates the floating window view control in the WindowManger according to the data in the message for updating the floating window. In one embodiment of the present invention, the method shown in fig. 2 further comprises: sending a message for closing a floating window to the service; and after receiving the message of closing the floating window, the service removes the floating window view control in the WindowManger. And closing the service.
Specifically, in one embodiment of the present invention, the floating window is managed by Service in android (android). Firstly, a Service is started, then an onStartService method in the Service is used for processing different types of messages, and the method mainly comprises three messages of creating a floating window, updating the floating window and closing the floating window. Adding a floating window view control in a Windows manager when a message for creating a floating window is received; when receiving a message for updating the floating window, updating the view control in the floating window according to the message data; when a close message is received, the floating window view control is removed in windowmanager. And turning off the Service.
The floating window in the embodiment of the invention is a window in Android, is managed by Windows manager, and can be interactively operated on any UI. The WindowManager in Android is mainly used to manage some states, attributes, view additions, deletions, updates, window orders, message collection and processing, etc. of windows.
An instance of the WindowManager may be obtained by way of a context.
The WindowManager inherits from the ViewManager, and three important methods related to window management are respectively as follows:
*addView();
*update View Layout();
*remove View();
there is also an important static class, Layout params, in Window Manager, through which some properties of the current Window can be set and obtained.
Fig. 5 is a block diagram illustrating a floating problem interaction control display device adapted to a mobile terminal according to an embodiment of the present invention. As shown in fig. 5, the floating question interaction control display device 500 for a mobile terminal includes:
the starting unit 501 is adapted to start a floating problem interaction control service;
a monitoring unit 502 adapted to monitor an application window event triggered in the mobile terminal; in the embodiment of the present invention, the application window event generally refers to some window applications in the mobile terminal, such as games, applications for setting certain functions of a mobile phone, and the like.
The matching unit 503 is adapted to match the application window event with a record item stored in the floating interaction control service to obtain a matched record item; in the embodiment of the invention, the floating interactive control service stores the record items related to the application window events in advance. For example, there are various kinds of games, guidance for setting various functions of the mobile terminal, and various kinds of application window events.
And a floating window displaying unit 504, adapted to display the matched record item in a floating window of the mobile terminal when the floating problem interaction control service is triggered. In an embodiment of the present invention, a floating control, such as a floating ball, or a floating small icon in other shapes and styles, may be displayed on the display interface of the mobile terminal, and the user may trigger the floating problem interaction control service by clicking the floating control.
In the device shown in fig. 5, since the record item matched with the application window event is displayed in the form of the floating window, the related record item in the floating window can be checked when the application window event is operated, and the application window event does not need to be exited, so that the operation of a user is greatly facilitated, and the time and the energy are saved.
One illustration of a floating window is shown in fig. 3.
In an embodiment of the present invention, the floating window displaying unit 504 is further adapted to display a hidden control on the floating window, hide the floating window when the hidden control is triggered, display a floating window small icon on a display interface of the mobile terminal, and expand the hidden floating window when the floating window small icon is triggered.
In an embodiment of the present invention, the floating window displaying unit 504 is further adapted to hide the floating window and display a floating window small icon on the display interface of the mobile terminal when receiving an instruction to click a display area of the mobile terminal except the floating window. An example of a floating window thumbnail is shown in fig. 4.
In an embodiment of the present invention, the floating window displaying unit 504 is adapted to start a service in an android system, send a message for creating a floating window to the service, and send a message for updating the floating window to the service;
after receiving the message of creating the floating Window, the service adds the floating Window view control of the record item to a Window Manger of the android system; and after receiving the message for updating the floating Window, the service updates the floating Window view control in the Window manager according to the data in the message for updating the floating Window.
In an embodiment of the present invention, the floating window presenting unit 504 is further adapted to send a message to close the floating window to the service; after receiving the message of closing the floating Window, the service removes the floating Window view control in the Window manager; the floating window presentation unit 504 is further adapted to close the service.
In an embodiment of the present invention, the matching unit 503 is adapted to, when the monitoring unit monitors an application window event triggered in the mobile terminal, automatically match the application window event with a record item stored in the floating interaction control service to obtain a matched record item; or when receiving a question query term related to the application window event from a question query term input interface, searching a record item corresponding to the application window event from record items stored in the suspension interaction control service according to the question query term.
I.e. the triggering of the display of the floating window has two forms: one is to actively find out a matched record item and push the record item when an application window event triggered in the mobile terminal is monitored. For example, when it is monitored that a user starts a game in a mobile phone, the breakthrough strategy of the game is automatically found, a floating control is displayed on an interface of the game, and when the user triggers the floating control, the found breakthrough strategy is displayed in a floating window. And the other method is that the user inputs a question query word in a question query word input interface of the suspension interaction control service, searches a corresponding record item from the record items stored in the suspension interaction control service according to the question query word, and displays the record item in a suspension window.
In summary, the floating problem interaction control service is started according to the invention; monitoring an application window event triggered in the mobile terminal; matching the application window event with the record items stored in the suspension interactive control service to obtain matched record items; when the suspension problem interaction control service is triggered, the matched record items are displayed in a suspension window of the mobile terminal, and the record items matched with the application window event are displayed in a suspension window mode, so that the related record items in the suspension window can be checked when the application window event is operated, the application window event does not need to be withdrawn, the operation of a user is greatly facilitated, and the time and the energy are saved.
It should be noted that:
the algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components of a hover issue interaction control display device for a mobile terminal according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
The invention discloses A1 and a display method of a suspension problem interactive control suitable for a mobile terminal, wherein the method comprises the following steps: starting a suspension problem interaction control service; monitoring an application window event triggered in the mobile terminal; matching the application window event with the record items stored in the suspension interactive control service to obtain matched record items; and when the suspension problem interaction control service is triggered, displaying the matched record item in a suspension window of the mobile terminal.
A2, the method of a1, wherein the method further comprises: displaying a hidden control on the floating window; when the hidden control is triggered, hiding the floating window, and displaying a small icon of the floating window on a display interface of the mobile terminal; when the floating window thumbnail is triggered, the hidden floating window is expanded.
A3, the method of a1 or a2, wherein the method further comprises: and when an instruction of clicking a display area of the mobile terminal except the floating window is received, hiding the floating window and displaying the small icon of the floating window on a display interface of the mobile terminal.
A4, the method as in any one of a1-A3, wherein the presenting the matched record items in a floating window of a mobile terminal comprises: starting a service in the android system; sending a create floating window message to the service; after receiving the message of creating the floating Window, the service adds the floating Window view control of the record item to a Window manager of the android system; sending a floating window updating message to the service; and after receiving the message for updating the floating Window, the service updates the floating Window view control in the Window manager according to the data in the message for updating the floating Window.
A5, the method of any one of a1-a4, wherein the method further comprises: sending a message for closing a floating window to the service; and after receiving the message of closing the floating Window, the service removes the floating Window view control in the Window manager.
A6, the method according to any one of a1-a5, wherein the matching the application window event with an entry stored in the hover interaction control service, the obtaining a matched entry includes: when an application window event triggered in the mobile terminal is monitored, automatically matching the application window event with a record item stored in the suspension interaction control service to obtain a matched record item; or when a question query word related to the application window event is received from a question query word input interface, searching a record item corresponding to the application window event from record items stored in the suspension interaction control service according to the question query word.
The invention also discloses B7, a floating question interaction control display device suitable for the mobile terminal, wherein, the device comprises: the starting unit is suitable for starting the suspension problem interaction control service; the monitoring unit is suitable for monitoring an application window event triggered in the mobile terminal; the matching unit is suitable for matching the application window event with the record items stored in the suspension interactive control service to obtain matched record items; and the floating window display unit is suitable for displaying the matched record items in a floating window of the mobile terminal when the floating problem interaction control service is triggered.
The apparatus of B8, B7, wherein the floating window displaying unit is further adapted to display a hidden control on the floating window, hide the floating window when the hidden control is triggered, display a floating window small icon on a display interface of a mobile terminal, and expand the hidden floating window when the floating window small icon is triggered.
B9, the apparatus according to B7 or B8, wherein the floating window presenting unit is further adapted to hide the floating window and display a floating window icon on the display interface of the mobile terminal when receiving an instruction to click on a display area of the mobile terminal except the floating window.
The device according to any one of B10 and B7-B9, wherein the floating window presenting unit is adapted to start a service in an android system, send a message for creating a floating window to the service, and send a message for updating the floating window to the service; after receiving the message of creating the floating Window, the service adds the floating Window view control of the record item to a Window Manger of the android system; and after receiving the message for updating the floating Window, the service updates the floating Window view control in the Window manager according to the data in the message for updating the floating Window.
B11, the device as claimed in any one of B7-B10, wherein the floating window presenting unit is further adapted to send a close floating window message to the service; after receiving the message of closing the floating Window, the service removes the floating Window view control in the Window manager; the floating window display unit is further adapted to close the service.
The device according to any one of B12 and B7-B11, wherein the matching unit is adapted to, when the monitoring unit monitors an application window event triggered in the mobile terminal, automatically match the application window event with a record item stored in the floating interactive control service to obtain a matched record item; or when receiving a question query term related to the application window event from a question query term input interface, searching a record item corresponding to the application window event from record items stored in the suspension interaction control service according to the question query term.