This application is based on and claims priority to Chinese Patent Application No. 201610227323.3 filed on Apr. 13, 2016, which is incorporated herein by reference in its entirety.
The present disclosure generally relates to the technical field of a terminal, and more particularly to a method and a device for launching a function of an application and computer-readable medium.
With the development of technology, smart terminals have become an integral part of people's life. Typically, people can use different kinds of applications installed on smart terminals for study, entertainments, work, etc.
In related technologies, different applications vary for their functions. When an application is running in the foreground, a user may perform different operations by selecting corresponding function buttons. In general, due to an application containing numerous functions, some of function buttons may be distributed on different display interfaces, or hidden in foldable function lists, such as the scan function button for WeChat. With respect to these function buttons, the user needs to first find a display interface, or execute an expanding operation on a function list locating thereon, and then executes selection operation on these function buttons. The smart terminal may respond to the selection operation to launch a corresponding function.
Aspects of the disclosure provide a method for launching a function of an application. The method includes displaying a floating action icon corresponding to the application, when the application is running in foreground, obtaining, when an operation on the floating action icon is detected, operation information of the detected operation, and launching a target function associated with the operation information of the detected operation.
In an embodiment, before obtaining, when the operation on the floating action icon is detected, the operation information of the detected operation, the method includes obtaining a binding list of the application from stored binding lists of a plurality of applications. The binding list of the application is indicative of a binding relationship between operation information of a plurality of operations on the floating action icon and functions of the application.
In another embodiment, before displaying the floating action icon corresponding to the application, the method includes creating a binding list of the application to associate at least one of functions to be bound for the application to corresponding operation information, when a binding operation for the floating action icon of the application is detected.
In an example, the operation on the floating action icon includes at least one of single-click operation, double-click operation, swipe operation, and long-press operation.
According to an aspect of the disclosure, to launch the target function associated with the operation information of the detected operation, the method includes displaying, when the operation information is indicative of specifying functions for the application, a plurality of child icons in a preset range of the floating action icon, wherein each of the child icon is hound with a respective function of the application. In an embodiment, the method includes launching, when a selection operation on a child icon is detected, a function bound with the child icon. In an example, the plurality of child icons are displayed on an arc with the floating action icon as a center and a preset distance as a radius.
In an embodiment, the method further includes removing the plurality of child icons from display when an operation with the operation information that is indicative of specifying functions for the application is detected again on the floating action icon.
Aspects of the disclosure provide a device for launching a function of an application.. The device includes a processor; and a memory for storing processor-executable instructions. The processor is configured to display a floating action icon corresponding to the application, when the application is running in foreground, obtain, when an operation on the floating action icon is detected, operation information of the detected operation, and launch a target function associated with the operation information of the detected operation.
Aspects of the disclosure provide a non-transitory computer readable medium storing program instructions for causing a processor to execute operations for launching a function of an application. The operations include displaying a floating action icon corresponding to the application, when the application is running in foreground, obtaining, when an operation on the floating action icon is detected, operation information of the detected operation, and launching a target function associated with the operation information of the detected operation.
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
Reference will now be made in detail to example embodiments, examples of which are illustrated in the accompanying drawings. The following description refers to the accompanying drawings in which same numbers in different drawings represent same or similar elements unless otherwise described. The implementations set forth in the following description of example embodiments do not represent all implementations consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with aspects related to the present disclosure as recited in the appended claims.
In step 101, when it is detected that an application is running in the foreground, a floating action icon corresponding to the application is displayed.
In step 102, when it is detected any operation on the floating action icon, operation information of the operation is obtained.
In step 103, a target function, which is a function that matches the operation information, is launched according to the operation information of the operation,
By performing different operations on a floating action icon corresponding to an application, the present disclosure may launch a function that matches a corresponding operation, so that the way to launch a function of an application can be more convenient, and thus improving the launching efficiency.
Alternatively, before obtaining, when any operation on the floating action icon is detected, operation information of the operation, the method may further include: obtaining a binding list of the application from stored binding lists of a plurality of applications, wherein the binding list of the application is used for indicating a binding relationship between operation information and a function of the application.
Alternatively, before the floating action icon corresponding to the application is displayed, the method may further include: creating a binding list of the application based on at least one of functions to be bound of the application and operation information corresponding to each of the functions to be bound, when a binding operation for the floating action icon of the application is detected.
Alternatively, the operation may include single-click operation, double-click operation, swipe operation and long-press operation.
Alternatively, launching the target function according to the operation information of the operation may include: displaying, if the operation information is specified operation information, a plurality of child icons within a preset range of the floating action icon.
Alternatively, after launching the target function according to the operation information of the operation, the method may further include: launching, when a selection operation on any of the plurality of child icons is detected, a function bound with the child icon corresponding to the selection operation.
Alternatively, the plurality of child icons are displayed on an arc with the floating action icon as a center and a preset distance as a radius,
Alternatively, after the plurality of child icons are displayed, the method may further include: stopping displaying the plurality of child icons when an operation having the specified operation information on the floating action icon is detected again.
All of the alternative technical solutions described above may form alternative embodiments of the present disclosure in any combination, and will not be described in detail herein.
In step 201, a binding list of the application is created based on at least one of functions to be bound of the application and operation information corresponding to each of the functions to be bound, when a binding operation for the floating action icon of the application is detected.
In the embodiments of the present disclosure, the floating action icon with mobility is displayed on a display interface of the terminal, that is, when a movement operation on the floating action icon is detected, the floating action icon is controlled to move along with a position indicated by the movement operation until it ends, and then the floating action icon is positioned at an end point position of the movement operation.
In the embodiments of the present disclosure, each of applications installed on the terminal may bind a plurality of functions contained in a respective application with operation information of the floating action icon, so that it can launch bound functions by performing operation on the floating action icon, and thereby achieving a quick launching for functions of the application. The terminal may store binding lists of a plurality of applications. In particular, for any of the applications, when a binding operation for the floating action icon of the application is detected, at least one of functions to be bound and operation information corresponding to each of the functions to be bound are obtained. A binding list of the application is then created, based on the at least one of functions to be bound and operation information corresponding to each of the functions to be bound.
Wherein, the operation information is used for indicating an operation type of the operation. Different types of operations on the floating action icon correspond to different operation information Operations on the floating action icon may include single-click operation, double-click operation, swipe operation, long-press operation and so on. The embodiments of the present disclosure are not limited in this respect. Each of operations may be predefined.
Wherein, the binding process described above in step 201 may be triggered during an installation process of the terminal, or otherwise may be triggered when a click operation on the floating action icon binding button is detected in a setting list of the application after the installation of the application. The embodiments of the present disclosure will not limit the specific binding time. The detailed binding process in step 201 may include: an option for binding the floating action icon is displayed during the installation of the application; the user may select functions to be bound in the application according to his or her habits, and determine which function is bound with which type of operation, thereby enabling the terminal to bind functions with operation information of corresponding operations, so that the binding list of the application is obtained. Indeed, the binding process may also proceed during use of the application. The embodiments of the present disclosure are not limited in this respect. Alternatively, functions to be bound of the application and corresponding operation information may be built in a development package by a developer, enabling the installation process of the application to accomplish the binding of the floating action icon automatically.
The step 201 described above is a binding process, which can only be implemented before the obtainment of the binding list in step 202. The embodiments of the present disclosure are not limited in this respect. Indeed, the user may also perform modification operation on the binding list during any use process in order to make functions triggered by the floating action icon more suitable for the user's habit.
In step 202, the floating action icon corresponding to the application is displayed when it is detected that the application is running in the foreground. And then the binding list of the application is obtained from stored binding lists of a plurality of applications, wherein, the binding list of the application is used for indicating a binding relationship between operation information and a function of the application.
In the embodiments of the present disclosure, the terminal would constantly detect the application currently running in the foreground, or obtain the application which is just switched to the foreground when a switch of applications occurs, and then display the floating action icon corresponding to the application, that is, when the application enters the foreground and runs, the terminal may begin to apply the binding relationship between operation information of the floating action icon and a function of the application. Wherein, the floating action icon is displayed as suspending on the application interface of the application. A size of display range of the floating action icon may be predefined, and a shape thereof may be circular, elliptical, rectangular, etc. The embodiments of the present disclosure are not limited in this respect.
In particular, when it is detected that the application is running in the foreground, stored binding lists of a plurality of applications may be accessible by a preset interface, and thereby obtaining the binding list of the application. Then, a binding relationship between operation information and a function of the application indicated by the binding list of the application is used, so that whenever the terminal detects an operation on the floating action icon, it can launch a corresponding function of the application.
It is noted that when it is detected that the application enters the background or stops running, the terminal may detect an application switched to the foreground currently, and begin to apply a binding list of the application currently running in the foreground, wherein functions bound with the binding list may or may not be different with those of the application entering the background. The present disclosure is not limited to this respect.
In another embodiment, the terminal may provide an open button for bound functions of a plurality of applications. When it is detected that the user performs open operation on any of the bound functions, the terminal may turn on a bound function of a corresponding application, that is, only for an application which has turned its bound functions on, the terminal can perform the operation for displaying the floating action icon corresponding to the application when it is running in the background is detected. Instead, for an application which hasn't turned its bound functions on, the terminal will not display a corresponding floating action icon.
In step 203, when any operation on the Bloating action icon is detected, operation information of the operation is obtained.
In the embodiments of the present disclosure, when any operation on the floating action icon is detected, the terminal may generate operation information corresponding to the operation. For example, when a single-click operation on the floating action icon is detected, the terminal will generate operation information corresponding to the single-click operation. The specific content of operation information may be preset by a system. The content of operation information may be, for example, numerals, character string or special characters, etc. The embodiments of the present disclosure are not limited in this respect.
In case that the content of operation information is numerals, operation information may be preset to “1” for single-click operation, “2” for double-click operation, “3” for swipe operation and so on. The terminal may learn a corresponding operation by obtaining generated operation information. For example, if the operation information obtained by the terminal is “1”, then the corresponding operation is determined to be single-click operation.
In step 204, a target function is launched according to the operation information of the operation, wherein the target function is a function that matches the operation information.
In the embodiments of the present disclosure, querying whether a function that matches the operation information exists in the binding list of the application is based on the operation information of the operation. If so, then the function that matches the operation information, that is, the target function is obtained and launched.
For example, in terms of social application A, its binding list is as shown in list 1. When a long-press operation on a floating action icon is detected, the terminal may learn the target function is “scan function” from list 1, then launch the scan function and accordingly display a display interface thereof. When a single-click operation on the floating action icon is detected, the terminal may learn the target function is “photograph and send to status information presentation platform”, then launch the function for “photograph and send to status information presentation platform”, and accordingly display a message editing interface thereof.
In another embodiment, it can use another way to display the floating action icon. For example, the floating action icon may contain a swiping region which can swipe within the floating action icon. Swiping operations towards different directions of the swiping region may be bound with corresponding functions of the application, so that when a swiping operation of the swiping region is detected, it may launch a corresponding function based on the swiping direction. For example, when a swipe up operation of the swiping region is detected, it may launch the scan function, and when a swipe down operation of the swiping region is detected, launch the function for “add friends”, and so on. The embodiments of the present disclosure will not limit the functions corresponding to operations of the swiping region.
By performing different operations on a floating action icon corresponding to an application, the method provided in the embodiments of the present disclosure may launch a function that matches a corresponding operation, so that the way to launch a function of an application can be more convenient, and thus improving the launching efficiency.
Based on various operations on the floating action icon, the method for launching a function of an application described above may launch a function that matches operation information of the operation. In another embodiment, for purpose of increasing diversity and accuracy for launching a function of an application, the present disclosure may also display a plurality of child icons around the floating action icon by performing a trigger operation on the floating action icon, and bind functions of the application with the plurality of child icons of the floating action icon, so that the functions bound with the child icons may be launched based on operations on the child icons. The process is detailed below
In step 301, a floating action icon corresponding to an application is displayed, when it is detected that the application is running in the foreground.
Wherein, each of child icons is bound with a different function of the application. The terminal may store a list of functions to be bound for each application, and the list of functions to be bound is used for storing a plurality of functions to be bound of the application.
In particular, when it is detected that the application is running in the foreground, the list of functions to be bound of the application is obtained from stored lists of functions to be bound of a plurality of applications. Then, a respective child icon corresponding to each of the functions is generated according to a plurality of functions included in the list of functions to be bound of the application.
Wherein, the binding time and process for functions of the application with the child icons may be similar to the binding time and process in step 201 described above, and will not be repeated herein.
In step 302, when any operation on the floating action icon is detected, operation information of the operation is obtained.
This step is similar to step 203 described above and will not be repeated herein.
In step 303, when the operation information is specified operation information, a plurality of child icons may be displayed in a preset range of the floating action icon, wherein each of the plurality of child icons is hound with a different function of the application.
In the embodiments of the present disclosure, when the operation information is specified operation information, a target function is to display child icons.
Wherein, the specified operation information is used for indicating a specified operation on the floating action icon. The specified operation may be single-click operation, double-click operation, swipe operation, long-press operation and the like. The embodiments of the present disclosure are not limited in this respect.
In the embodiments of the present disclosure, when specified operation on the floating action icon is detected, the terminal may display a plurality of child icons. Subsequently, when a selection operation on any of the plurality of child icons is detected, the terminal may launch a function bound with the child icon corresponding to the selection operation. The function bound with the child icon may be, for example, “return to homepage” function, “return to the previous page” function, “photograph and upload” function, “transfer” function, etc. The embodiments of the present disclosure are not limited in this respect.
The plurality of child icons may be evenly distributed on an arc or distributed in another way, wherein the arc may be with the floating action icon as a center and a preset distance as a radius. Further, a size of each of the child icons may or may not be the same. For example, according to launching frequency of a function, a size of a child icon corresponding to a function which is frequently launched may be increased, such that it may obviously display the child icon in the interface, thus raising the accuracy of click. Certainly, the child icons corresponding to different functions may also be displayed according to launching frequency of functions from high to low in a clockwise direction.
A distance between different child icons may be preset, and a shape of each of the child icons may be circular, elliptical, rectangular, etc. The embodiments of the present disclosure are not limited in this respect. In a display range of each of the child icons may also display a preset icon which is used for indicating a function bound with the corresponding child icon. For example, when a function bound with a child icon is “return to homepage”, the preset icon may be rounded rectangle or the like.
It is noted that if the number of child icons is too large to be displayed entirely on an arc, portions of the child icons may be displayed on arcs of a plurality of concentric circles, wherein a radius of each of the arcs increments from inside and out, displaying as a nested effect.
In order to avoid covering the application interface, when an operation having specified operation information on the floating action icon is detected again, it may stop displaying the plurality of child icons. As the display of the plurality of child icons is stopped, it may set a corresponding animation effect, for example, each of the child icons may move towards the floating action icon at a preset speed, until it overlaps with the floating action icon, then the display is stopped. The embodiments of the present disclosure are not limited in the way to stop displaying the child icons.
Wherein, the operation for stopping the display of child icons may or may not be the same as that for displaying child icons. The embodiments of the present disclosure are not limited in this respect.
In another embodiment, it may display the floating action icon in another way. For example, the floating action icon may be a swiping region, a swiping range of that may be a range of an arc locating the child icons. The swiping region may swipe from a center of a circle to positions locating the child icons. When it is detected that the swiping region overlaps with any position of the child icons, or the swiping region overlaps with region of any of the child icons, it may launch a function bound with the corresponding child icon.
The user may set the ways to trigger the floating action icon with respect to the embodiments illustrated in
By performing different operations on a floating action icon corresponding to an application, the method provided in the embodiments of the present disclosure may launch a function that matches a corresponding operation, so that the way to launch a function of an application can be more convenient, and thus improving the launching efficiency. Further, a plurality of child icons which is used for triggering different functions may be displayed by displaying the floating action icon and performing a trigger operation thereon. Then, according to a trigger operation on any of the child icons, a corresponding function may be launched, as each of the child icons corresponds to a function. Thus, the accuracy for launching a function of an application can be greatly improved.
Wherein, the display module 501 which is connected to the first obtainment module 502 is used for displaying a floating action icon corresponding to an application when it is detected that the application is running in the foreground; the first obtainment module 502 which is connected to the launching module 503 is used for obtaining, when any operation on the floating action icon is detected, operation information of the operation; the launching module 503 is used for launching a target function according to the operation information of the operation, wherein the target function is a function that matches the operation information.
Alternatively, with reference to
Alternatively, with reference to
Alternatively, the operation may include single-click operation, double-click operation, swipe operation and long-press operation.
Alternatively, the launching module 503 may also be used for displaying a plurality of child icons in a preset range of the floating action icon, if the operation information is specified operation information, wherein each of the child icons is bound with a respective function of the application.
Alternatively, the launching module 503 may also be used for launching, when a selection operation on any of the plurality of child icons is detected, a function bound with the child icon corresponding to the selection operation,
Alternatively, the plurality of child icons is displayed on an arc with the floating action icon as a center and a preset distance as a radius.
Alternatively, the launching module 503 may also be used for stopping displaying the plurality of child icons when an operation having the specified operation information on the floating action icon is detected again.
By performing different operations on a floating action icon corresponding to an application, the device provided in the embodiments of the present disclosure may launch a function that matches a respective operation, so that the way to launch a function of the application can be more convenient, and thus improving the launching efficiency.
With respect to the device provided in the embodiments described above, implementations for performing operations by each of modules have been discussed in detail in the embodiments with respect to the method, and will not be repeated herein.
The device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 typically controls overall operations of the device 800, such as the operations associated with display, data communications, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps in the above described methods. Moreover, the processing component 802 may include one or more modules which facilitate the interaction between the processing component 802 and other components. For instance, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support the operation of the device 800. Examples of such data include instructions for any applications or methods operated on the device 800, contacts data, telephone book data, messages, photos, videos, etc. The memory 804 may be implemented using any type of volatile or non-volatile memory devices, or a combination thereof, such as a static random access memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic memory, a flash memory, a magnetic or optical disk.
The power component 806 provides power to various components of the device 800. The power component 806 may include a power management system, one or more power sources, and any other components associated with the generation, management, and distribution of power in the device 800.
The multimedia component 808 includes a screen providing an output interface between the device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes the touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may not only sense a boundary of a touch or swipe action, but also sense a period of time and a pressure associated with the touch or swipe action. In some embodiments, the multimedia component 808 may include a front-facing camera and/or rear camera. When the device 800 is in operation mode, such as in shooting mode or video mode, the front-facing camera and/or rear camera may receive multimedia data from outside. Each of the front-facing camera and the rear camera may be a fixed optical lens system, or focus or optical zoom-enabled.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a microphone (“MIC”) configured to receive an external audio signal when the device 800 is in an operation mode, such as a calling mode, a recording mode and a voice recognition mode. The received audio signal may be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 further includes a speaker to output audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, such as a keyboard, a click wheel, buttons, and the like. The buttons may include, but are not limited to, a home button, a volume button, a starting button, and a locking button.
The sensor component 814 includes one or more sensors to provide status assessments of various aspects of the device 800. For instance, the sensor component 814 may detect an open/closed status of the device 800, relative positioning of components, e.g., the display and the keypad, of the device 800, a change in position of the device 800 or a component of the device 800, a presence or absence of user contact with the device 800, an orientation or an acceleration/deceleration of the device 800, and a change in temperature of the device 800. The sensor component 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor component 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 814 may also include an accelerometer sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communication, wired or wirelessly, between the device 800 and other devices. The device 800 can access a wireless network based on a communication standard, such as WiFi, 2G, or 3G, or a combination thereof In one example embodiment, the communication component 816 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In one example embodiment, the communication component 816 further includes a near field communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on a radio frequency identification (RFID) technology, an infrared data association (IrDA) technology, an ultra-wideband (UWB) technology, a Bluetooth (BT) technology, and other technologies.
In example embodiments, the device 800 may be implemented with 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, micro-controllers, microprocessors, or other electronic components, for performing the above described methods.
In example embodiments, there is also provided a non-transitory computer readable storage medium including instructions, such as the memory 804 including instructions, executable by the processor 820 in the device 800, for performing the above-described methods. For example, the non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disc, an optical data storage device, and the like.
A non-transitory computer readable storage medium having stored therein instructions that, when executed by a processor of a mobile terminal, causes the mobile terminal to perform the above described method for launching application functions.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the disclosures herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following the general principles thereof and including such departures from the present disclosure as come within known or customary practice in the art. It is intended that the specification and embodiments be considered as illustrative only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be appreciated that the present disclosure is not limited to the exact construction that has been described above and illustrated in the accompanying drawings, and that various modifications and changes can be made without departing from the scope thereof. It is intended that the scope of the invention only be limited by the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
201610227323.3 | Apr 2016 | CN | national |