CN106155676B - Access control method and device for application program and terminal - Google Patents

Access control method and device for application program and terminal Download PDF

Info

Publication number
CN106155676B
CN106155676B CN201510205712.1A CN201510205712A CN106155676B CN 106155676 B CN106155676 B CN 106155676B CN 201510205712 A CN201510205712 A CN 201510205712A CN 106155676 B CN106155676 B CN 106155676B
Authority
CN
China
Prior art keywords
application program
terminal screen
interactive window
target
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510205712.1A
Other languages
Chinese (zh)
Other versions
CN106155676A (en
Inventor
蒋鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201510205712.1A priority Critical patent/CN106155676B/en
Publication of CN106155676A publication Critical patent/CN106155676A/en
Application granted granted Critical
Publication of CN106155676B publication Critical patent/CN106155676B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention provides an access control method, a device and a terminal of an application program, wherein the method comprises the following steps: when an access request for a target application program in a terminal is received, acquiring an interactive window of the target application program; acquiring a target position of a shortcut icon corresponding to the target application program in a terminal screen; configuring an output initial position of the interactive window in the terminal screen according to the target position; and controlling the interactive window to be enlarged and expanded from the output starting position in an animation mode in the terminal screen. According to the invention, the interactive window of the target application program is displayed in a soft and natural animation mode, so that the screen of the terminal is prevented from flickering or blocking, the intelligence of access control is improved, and the performance of the terminal is improved.

Description

Access control method and device for application program and terminal
Technical Field
The invention relates to the technical field of internet, in particular to the technical field of internet application programs, and particularly relates to an access control method, device and terminal of an application program.
Background
With the development of internet technology, terminals such as mobile phones and smart wearable devices are increasingly widely used. The terminal can be installed and run various applications, including but not limited to: an instant messaging application, an SNS (social networking Services) application, a game application, a security application, and the like. The user can access an application program in the terminal, and in response to an access request of the user to the application program, the interactive window of the accessed application program needs to be output in the terminal screen, and the interactive window of the accessed application program can be used for displaying the interactive interface of the accessed application program, so that the user can use the accessed application program through the interactive interface. In the prior art, when an access request of a user for an application program is received, an interactive window of the accessed application program is directly output in a terminal screen, so that the terminal screen immediately jumps to display the interactive window of the accessed application program.
Disclosure of Invention
The embodiment of the invention provides an access control method and device of an application program and a terminal, which display an interactive window of a target application program in a soft and natural animation mode, avoid flicker or blockage of a terminal screen, improve the intelligence of access control and improve the performance of the terminal.
A first aspect of an embodiment of the present invention provides an access control method for an application program, where the method may include:
when an access request for a target application program in a terminal is received, acquiring an interactive window of the target application program;
acquiring a target position of a shortcut icon corresponding to the target application program in a terminal screen;
configuring an output initial position of the interactive window in the terminal screen according to the target position;
and controlling the interactive window to be enlarged and expanded from the output starting position in an animation mode in the terminal screen.
A second aspect of an embodiment of the present invention provides an access control device for an application program, which may include:
the interactive window acquisition unit is used for acquiring an interactive window of a target application program when receiving an access request to the target application program in the terminal;
the target position acquisition unit is used for acquiring the target position of the shortcut icon corresponding to the target application program in a terminal screen;
the initial configuration unit is used for configuring the output initial position of the interactive window in the terminal screen according to the target position;
and the starting control unit is used for controlling the interactive window to be amplified and expanded from the output starting position in an animation mode in the terminal screen.
A third aspect of an embodiment of the present invention provides a terminal, which may include the access control device for an application program according to the second aspect.
The embodiment of the invention has the following beneficial effects:
in order to respond to an access request of a target application program in a terminal, an output starting position of an interactive window in a terminal screen is configured according to a target position of a shortcut icon corresponding to the target application program in the terminal screen, the interactive window is controlled to be enlarged and unfolded from the output starting position in an animation mode in the terminal screen, and the interactive window of the target application program is displayed from the determined output starting position in a soft and natural animation mode, so that flickering or blockage caused by direct and hard switching jump of the terminal screen is avoided, the intelligence of access control is improved, and the performance of the terminal is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of an access control method for an application according to an embodiment of the present invention;
fig. 2a is a schematic display diagram of a terminal screen according to an embodiment of the present invention;
fig. 2b is a schematic display diagram of another terminal screen according to an embodiment of the present invention;
FIG. 3 is a schematic output diagram of an interactive window of a target application according to an embodiment of the present invention;
fig. 4 is a flowchart of another access control method for an application according to an embodiment of the present invention;
FIG. 5 is a schematic diagram illustrating closing of an interactive window of a target application according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an access control apparatus for an application according to an embodiment of the present invention;
FIG. 7 is a schematic structural diagram of an embodiment of the target position obtaining unit shown in FIG. 6;
FIG. 8 is a schematic diagram of an embodiment of the start configuration unit shown in FIG. 6;
fig. 9 is a schematic structural diagram of another embodiment of the start configuration unit shown in fig. 6.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the embodiment of the invention, the terminal can be a notebook computer, a mobile phone, a PAD (tablet computer), a vehicle-mounted terminal, intelligent wearable equipment and other equipment. The terminal can be installed and run various applications, including but not limited to: instant messaging applications, SNS applications, gaming applications, security applications, and the like. The user may access applications in the terminal, such as: the user may click on a shortcut icon of a target application in the terminal screen to access the target application. It should be noted that the target application may be any application installed and running in the terminal.
In response to an access request of a user to a target application program, an interactive window of the target application program needs to be output in a terminal screen, and an interactive interface of the target application program can be displayed in the interactive window of the target application program, so that the user can use the target application program through the interactive interface. The access control scheme of the application program of the embodiment of the invention adopts a soft and natural animation mode to display the interactive window of the target application program, thereby avoiding the flicker or blockage of the terminal screen, improving the intelligence of access control and improving the performance of the terminal.
Based on the above description, the access control method for the application program according to the embodiment of the present invention will be described in detail below with reference to fig. 1 to 5. It should be noted that the following flows of the methods shown in fig. 1 to fig. 5 may be executed by an access control device for an application program provided in an embodiment of the present invention, where the access control device may be an application program with access control processing capability in a terminal, for example: security applications in the terminal, system management applications, system acceleration applications, etc.
Referring to fig. 1, a flowchart of an access control method for an application according to an embodiment of the present invention is shown; the method may comprise the following steps S101-S104.
S101, when receiving an access request to a target application program in a terminal, acquiring an interactive window of the target application program.
The target application program can be any application program installed and running in the terminal, including but not limited to: an instant messaging application, an SNS application, a gaming application, a security application, and the like. The user may access applications in the terminal, such as: the user may click on a shortcut icon of a target application on the terminal desktop to access the target application. In this step, when an access request of a user to the target application program is received, in response to the access request, an interactive window of the target application program needs to be output in a terminal screen, where the interactive window of the target application program may be used to display an interactive interface of the target application program, so that the user may use the target application program through the interactive interface, and therefore, in this step, the interactive window of the target application program needs to be obtained.
And S102, acquiring a target position of the shortcut icon corresponding to the target application program in a terminal screen.
At least one application program can be installed and run in the terminal, including but not limited to: instant messaging applications, SNS applications, gaming applications, security applications, and the like. Each application program in the terminal corresponds to a shortcut icon, and the shortcut icons corresponding to each application program can be arranged and displayed in the terminal screen according to a certain sequence; for example: the shortcut icon corresponding to each application program can be arranged and displayed in the terminal screen according to the sequence of the installation time of each application program; the following steps are repeated: the shortcut icons corresponding to each application program in the terminal screen can be randomly sorted and displayed; and so on, the shortcut icon corresponding to each application program occupies one position in the terminal screen, please refer to fig. 2a together, which is a display diagram of the terminal screen provided by the embodiment of the present invention; the terminal comprises an application program A, an application program B and an application program C, wherein the shortcut icon a corresponding to the application program A, the shortcut icon B corresponding to the application program B and the shortcut icon C corresponding to the application program C are included. As shown in fig. 2a, the shortcut icon b, and the shortcut icon c all occupy one position in the terminal screen. The shortcut icon corresponding to each application program may be changed in position along with the dragging of the user, please refer to fig. 2b, which is a display diagram of another terminal screen provided in the embodiment of the present invention; as shown in fig. 2b, the shortcut icon b is positionally changed with the dragging of the user. The terminal stores the position of the shortcut icon corresponding to each application program in the terminal screen, and when the position of the shortcut icon corresponding to each application program is changed, the stored position is updated in time. In this step, the target position of the shortcut icon corresponding to the target application program in the terminal screen can be obtained from the storage space of the terminal. It should be noted that the target position refers to a coordinate range formed by coordinates of each pixel point included in the shortcut icon corresponding to the target application program in the terminal screen.
S103, configuring an output initial position of the interactive window in the terminal screen according to the target position.
In response to the access request, it is necessary to output an interactive window of the target application in a terminal screen, and the output start position defines an output start point of the interactive window in the terminal screen, that is, the output start position defines from which position in the terminal screen the interactive window is output. In this step, the output starting position of the interactive window in the terminal screen can be configured according to the target position.
And S104, controlling the interactive window to be enlarged and expanded from the output initial position in an animation mode in the terminal screen.
The animation of the interactive window for enlarging and expanding can be set according to the actual situation, for example: it may be set as an animation in which fireworks burst, or it may be set as an animation in which water waves are blown, or the like. Please refer to fig. 3, which is a schematic output diagram of an interactive window of a target application according to an embodiment of the present invention; as shown in fig. 3, assuming that the application B is a target application, the interactive window of the application B is enlarged and expanded from the output start position in an animation manner that fireworks bloom, and finally displayed in the terminal screen in a full screen manner. In the step, the interactive window is unfolded from the output initial position in an animation mode from small to large, and finally the interactive window is displayed in the terminal screen in a full screen mode.
In order to respond to an access request of a target application program in a terminal, an output starting position of an interactive window in a terminal screen is configured according to a target position of a shortcut icon corresponding to the target application program in the terminal screen, the interactive window is controlled to be enlarged and unfolded from the output starting position in an animation mode in the terminal screen, and the interactive window of the target application program is displayed from the determined output starting position in a soft and natural animation mode, so that flickering or blockage caused by direct and hard switching jump of the terminal screen is avoided, the intelligence of access control is improved, and the performance of the terminal is improved.
Referring to fig. 4, a flowchart of another method for controlling access to an application according to an embodiment of the present invention is shown; the method may include the following steps S201 to S208.
S201, when receiving an access request to a target application program in a terminal, acquiring an interactive window of the target application program.
Step S201 of this embodiment can refer to step S101 of the embodiment shown in fig. 1, which is not described herein again.
S202, positioning the shortcut icon corresponding to the target application program in the terminal screen.
At least one application program can be installed and run in the terminal, including but not limited to: instant messaging applications, SNS applications, gaming applications, security applications, and the like. Each application program in the terminal corresponds to a shortcut icon, and the shortcut icons corresponding to each application program can be arranged and displayed in the terminal screen according to a certain sequence; for example: the shortcut icon corresponding to each application program can be arranged and displayed in the terminal screen according to the sequence of the installation time of each application program; the following steps are repeated: the shortcut icons corresponding to each application program in the terminal screen can be randomly sorted and displayed; and the shortcut icon corresponding to each application program occupies a position in the terminal screen, and the position of the shortcut icon corresponding to each application program can be changed along with the dragging of the user; the terminal stores the position of the shortcut icon corresponding to each application program in the terminal screen, and when the position of the shortcut icon corresponding to each application program is changed, the stored position is updated in time. In this step, a shortcut icon corresponding to the target application program needs to be located in the terminal screen.
S203, calling an Application Programming Interface (API) Interface of the terminal to acquire coordinates of at least one edge pixel point of the shortcut icon in the terminal screen.
The terminal stores the position of the shortcut icon corresponding to each application program in the terminal screen, and specifically, the terminal stores the coordinates of each pixel point in the shortcut icon corresponding to each application program. And the terminal can open a system API interface for acquiring the coordinates of each pixel point in the shortcut icon of the application program, and the step can call the system API interface opened by the terminal to acquire the coordinates of at least one edge pixel point of the shortcut icon in the terminal screen.
And S204, establishing a target coordinate range by adopting the coordinates of at least one edge pixel point of the shortcut icon in the terminal screen. The target coordinate range comprises coordinates of all pixel points of the shortcut icon; the target coordinate range is used for indicating the target position of the shortcut icon in the terminal screen.
Steps S202 to S204 of the present embodiment may be detailed refinement steps of step S102 of the embodiment shown in fig. 1.
S205, configuring an output initial position of the interactive window in the terminal screen according to the target position.
In response to the access request, it is necessary to output an interactive window of the target application in a terminal screen, and the output start position defines an output start point of the interactive window in the terminal screen, that is, the output start position defines from which position in the terminal screen the interactive window is output. In this step, the output starting position of the interactive window in the terminal screen can be configured according to the target position.
The step S205 may include the following two possible embodiments, and in the first possible embodiment, the step S205 specifically includes the following steps S11-S12.
s11, randomly selecting the coordinate of a pixel point of the shortcut icon from the target coordinate range.
s12, configuring the coordinates of the selected pixel points as the output starting position of the interactive window in the terminal screen.
In a second possible implementation, step S205 specifically includes the following steps S21-S22.
s21, reading the coordinates of the center pixel point of the shortcut icon from the target coordinate range.
s22, configuring the coordinates of the central pixel point as the output starting position of the interactive window in the terminal screen.
In practical applications, the two possible embodiments can be selected according to actual needs, and the purpose of step S205 is to configure the output starting point of the interactive window in the terminal screen according to the target position.
S206, controlling the interactive window to be enlarged and expanded from the output initial position in an animation mode in the terminal screen.
Step S206 of this embodiment can refer to step S104 of the embodiment shown in fig. 1, which is not described herein again.
S207, when a closing request for the interactive window is received, the output starting position is configured to be a closing ending position of the interactive window in the terminal screen.
The closing end position defines a closing end point of the interactive window in the terminal screen, that is, the closing end position defines which position of the interactive window in the terminal screen disappears.
S208, closing the interactive window when the interactive window is reduced to the closing termination position in the terminal screen in an animation mode.
The animation for closing the interaction window by zooming out can be set according to actual conditions, for example: an animation in which the blossoming fireworks gradually decrease to disappear, or an animation in which the swaying water waves gradually decrease to disappear, or the like may be set. Please refer to fig. 5, which is a schematic closing diagram of an interactive window of a target application according to an embodiment of the present invention; as shown in fig. 5, the interactive window of the application B is reduced and closed in an animation manner that the blooming fireworks gradually reduce to disappear, and finally disappears in the terminal screen at the closing termination position. In the step, the interactive window is reduced from the full screen to the small in an animation mode, and finally the interactive window is closed and disappears at the closing termination position, the closing process and the output process of the interactive window are mutually reversible, softness and naturalness can avoid the screen of the terminal from flickering or blocking, and the performance of the terminal is improved.
In order to respond to an access request of a target application program in a terminal, an output starting position of an interactive window in a terminal screen is configured according to a target position of a shortcut icon corresponding to the target application program in the terminal screen, the interactive window is controlled to be enlarged and unfolded from the output starting position in an animation mode in the terminal screen, and the interactive window of the target application program is displayed from the determined output starting position in a soft and natural animation mode, so that flickering or blockage caused by direct and hard switching jump of the terminal screen is avoided, the intelligence of access control is improved, and the performance of the terminal is improved.
The structure and function of the access control device for application programs according to the embodiment of the present invention will be described in detail with reference to fig. 6 to 9. The following devices may be an application program having an access control processing capability in a terminal, for example: security applications, system management applications, system acceleration applications, etc. in a terminal in which the apparatus may be installed and operated for performing the methods of fig. 1-5 described above.
Fig. 6 is a schematic structural diagram of an access control apparatus for an application according to an embodiment of the present invention; the apparatus may include: an interactive window acquisition unit 101, a target position acquisition unit 102, a start configuration unit 103, and a start control unit 104.
An interactive window obtaining unit 101, configured to obtain an interactive window of a target application program in a terminal when receiving an access request for the target application program.
The target application program can be any application program installed and running in the terminal, including but not limited to: an instant messaging application, an SNS application, a gaming application, a security application, and the like. The user may access applications in the terminal, such as: the user may click on a shortcut icon of a target application on the terminal desktop to access the target application. When receiving an access request of a user to the target application program, the interactive window obtaining unit 101 needs to output an interactive window of the target application program in a terminal screen in response to the access request, where the interactive window of the target application program may be used to display an interactive interface of the target application program, so that the user may use the target application program through the interactive interface, and therefore, the interactive window obtaining unit 101 needs to obtain the interactive window of the target application program.
And a target position acquiring unit 102, configured to acquire a target position of the shortcut icon corresponding to the target application in a terminal screen.
At least one application program can be installed and run in the terminal, including but not limited to: instant messaging applications, SNS applications, gaming applications, security applications, and the like. Each application program in the terminal corresponds to a shortcut icon, and the shortcut icons corresponding to each application program can be arranged and displayed in the terminal screen according to a certain sequence; for example: the shortcut icon corresponding to each application program can be arranged and displayed in the terminal screen according to the sequence of the installation time of each application program; the following steps are repeated: the shortcut icons corresponding to each application program in the terminal screen can be randomly sorted and displayed; and the shortcut icon corresponding to each application program occupies a position in the terminal screen, and the position of the shortcut icon corresponding to each application program can be changed along with the dragging of the user. The terminal stores the position of the shortcut icon corresponding to each application program in the terminal screen, and when the position of the shortcut icon corresponding to each application program is changed, the stored position is updated in time. The target position obtaining unit 102 may obtain a target position of a shortcut icon corresponding to the target application in the terminal screen from a storage space of the terminal. It should be noted that the target position refers to a coordinate range formed by coordinates of each pixel point included in the shortcut icon corresponding to the target application program in the terminal screen.
A start configuration unit 103, configured to configure an output start position of the interactive window in the terminal screen according to the target position.
In response to the access request, it is necessary to output an interactive window of the target application in a terminal screen, and the output start position defines an output start point of the interactive window in the terminal screen, that is, the output start position defines from which position in the terminal screen the interactive window is output. The start configuration unit 103 may configure an output start position of the interactive window in the terminal screen according to the target position.
And the starting control unit 104 is used for controlling the interactive window to be enlarged and expanded from the output starting position in an animation mode in the terminal screen.
The animation of the interactive window for enlarging and expanding can be set according to the actual situation, for example: it may be set as an animation in which fireworks burst, or it may be set as an animation in which water waves are blown, or the like. The starting control unit 104 expands the interactive window from the output starting position to a large size in an animation mode, and finally the interactive window is displayed in the terminal screen in a full screen mode, the output process is soft and natural, flicker or blockage of the terminal screen can be avoided, and the performance of the terminal is improved.
Referring again to fig. 6, the apparatus may further include: a termination configuration unit 105 and a shutdown control unit 106.
A termination configuration unit 105, configured to configure the output start position as a termination position for closing the interactive window in the terminal screen when receiving a request for closing the interactive window.
The closing end position defines a closing end point of the interactive window in the terminal screen, that is, the closing end position defines which position of the interactive window in the terminal screen disappears.
A closing control unit 106, configured to close the interactive window when the interactive window is shrunk to the closing end position in the terminal screen in an animation manner.
The animation for closing the interaction window by zooming out can be set according to actual conditions, for example: an animation in which the blossoming fireworks gradually decrease to disappear, or an animation in which the swaying water waves gradually decrease to disappear, or the like may be set. The closing control unit 106 reduces the interactive window from the full screen to the small screen in an animation mode, and finally the interactive window is closed and disappears at the closing termination position, the closing process and the output process of the interactive window are mutually reversible, and the interactive window is soft and natural, so that the screen of the terminal can be prevented from flickering or blocking, and the performance of the terminal is improved.
In order to respond to an access request of a target application program in a terminal, an output starting position of an interactive window in a terminal screen is configured according to a target position of a shortcut icon corresponding to the target application program in the terminal screen, the interactive window is controlled to be enlarged and unfolded from the output starting position in an animation mode in the terminal screen, and the interactive window of the target application program is displayed from the determined output starting position in a soft and natural animation mode, so that flickering or blockage caused by direct and hard switching jump of the terminal screen is avoided, the intelligence of access control is improved, and the performance of the terminal is improved.
Please refer to fig. 7, which is a schematic structural diagram of an embodiment of the target position obtaining unit shown in fig. 6; the target position acquiring unit 102 may include: a positioning unit 1001, a calling unit 1002 and a building unit 1003.
And a positioning unit 1001 configured to position a shortcut icon corresponding to the target application in the terminal screen.
At least one application program can be installed and run in the terminal, including but not limited to: instant messaging applications, SNS applications, gaming applications, security applications, and the like. Each application program in the terminal corresponds to a shortcut icon, and the shortcut icons corresponding to each application program can be arranged and displayed in the terminal screen according to a certain sequence; for example: the shortcut icon corresponding to each application program can be arranged and displayed in the terminal screen according to the sequence of the installation time of each application program; the following steps are repeated: the shortcut icons corresponding to each application program in the terminal screen can be randomly sorted and displayed; and the shortcut icon corresponding to each application program occupies a position in the terminal screen, and the position of the shortcut icon corresponding to each application program can be changed along with the dragging of the user; the terminal stores the position of the shortcut icon corresponding to each application program in the terminal screen, and when the position of the shortcut icon corresponding to each application program is changed, the stored position is updated in time. The positioning unit 1001 needs to position a shortcut icon corresponding to the target application in the terminal screen.
The calling unit 1002 is configured to call a system API interface of the terminal, and obtain coordinates of at least one edge pixel point of the shortcut icon in the terminal screen.
The terminal stores the position of the shortcut icon corresponding to each application program in the terminal screen, and specifically, the terminal stores the coordinates of each pixel point in the shortcut icon corresponding to each application program. Moreover, the terminal may open a system API interface for obtaining coordinates of each pixel point in a shortcut icon of an application program, and the calling unit 1002 may call the system API interface opened by the terminal to obtain coordinates of at least one edge pixel point of the shortcut icon in the terminal screen.
The constructing unit 1003 is configured to construct a target coordinate range by using coordinates of at least one edge pixel point of the shortcut icon in the terminal screen. The target coordinate range comprises coordinates of all pixel points of the shortcut icon; the target coordinate range is used for indicating the target position of the shortcut icon in the terminal screen.
In order to respond to an access request of a target application program in a terminal, an output starting position of an interactive window in a terminal screen is configured according to a target position of a shortcut icon corresponding to the target application program in the terminal screen, the interactive window is controlled to be enlarged and unfolded from the output starting position in an animation mode in the terminal screen, and the interactive window of the target application program is displayed from the determined output starting position in a soft and natural animation mode, so that flickering or blockage caused by direct and hard switching jump of the terminal screen is avoided, the intelligence of access control is improved, and the performance of the terminal is improved.
Please refer to fig. 8, which is a schematic structural diagram of an embodiment of the initial configuration unit shown in fig. 6; the initial configuration unit 103 may include: a coordinate selection unit 2001 and a first start position arrangement unit 2002.
A coordinate selecting unit 2001, configured to randomly select a coordinate of a pixel of the shortcut icon from the target coordinate range.
A first start position configuration unit 2002, configured to configure the coordinates of the selected pixel point as an output start position of the interaction window in the terminal screen.
In order to respond to an access request of a target application program in a terminal, an output starting position of an interactive window in a terminal screen is configured according to a target position of a shortcut icon corresponding to the target application program in the terminal screen, the interactive window is controlled to be enlarged and unfolded from the output starting position in an animation mode in the terminal screen, and the interactive window of the target application program is displayed from the determined output starting position in a soft and natural animation mode, so that flickering or blockage caused by direct and hard switching jump of the terminal screen is avoided, the intelligence of access control is improved, and the performance of the terminal is improved.
Please refer to fig. 9, which is a schematic structural diagram of another embodiment of the start configuration unit shown in fig. 6; the initial configuration unit 103 may include: a coordinate reading unit 2011 and a second home position configuration unit 2012.
The coordinate reading unit 2011 is configured to read the coordinate of the center pixel point of the shortcut icon from the target coordinate range.
A second start position configuration unit 2012, configured to configure the coordinates of the central pixel point as an output start position of the interactive window in the terminal screen.
In order to respond to an access request of a target application program in a terminal, an output starting position of an interactive window in a terminal screen is configured according to a target position of a shortcut icon corresponding to the target application program in the terminal screen, the interactive window is controlled to be enlarged and unfolded from the output starting position in an animation mode in the terminal screen, and the interactive window of the target application program is displayed from the determined output starting position in a soft and natural animation mode, so that flickering or blockage caused by direct and hard switching jump of the terminal screen is avoided, the intelligence of access control is improved, and the performance of the terminal is improved.
The embodiment of the present invention further discloses a terminal, which may include an access control device for an application program, and the structure and function of the access control device may refer to the description related to the embodiments shown in fig. 6 to 9, which is not described herein again. In a specific implementation, the apparatus may be an application program having an access control processing capability in a terminal, for example: security applications in the terminal, system management applications, system acceleration applications, etc. It should be noted that the terminal disclosed in this embodiment can also be applied to the methods shown in fig. 1 to fig. 5.
In order to respond to an access request of a target application program in a terminal, an output starting position of an interactive window in a terminal screen is configured according to a target position of a shortcut icon corresponding to the target application program in the terminal screen, the interactive window is controlled to be enlarged and unfolded from the output starting position in an animation mode in the terminal screen, and the interactive window of the target application program is displayed from the determined output starting position in a soft and natural animation mode, so that flickering or blockage caused by direct and hard switching jump of the terminal screen is avoided, the intelligence of access control is improved, and the performance of the terminal is improved.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (10)

1. An access control method for an application program, comprising:
when an access request for a target application program in a terminal is received, acquiring an interactive window of the target application program;
positioning a shortcut icon corresponding to the target application program in the terminal screen, wherein the shortcut icon corresponding to the target application program can be dragged to change the position;
calling a system API (application program interface) of the terminal to acquire coordinates of at least one edge pixel point of the shortcut icon in the terminal screen;
establishing a target coordinate range by adopting the coordinates of at least one edge pixel point of the shortcut icon in the terminal screen;
the target coordinate range comprises coordinates of all pixel points of the shortcut icon; the target coordinate range is used for indicating a target position of the shortcut icon in the terminal screen;
configuring an output initial position of the interactive window in the terminal screen according to the target position;
and controlling the interactive window to be enlarged and expanded from the output starting position in an animation mode in the terminal screen.
2. The method of claim 1, wherein after animating the interactive window from the output starting position in the terminal screen, further comprising:
when a closing request for the interactive window is received, the output starting position is configured to be a closing ending position of the interactive window in the terminal screen;
and closing the interactive window when the interactive window is reduced to the closing termination position in the terminal screen in an animation mode.
3. The method of claim 1, wherein the configuring of the output start position of the interactive window in the terminal screen according to the target position comprises:
randomly selecting the coordinate of a pixel point of the shortcut icon from the target coordinate range;
and configuring the coordinates of the selected pixel points as the output initial position of the interactive window in the terminal screen.
4. The method of claim 1, wherein the configuring of the output start position of the interactive window in the terminal screen according to the target position comprises:
reading the coordinates of the central pixel point of the shortcut icon from the target coordinate range;
and configuring the coordinates of the central pixel point as an output initial position of the interactive window in the terminal screen.
5. An access control apparatus for an application program, comprising:
the interactive window acquisition unit is used for acquiring an interactive window of a target application program when receiving an access request to the target application program in the terminal;
the terminal comprises a target position acquisition unit, a position display unit and a position display unit, wherein the target position acquisition unit is used for acquiring a target position of a shortcut icon corresponding to a target application program in a terminal screen, and the shortcut icon corresponding to the target application program can be dragged to change the position;
the target position acquisition unit includes:
the positioning unit is used for positioning the shortcut icon corresponding to the target application program in the terminal screen;
the calling unit is used for calling a system API (application program interface) of the terminal and acquiring the coordinates of at least one edge pixel point of the shortcut icon in the terminal screen;
the construction unit is used for constructing a target coordinate range by adopting the coordinates of at least one edge pixel point of the shortcut icon in the terminal screen;
the target coordinate range comprises coordinates of all pixel points of the shortcut icon; the target coordinate range is used for indicating a target position of the shortcut icon in the terminal screen; the initial configuration unit is used for configuring the output initial position of the interactive window in the terminal screen according to the target position;
and the starting control unit is used for controlling the interactive window to be amplified and expanded from the output starting position in an animation mode in the terminal screen.
6. The apparatus of claim 5, further comprising:
the termination configuration unit is used for configuring the output starting position as a termination position for closing the interactive window in the terminal screen when receiving a closing request of the interactive window;
and the closing control unit is used for closing the interactive window when the interactive window is reduced to the closing termination position in the terminal screen in an animation mode.
7. The apparatus of claim 5, wherein the starting configuration unit comprises:
the coordinate selection unit is used for randomly selecting the coordinate of one pixel point of the shortcut icon from the target coordinate range;
and the first initial position configuration unit is used for configuring the coordinates of the selected pixel points as the output initial position of the interactive window in the terminal screen.
8. The apparatus of claim 5, wherein the starting configuration unit comprises:
the coordinate reading unit is used for reading the coordinate of the central pixel point of the shortcut icon from the target coordinate range;
and the second starting position configuration unit is used for configuring the coordinates of the central pixel point as the output starting position of the interactive window in the terminal screen.
9. A terminal, characterized in that it comprises access control means for an application according to any one of claims 5-8.
10. A computer-readable storage medium, characterized in that one or more programs are stored therein, the programs being used for executing the access control method of an application program according to any one of claims 1 to 4.
CN201510205712.1A 2015-04-27 2015-04-27 Access control method and device for application program and terminal Active CN106155676B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510205712.1A CN106155676B (en) 2015-04-27 2015-04-27 Access control method and device for application program and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510205712.1A CN106155676B (en) 2015-04-27 2015-04-27 Access control method and device for application program and terminal

Publications (2)

Publication Number Publication Date
CN106155676A CN106155676A (en) 2016-11-23
CN106155676B true CN106155676B (en) 2020-04-03

Family

ID=57347372

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510205712.1A Active CN106155676B (en) 2015-04-27 2015-04-27 Access control method and device for application program and terminal

Country Status (1)

Country Link
CN (1) CN106155676B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107066268B (en) * 2017-03-28 2022-03-04 腾讯科技(深圳)有限公司 Display position switching method and device for widget application
CN114610197A (en) * 2018-04-19 2022-06-10 华为技术有限公司 Display method and terminal during application quitting
CN112416480A (en) * 2019-08-21 2021-02-26 北京嗨动视觉科技有限公司 Window editing method, device and system
CN115268735A (en) * 2021-04-30 2022-11-01 华为技术有限公司 Display method and apparatus thereof

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11327733A (en) * 1998-05-13 1999-11-30 Nec Software Kobe Ltd Device and method for changing window size
US8836654B2 (en) * 2011-10-04 2014-09-16 Qualcomm Incorporated Application window position and size control in (multi-fold) multi-display devices
CN103984464A (en) * 2013-02-07 2014-08-13 腾讯科技(深圳)有限公司 Display method and device of mobile terminal shortcut
KR20140133072A (en) * 2013-05-09 2014-11-19 삼성디스플레이 주식회사 Mobile device and method for operating the same

Also Published As

Publication number Publication date
CN106155676A (en) 2016-11-23

Similar Documents

Publication Publication Date Title
US20200326844A1 (en) Electronic device including touch sensitive display and method for managing the display
KR102497195B1 (en) A mehtod for processing contents, an electronic device and a storage medium therefor
CN109062475B (en) Icon display method and device, terminal and storage medium
CN103399703B (en) The control method of the system bar of subscriber equipment and subscriber equipment
CN110855828B (en) Notification information processing method and device and terminal
US10732793B2 (en) Apparatus and method for providing information via portion of display
CN105335048B (en) Electronic equipment with hidden application icon and method for hiding application icon
KR102504201B1 (en) Electronic device and method for controlling output of notification thereof
CN106951163B (en) Display control method and device
CN108845854B (en) User interface display method, device, terminal and storage medium
EP2669788A1 (en) Mobile terminal and controlling method thereof
CN106155676B (en) Access control method and device for application program and terminal
CN109117060B (en) Pull-down notification bar display method, device, terminal and storage medium
CN111443863A (en) Page control method and device, storage medium and terminal
CN105589619B (en) terminal multi-window display method and device
WO2019047728A1 (en) Method for opening shortcut function, device, mobile terminal, and storage medium
CN106658139B (en) Focus control method and device
CN107357501B (en) Desktop wallpaper updating method and device and terminal
KR20190047142A (en) Method and apparatus for setting background of ui control, and terminal
CN106648281B (en) Screenshot method and device
CN106155870B (en) Terminal optimization processing method and device and terminal
CN111443956B (en) Setting control display method and device, storage medium and electronic equipment
CN105320502A (en) Terminal and multi-window displaying method for terminal
CN106960460B (en) Animation processing method, device and equipment
CN105635832A (en) Video processing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant