The present invention relates to the technical field of communications, and in particular to a method and a device for activating and controlling an application in a multi-screen system, and a mobile terminal thereof.
Nowadays, the screen of mobile terminal is becoming bigger and bigger, and the multi-screen technology of mobile terminal is growing mature. However, since most applications are developed based on a single screen, many applications will cause conflict during the running process when the multi-screen technology is adopted. For example, one application turns on WIFI during usage while another application turns off WIFI during usage, which brings unnecessary troubles to users. These problems will not occur in the single-screen application, because applications are activated and turned in turn in the single-screen mode. For example, if to use the WIFI function, a sound application will turn on WIFI when activated and turn off WIFI when closed. However, in the dual-screen mode, since the current application has not been closed while another application is activated, the whole process is disturbed. Actually, these conflicts ultimately are caused by permissions conflict. However, existing activation process will not check the permissions of applications, but check certain permission when this permission is needed.
Therefore, when the multi-screen technology is used, how to resolve the problem of permissions conflict occurring among applications that coexist in a foreground simultaneously becomes a technical problem to be solved.
The present invention provides a method and a device for activating and controlling an application in a multi-screen system, and a mobile terminal, to solve the problem of permission conflict occurring among applications that coexist in a foreground simultaneously when the multi-screen technology is adopted in related art.
According to one aspect of the embodiment of the present invention, a method for activating and controlling an application in a multi-screen system is provided, including:
Preferably, in the method of the embodiment of the present invention, the step of detecting whether there is a permission in the permission conflicting with the permission of a specified application and, if there is a conflicting permission, conducting activation and control on the application to be activated in accordance with a preset control action specifically includes:
Preferably, in the method of the embodiment of the present invention, the action indication includes:
Preferably, the method of the embodiment of the present invention further includes: when the permission-action list is called by a user, an action change indication towards one or more permissions given by the user is acquired so as to update the current permission-action list;
Preferably, the method of the embodiment of the present invention further includes: if there is no conflicting permission, the application to be activated is activated according to a normal activation flow.
According to another aspect of the embodiment of the present invention, a device for activating and controlling an application in a multi-screen system is provided, including:
Preferably, in the device of the embodiment of the present invention:
Preferably, in the device of the embodiment of the present invention, the action indication includes:
Preferably, the device of the embodiment of the present invention further includes:
Preferably, in the device of the embodiment of the present invention, the control unit is further configured to activate the application to be activated according to a normal activation flow if the detection unit does not detect a conflicting permission.
In addition, the embodiment of the present invention also provides a mobile terminal, which is provided with a device provided by the embodiment of the present invention for activating and controlling an application in a multi-screen system.
The embodiment of the present invention has advantages as follows:
In order to better understand the embodiments in the present invention or the technical scheme in related art, accompanying drawings needed in the embodiments of the present invention or in the description of related art are simply illustrated below; obviously, those accompanying drawings described below are only part embodiments of the present invention; for the ordinary staff in the art, other accompanying drawings can be obtained according to these accompanying drawings without creative labor.
The technical scheme provided in the embodiment of the present invention is described below clearly and completely in conjunction with the accompanying drawings mentioned in the embodiment of the present invention; obviously, the described embodiment is part embodiments of the present invention only, but all the embodiments. Based on the embodiment of the present invention, all other embodiments obtained by the ordinary staff in the art without creative efforts are intended to be included in the scope of protection of the present invention.
In order to resolve the problem of permission conflict probably occurring among multiple open applications coexisting in a foreground simultaneously when the multi-screen technology is used, the embodiment of the present invention provides a method and a device for activating and controlling an application in a multi-screen system, and a mobile terminal. The embodiment of the present invention changes the activation process of applications, specifically, it conducts a permission conflict judgement and conducts corresponding activation and control according to the conflicting permission before an application is activated, in this way, preventive measures can be taken before the application is activated, thereby avoiding the permission conflict occurring among applications coexisting in a foreground simultaneously.
The embodiment of the present invention provides a method for activating and controlling an application in a multi-screen system, which as shown in
S101: acquiring the permissions of an application to be activated.
The method to acquire the permissions of an application might be but not limited to calling through a system interface.
S102: detecting whether there is a permission in the permissions conflicting with the permissions of a specified application, wherein the specified application refers to an application that coexists with the application to be activated in a foreground after the application to be activated is activated. That is to say, the permission detection mentioned in the embodiment of the present invention is just for the applications probably running in the foreground simultaneously, but for the application running in the background.
S103: if there is a conflicting permission, conducting activation and control on the application to be activated in accordance with a preset action indication corresponding to the conflicting permission.
Preferably, if there is no conflicting permission, the alternative scheme of this step is: activating the application to be activated according to a normal activation flow.
Preferably, in this embodiment, the action indication includes but not limited to:
It should be noted that the above action indications are examples only, but exhaustively; those skilled in the art can configure settings flexibility according to specific needs; the embodiment of the present invention does not limit the specific operation of the action indication.
Preferably, in the embodiment of the present invention, a preferred implementation is provided for the permission conflict judgement, specifically as below:
That is to say, in this preferred implementation, a mapping table is preconfigured for a conflicting permission and an action; when to conduct a conflict judgement, it is only needed to conduct corresponding control on the permission contained in the mapping table; this judgement method is simple, easy and greatly improves the judgement detection efficiency,
Preferably, in the embodiment of the present invention, an update scheme is provided for the permission-action list, specifically as below: when the permission-action list is called by a user, acquiring an action change indication towards one or more permissions given by the user so as to update the current permission-action list;
To sum up, the method in this embodiment changes the activation process of applications, specifically, it first acquires the permission of an application to be activated, then judges whether the permission is conflicting with the permission of an application that is activated and will coexist with the to-be-activated application in a foreground, then adopts a corresponding action if there is a conflicting permission, and finally enters the original application activation process after ensuring there is no problem (a user confirms or adopts some measures to ensure that no conflict will occur), in this way, preventive measures can be taken before the application is activated, thereby enhancing system stability and not affecting user experience.
The embodiment of the present invention provides a method for activating and controlling an application in a multi-screen system, which is a further illustration of the method described in Embodiment 1 and specifically includes the following control process:
1. Pre-configuration:
Preferably, engineers construct a permission-action list according to experiences, to be called during the following permission control.
The permission-action list allows a user to modify, that is, it is updated according to the choice of the user. The format of the permission-action list is that each permission corresponds to a corresponding responding action, for example, Camera hardware control permission-disable permission to activate, Bluetooth enabling permission-alarm.
2. Activating the control process of a new application in a multi-screen mode:
Step 1: acquiring the permission list of all current applications displayed (for example, in a dual-screen mode, supposing the application running in the foreground is A and B).
Step 2: acquiring the permission list of an application to be activated (C).
Step 3: acquiring the common permission of Application C and the application that coexists with Application C in the foreground after Application C is activated; if there is no common permission, enter Step 6 (for example, in a dual-screen mode, Application B is switched to Application C, if activated successfully application A and Application C coexist in the foreground, at this time, Application A is the coexisting application, here, Application C and Application A might be the same application).
Step 4: judging whether the common permission is contained in the permission-action list; if not, enter Step 6; otherwise, enter Step 5.
Step 5: for the permission contained in the permission-action list, executing the corresponding action in the list.
For example, if a certain permission corresponds to an action “forbidding activating the application to be activated”, do not activate Application C, directly end the process; if a certain permission corresponds to an action “alarm”, let the user to select through an alarm message; if the user selects end, then the activation process is ended; if the user selects ignore, enter Step 6.
Step 6: entering the process of activating Application C normally.
To make the implementation process of the present invention more clear, a specific application example is provided below, with the application scene of dual-screen system, on which the applications currently displayed are QQ and short message interface. At this time, the screen on which the short message interface is located is changed to activate WeChat through application switch.
The specific control process of the application example is as follows:
Step 1: acquiring the permissions of QQ, for example, GPS, hardware control (audio, video, camera and so on), network communication and other permissions.
Step 2: acquiring the permissions of WeChat, for example, network communication, GPS, and hardware control and other permissions.
Step 3: comparing the permissions of QQ and WeChat, to acquire the common permission.
Obviously, the two applications have many common permissions, however some common permission can coexist, for example, network communication, while some common permission will cause resource conflict when coexisting, for example, GPS permission, camera in the hardware control and other permissions. Therefore, it is needed to call a permission-action list to acquire the corresponding permission that probably will cause permission conflict.
Step 4: calling a permission-action list, determining which common permission is contained in the list; for the permission contained in the list, executing an operation according to the corresponding action.
Supposing the common permission contained in the permission-action list is GPS permission and Camera permission; then, the action corresponding to GPS in the permission-action list is warning (because GPS resource conflict has a small impact on the usage of users, thus it can be set as warning); the action corresponding to camera in the permission-action list is “activate after removing this permission”. During specific activation and control, an alarm message of GPS permission conflict will be sent to a user, for the user to decide whether to ignore the conflict or to perform other control; for the camera permission, during the application activation the camera permission will be removed.
Step 5: temporarily disabling the camera permission of the to-be-activated application (WeChat) through a system interface, then activating WeChat, and recovering the camera permission after the WeChat application exits.
Corresponding to Embodiment 1, the embodiment of the present invention provides a device for activating and controlling an application in a multi-screen system, which as shown in
Preferably, in this embodiment, the control unit is 230 further configured to activate the application to be activated according to a normal activation flow if there is no conflicting permission.
Preferably, in this embodiment, the action indication includes but not limited to:
It should be noted that the above action indications are examples only, but exhaustively; those skilled in the art can configure settings flexibility according to specific needs; the embodiment of the present invention does not limit the specific operation of the action indication.
Preferably, in the embodiment of the present invention, a preferred implementation is provided for the permission conflict judgement, specifically as below:
Preferably, in the embodiment of the present invention, an update scheme is provided for the permission-action list; as shown in
The embodiment of the present invention provides a mobile terminal, which is provided with a device provided in Embodiment 3 for activating and controlling an application in a multi-screen system, thus the mobile terminal also can realize corresponding technical effects; since the foregoing content has given a detailed description, no further description is needed here.
Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. In this way, if these changes and modifications made to the present invention are included in the scope of the claims or equivalent technologies of the present invention, these changes and modifications shall be included in the present invention.
The technical scheme provided by the embodiment of the present invention is applicable to the technical field of communications, which changes the activation process of applications. Before a certain application is activated, a permission conflict judgement is conducted, and a corresponding activation and control is conducted according to the conflicting permission, so that preventive measures can be taken before the application is activated, thereby avoiding the problem of permission conflict which may be caused when two applications coexist in a foreground simultaneously.
Number | Date | Country | Kind |
---|---|---|---|
201310467527.0 | Oct 2013 | CN | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2014/075854 | 4/21/2014 | WO | 00 |