Summary of the invention
The object of the present invention is to provide one at least solve the problems referred to above and/or at least provide a following advantages, specifically, the invention provides a kind of multitask execution method and the equipment that can realize comprising in the electronic device multiple widgets.
According to an aspect of the present invention, provide a kind of multitask execution method of electronic equipment, comprising: create floating frame on the screen of the electronic device; Load the information of one or more widgets; The interface that described one or more widgets is run is shown in the floating frame created.
This multitask execution method can also comprise: receive the selection of the one or more widgets in electronic equipment the one or more widgets selected to be added in the floating frame of establishment.Therefore user can select that they like or conventional widgets and adds in floating frame.
When multiple widgets adds in the floating frame of establishment, receive user to add in the widgets of floating frame will current display widgets selection and/or receive user to will the switching of widgets of current display.Therefore, when user wants multiple widgets to add in floating frame, user can select the widgets needing current display, and in addition when the widgets that user wants other to select carries out current display, user can also switch the widgets of current display.
When showing arbitrary interface on the screen of the electronic device, described floating frame can be shown before described interface.By showing floating frame before arbitrary interface, user can clearly check the content shown in floating frame.
Can show the update content of described one or more widgets in the floating frame created, wherein, when not having update content, described floating frame is reduced into pre-sizing, and when there is update content, described floating frame launches with display update content.So just, can intuitively to user reminding update content.
This multitask execution method can also comprise: on described floating frame, build the view being used for controlling one or more widgets described.Therefore the described view that user builds by operation controls described one or more widgets.
When showing the interface that multiple widgets is run, the quantity of described floating frame can be equal to or less than the quantity of widgets.
When showing the interface that multiple widgets is run, the interface that each widgets is run can be presented at separately in respective floating frame, or the interface that each widgets is run can mergedly be presented in one or more floating frame.
This multitask execution method can also comprise: when receive the size to described floating frame, transparency and/or position amendment signal time, change the size of described floating frame, transparency and/or position.
The size of described floating frame can be size or the preliminary dimension of the runnable interface of current display widgets own.
Described multitask execution method can also comprise: detect and the input operation to floating frame performed on the screen of electronic equipment and to the input operation outside floating frame simultaneously.
According to a further aspect in the invention, provide a kind of multitask execution method of electronic equipment, comprising: receive the selection to one or more widgets; The one or more widgets selected are added in the floating frame that the screen of electronic equipment shows; Load the information of the one or more widgets selected.By the widgets of selection is added in floating frame, by select widgets and floating frame bind, thus can allow user and widgets mutual.
According to a further aspect in the invention, provide a kind of multitask actuating equipment of electronic equipment, comprising: floating frame creating unit, for creating floating frame on the screen of the electronic device; Module information loading unit, for loading the information of one or more widgets; Display unit, for showing the interface that described one or more widgets is run in the floating frame created.
Described multitask actuating equipment can also comprise: receiving element, for receiving the selection of the one or more widgets in electronic equipment the one or more widgets selected to be added in the floating frame of establishment.Therefore user can select that they like or conventional widgets and adds in floating frame.
When multiple widgets adds in the floating frame of establishment, receiving element receive user to add in the widgets of floating frame will current display widgets selection and/or receive user to will the switching of widgets of current display.Therefore, when user wants multiple widgets to add in floating frame, user can select the widgets needing current display, and in addition when the widgets that user wants other to select carries out current display, user can also switch the widgets of current display.
When showing arbitrary interface on the screen of the electronic device, display unit can show described floating frame before described interface.By showing floating frame before arbitrary interface, user can clearly check the content shown in floating frame.
Display unit can show the update content of described one or more widgets in the floating frame created, wherein, described multitask actuating equipment also comprises: floating frame adjustment unit, when there is no update content, described floating frame is reduced into pre-sizing, and when there is update content, described floating frame is launched with display update content.So just, can intuitively to user reminding update content.
Described multitask actuating equipment can also comprise: view construction unit, for building the view being used for controlling one or more widgets described on described floating frame.
When display unit shows the interface of multiple widgets operation, the quantity of described floating frame can be equal to or less than the quantity of widgets.
When display unit shows the interface of multiple widgets operation, the interface that each widgets can be run by display unit is presented at separately in respective floating frame, or the interface merging each widgets run is presented in one or more floating frame.
Described multitask actuating equipment can also comprise: floating frame adjustment unit, when receive the size to described floating frame, transparency and/or position amendment signal time, change the size of described floating frame, transparency and/or position.
The size of described floating frame can be size or the preliminary dimension of the runnable interface of current display widgets own.
Described multitask actuating equipment can also comprise: operation detection performance element, for detect and the input operation to floating frame performed on the screen of electronic equipment and to the input operation outside floating frame simultaneously.
According to a further aspect in the invention, provide a kind of multitask actuating equipment of electronic equipment, comprising: receiving element, receive the selection to one or more widgets; The one or more widgets selected are added in the floating frame that the screen of electronic equipment shows by adding device; Module information loading unit, loads the information of the one or more widgets selected.
Embodiment
Fig. 1 is the process flow diagram of the process of the multitask execution method of the electronic equipment illustrated according to a first embodiment of the present invention.
As shown in Figure 1, in step S101, create floating frame on the screen of the electronic device.
Such as, can according to the mode pre-set, such as rock electronic equipment, button (such as audio frequency button) etc. on the predetermined button touched in electronic equipment, pressing mobile device triggers and create floating frame on the screen of the electronic device.
In step S102, load the information of one or more widgets.
Such as, one or more widgets here can be the widgets that user selects to add in floating frame in advance.Can store various widgets in electronic equipment, user can select that they like or conventional widgets and add in floating frame.
In step S103, in the floating frame created, show the interface that described one or more widgets is run.
Such as, when showing arbitrary interface on the screen of the electronic device, described floating frame can be shown before described interface.This arbitrary interface comprises full frame interface and is not full frame interface.By showing floating frame before arbitrary interface, user can clearly check the content shown in floating frame.As shown in Figure 5, the interface showing mail is displayed on before interface of playing Mah-Jong.
In addition, the update content of described one or more widgets can be shown in the floating frame created.Such as, as shown in Figure 5, while the interface that full screen display user plays Mah-Jong on the screen of the electronic device, mail widgets receives new mail, therefore the new mail received of display in floating frame, i.e. the update content of mail widgets.
In addition, in order to user checks that conveniently when the widgets that floating frame is corresponding does not have update content, described floating frame can be reduced into pre-sizing (being such as reduced into point), and when there is update content, described floating frame is deployable with display update content.So just, can intuitively to user reminding update content.In addition, the size of the floating frame of display widgets runnable interface can be the size of the runnable interface of current display widgets own, also can be preliminary dimension (being such as less than the size of the runnable interface of widgets own).
In addition, various change can be made to the attribute of floating frame.Such as, when receive the size to described floating frame, transparency and/or position amendment signal time, correspondingly can change the size of described floating frame, transparency and/or position.As shown in Figure 6, the interface that short message widgets is run is shown in floating frame.In order to show the content of whole short message, the size of floating frame can be adjusted.In addition, as shown in Figure 7, show GPS map associated group part in floating frame, the transparency of floating frame is adjustable to the display not affecting interface of playing Mah-Jong.
In addition, when showing the interface that multiple widgets is run, the quantity of described floating frame can be equal to or less than the quantity of widgets.That is, the quantity of the floating frame created can equal the quantity of widgets, namely each widgets takies a floating frame, or, the quantity of the floating frame created can be less than the quantity of widgets, that is, can as required the interface that several widgets is run be combined and be presented in a floating frame.
In addition, user can operate the widgets be presented in floating frame.Such as, this multitask execution method can also comprise: on floating frame, build the view being used for controlling one or more widgets described.Therefore the described view that user builds by operation controls described one or more widgets.Such as, when receiving new short message, the view that user-operable builds on floating frame such as, to control this short message widgets, replying short message.
In addition, although not shown in Figure 1, described multitask execution method can also comprise: receive the selection of the one or more widgets in electronic equipment to add in the floating frame of establishment by the one or more widgets selected, wherein, when multiple widgets adds in the floating frame of establishment, receive user to add in the widgets of floating frame will current display widgets selection and/or receive user to will the switching of widgets of current display.Therefore, when user wants multiple widgets to add in floating frame, user can select the widgets needing current display, and in addition when the widgets that user wants other to select carries out current display, user can also switch the widgets of current display.
In addition, although not shown in Figure 1, described multitask execution method can also comprise: detect and the input operation to floating frame performed on the screen of electronic equipment and to the input operation outside floating frame simultaneously.
Fig. 2 is the process flow diagram of the process of the multitask execution method of the electronic equipment illustrated according to a second embodiment of the present invention.
As shown in Figure 2, in step S201, receive the selection to one or more widgets.
Such as, can store various widgets in electronic equipment, user can select that they like or conventional widgets to add in floating frame.The module information of widgets can be presented at the interpolation interface for adding assembly by intelligent terminal.Such as, the information of the widgets in intelligent terminal is obtained by common method, such as, obtain the application list in intelligent terminal by the mode of application manager under similar android system, such as get the software attributes of Android application, size and application path, Apply Names etc.
As an example, obtain the information of widgets about the application programming interface of widgets by android system.Identify to application program by the allocateAppWidgetId interface assignment widgets about AppWidgetHost class under the application programming interface of widgets, think the interpolation allocation space of application program.To obtain the list of widgets from android system by can be used for the action to operation in application, action relates to data, additional data is described Intent in android system, wherein, the Action parameter of described Intent can be configured to AppWidgetManager.ACTION_APPWIDGET_PICK, and the Extra parameter of Intent can be configured to AppWidgetManager.EXTRA_APPWIDGET_ID.
After the information obtaining widgets, by the information displaying of widgets on the screen of intelligent terminal, receive user to the selection of widgets, such as, in the form of a list by the information displaying of widgets on the screen of intelligent terminal, receive user to the click of selected widgets or touch operation.Receive user to after the selection of widgets, obtained the widgets of user's selection by the mode of heavily loaded call back function onActivityResult, and the information of described widgets is stored.
In step S202, the one or more widgets selected are added in the floating frame that the screen of electronic equipment shows.
Exemplarily, can first by the bindAppWidgetIdIfAllowed function (below Android4.1 is bindAppWidgetId function) in AppWidgetManager storehouse by the widgets selected and floating frame binding, thus can allow user and widgets mutual.Use the widgets establishment view of the createView function in AppWidgetHost storehouse for specifying.By by type parameter configuration in WindowManager.LayoutParams being the next newly-built floating frame of TYPE_PHONE.With described layout for parameter to add view to by the addView function of WindowManager the screen of intelligent terminal.The monitor function using the startListening of AppWidgetHost to activate widgets operates with monitoring users.
In addition, the quantity of described floating frame can be equal to or less than the quantity of widgets.That is, the quantity of floating frame can equal the quantity of widgets, namely each widgets takies a floating frame, or the quantity of the floating frame created can be less than the quantity of widgets, that is, can as required the interface that several widgets is run be combined and be presented in a floating frame.
In addition, when multiple widgets adds in floating frame, receive user to add in the widgets of floating frame will current display widgets selection and/or receive user to will the switching of widgets of current display.Therefore, when user wants multiple widgets to add in floating frame, user can select the widgets needing current display, and in addition when the widgets that user wants other to select carries out current display, user can also switch the widgets of current display.
In step S203, load the information of the one or more widgets selected.
Fig. 3 is the block diagram of the structure of the multitask actuating equipment of the electronic equipment illustrated according to a third embodiment of the present invention.
As shown in Figure 3, the multitask actuating equipment of this electronic equipment comprises: floating frame creating unit 301, module information loading unit 302 and display unit 303.
Floating frame creating unit 301 is for creating floating frame on the screen of the electronic device.
Such as, can according to the mode pre-set, such as rock electronic equipment, button (such as audio frequency button) etc. on the predetermined button touched in electronic equipment, pressing mobile device triggers and create floating frame on the screen of the electronic device.
Module information loading unit 302 is for loading the information of one or more widgets.
Such as, one or more widgets here can be the widgets that user selects to add in floating frame in advance.Can store various widgets in electronic equipment, user can select that they like or conventional widgets and add in floating frame.
The interface that display unit 303 runs for showing described one or more widgets in the floating frame created.
Specifically, such as, when showing arbitrary interface on the screen of the electronic device, display unit 303 can show described floating frame before described interface.This arbitrary interface comprises full frame interface and is not full frame interface.By showing floating frame before arbitrary interface, user can clearly check the content shown in floating frame.As shown in Figure 5, the interface showing mail is displayed on before interface of playing Mah-Jong.
In addition, display unit 303 can show the update content of described one or more widgets in the floating frame created.Such as, as shown in Figure 5, while the interface that full screen display user plays Mah-Jong on the screen of the electronic device, when widgets mail reception is to new mail, the new mail received of display in floating frame, the i.e. update content of mail widgets.
In addition, this multitask actuating equipment can also comprise: floating frame adjustment unit (not illustrating in the drawings), when there is no update content, described floating frame is reduced into pre-sizing (being such as reduced into point) by floating frame adjustment unit, and when there is update content, described floating frame is launched with display update content.In addition, the size of the floating frame of display widgets runnable interface can be the size of the runnable interface of current display widgets own, also can be preliminary dimension (being such as less than the size of the runnable interface of widgets own).
In addition, floating frame adjustment unit also can change the size of floating frame, transparency and/or position.Such as, when receive the size to described floating frame, transparency and/or position amendment signal time, floating frame adjustment unit correspondingly can change the size of described floating frame, transparency and/or position.As shown in Figure 6, the interface that short message widgets is run is shown in floating frame.In order to show the content of whole short message, the size of the size of adjustable floating frame.As shown in Figure 7, show GPS map associated group part in floating frame, the transparency of floating frame can be changed the display not affecting interface of playing Mah-Jong.
In addition, when showing the interface that multiple widgets is run, the quantity of described floating frame can be equal to or less than the quantity of widgets.That is, the quantity of the floating frame created can equal the quantity of widgets, namely each widgets takies a floating frame, or, the quantity of the floating frame created can be less than the quantity of widgets, that is, can as required the interface that several widgets is run be combined and be presented in a floating frame.
In addition, this multitask actuating equipment can also comprise: view construction unit (not illustrating in the drawings), for building the view being used for controlling one or more widgets described on described floating frame.Therefore the described view that user builds by operation controls described one or more widgets.Such as, when receiving new short message, the view that user-operable builds on floating frame such as, to control this short message widgets, replying short message.
In addition, described multitask actuating equipment can also comprise: receiving element (not illustrating in the drawings), for receiving the selection of the one or more widgets in electronic equipment so that the one or more widgets selected are added in the floating frame of establishment, wherein, when multiple widgets adds in the floating frame of establishment, receiving element receive user to add in the widgets of floating frame will current display widgets selection and/or receive user to will the switching of widgets of current display.Therefore, when user wants multiple widgets to add in floating frame, user can select the widgets needing current display, and in addition when the widgets that user wants other to select carries out current display, user can also switch the widgets of current display.
In addition, described multitask actuating equipment can also comprise: operation detection performance element (not illustrating in the drawings), for detect and the input operation to floating frame performed on the screen of electronic equipment and to the input operation outside floating frame simultaneously.
Fig. 4 is the block diagram of the structure of the multitask actuating equipment of the electronic equipment illustrated according to a fourth embodiment of the present invention.
As shown in Figure 4, the multitask actuating equipment of this electronic equipment comprises: receiving element 401, adding device 402 and module information loading unit 403.
Receiving element 401 is for receiving the selection to one or more widgets.
Adding device 402 is for adding to the one or more widgets selected in the floating frame that the screen of electronic equipment shows.
Module information loading unit 403 is for loading the information of one or more widgets of selection.
Such as, the quantity of described floating frame can be equal to or less than the quantity of widgets.That is, the quantity of floating frame can equal the quantity of widgets, namely each widgets takies a floating frame, or, the quantity of the floating frame created can be less than the quantity of widgets, that is, can as required the interface that several widgets is run be combined and be presented in a floating frame.
Such as, when multiple widgets adds in floating frame, receiving element 401 also can receive user to add in the widgets of floating frame will current display widgets selection and/or receive user to will the switching of widgets of current display.Therefore, when user wants multiple widgets to add in floating frame, user can select the widgets needing current display, and in addition when the widgets that user wants other to select carries out current display, user can also switch the widgets of current display.
By the present invention, solve the problem that simultaneously can not perform multiple task and the multiple window of display in the electronic device.In addition, the present invention, when without retouching operation system bottom code, when an operation full frame application program, can run other application programs and the execution window of display correspondence simultaneously.
Although specifically show with reference to its exemplary embodiment and describe the present invention, but it should be appreciated by those skilled in the art, when not departing from the spirit and scope of the present invention that claim limits, the various changes in form and details can be carried out to it.