CN107728898B - Information processing method and mobile terminal - Google Patents

Information processing method and mobile terminal Download PDF

Info

Publication number
CN107728898B
CN107728898B CN201710881024.6A CN201710881024A CN107728898B CN 107728898 B CN107728898 B CN 107728898B CN 201710881024 A CN201710881024 A CN 201710881024A CN 107728898 B CN107728898 B CN 107728898B
Authority
CN
China
Prior art keywords
event
mobile terminal
image
executing
target
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
CN201710881024.6A
Other languages
Chinese (zh)
Other versions
CN107728898A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201710881024.6A priority Critical patent/CN107728898B/en
Publication of CN107728898A publication Critical patent/CN107728898A/en
Application granted granted Critical
Publication of CN107728898B publication Critical patent/CN107728898B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

Abstract

The invention provides an information processing method and a mobile terminal, and solves the problem that the use experience of a user is influenced when the same gesture operation corresponds to a plurality of events. The method of the invention comprises the following steps: detecting operation on a current display interface; when the preset operation on the current display interface is detected, the first event or the second event is executed according to the current display interface and/or the relevant parameters of the preset operation.

Description

Information processing method and mobile terminal
Technical Field
The present invention relates to the field of communications technologies, and in particular, to an information processing method and a mobile terminal.
Background
With the continuous development of electronic technology, mobile electronic devices such as mobile phones have become the main communication and entertainment tools of people. Multitasking functions, namely, supporting multiple applications to share a screen at the same time, are introduced into the existing mobile electronic equipment. For example, a user may display multiple applications in a split screen, viewing a web page on the left while writing mail on the right, or viewing a video while chatting, etc.
At present, the split screen can be opened by sliding down three fingers at the same time, and when the sliding distance of the three fingers is greater than a certain distance, the split screen can be opened. However, an application capable of responding to the three-finger gliding gesture also exists in the mobile electronic device, and when the three-finger gliding gesture is detected, the split screen and the application can simultaneously respond to the three-finger gliding gesture, so that the use experience of a user is influenced.
Disclosure of Invention
The invention aims to provide an information processing method and a mobile terminal, which are used for solving the problem that the use experience of a user is influenced when the same gesture operation corresponds to a plurality of events.
In order to achieve the above object, the present invention provides an information processing method applied to a mobile terminal, including:
detecting operation on a current display interface;
and when the preset operation on the current display interface is detected, executing a first event or a second event according to the current display interface and/or the relevant parameters of the preset operation.
In order to achieve the above object, an embodiment of the present invention further provides a mobile terminal, including:
the detection module is used for detecting the operation of the current display interface;
and the processing module is used for executing a first event or a second event according to the current display interface and/or the relevant parameters of the preset operation when the preset operation on the current display interface is detected.
In order to achieve the above object, an embodiment of the present invention further provides a mobile terminal, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps in the information processing method when executing the computer program.
In order to achieve the above object, an embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored, the computer program implementing the steps in the information processing method as described above when executed by a processor.
The embodiment of the invention has the following beneficial effects:
according to the embodiment of the invention, the first event or the second event can be executed according to the current display interface and/or the relevant parameters of the preset operation, so that the conflict of interface display is avoided, and the use experience of a user and the intelligent degree of the mobile terminal are improved.
Drawings
FIG. 1 is a first flowchart of an information processing method according to an embodiment of the present invention;
FIG. 2 is a second flowchart of an information processing method according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a first module of a mobile terminal according to an embodiment of the present invention;
fig. 4 is a diagram illustrating a second module of the mobile terminal according to the embodiment of the present invention;
fig. 5 is a first block diagram of a mobile terminal according to an embodiment of the present invention;
fig. 6 is a second structural block diagram of the mobile terminal according to the embodiment of the present invention;
fig. 7 is a third structural block diagram of the mobile terminal according to the embodiment of the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantages of the present invention more apparent, the following detailed description is given with reference to the accompanying drawings.
The invention provides an information processing method and a mobile terminal aiming at the problem that the use experience of a user is influenced when the same gesture operation corresponds to a plurality of events, so that the conflict of interface display is avoided, and the use experience of the user and the intelligent degree of the mobile terminal are improved.
As shown in fig. 1, an embodiment of the present invention provides an information processing method applied to a mobile terminal, including:
step 101: and detecting the operation of the current display interface.
Here, by detecting an operation on the currently displayed interface, it is convenient to determine whether the currently received operation is a predetermined operation corresponding to a plurality of events.
Step 102: and when the preset operation on the current display interface is detected, executing a first event or a second event according to the current display interface and/or the relevant parameters of the preset operation.
The predetermined operation is an operation corresponding to at least two events, such as a three-finger sliding operation, the first event may be a split screen event, and the second event may be an event of an application corresponding to the current display interface responding to the predetermined operation, such as an enlarged display or a reduced display.
The relevant parameters of the preset operation comprise at least two of the pressing degree of the preset operation, the duration of the preset operation and the distance moved by the finger of the user on the current display interface in the duration of the preset operation.
When the preset operation on the current display interface is detected, one event is selected from at least two events corresponding to the preset operation to be executed according to the current display interface and/or the relevant parameters of the preset operation, so that the conflict of interface display is avoided, and the use experience of a user and the intelligent degree of the mobile terminal are improved.
As an alternative implementation, as shown in fig. 2, the step 102 includes:
step 1021: and judging whether the target interface name of the current display interface and the target application package name corresponding to the target interface name exist in a database of the mobile terminal.
The database stores interface names of display interfaces capable of executing the second event and application package names corresponding to the interface names.
In an embodiment of the present invention, a database may be created in advance, and the interface name of the display interface capable of responding to the second event and the application package name corresponding to the interface name may be stored. When the preset operation of the current display interface is detected, whether the current display interface can respond to the second event or not can be known by searching whether the target interface name of the current display interface and the target application package name corresponding to the target interface name exist in the database or not.
Step 1022: and if the target application package name and the target interface name exist, judging whether the related parameters of the preset operation meet preset conditions.
Here, when the target application package name and the target interface name exist in the database, the second event is not executed, but whether the relevant parameter of the predetermined operation satisfies the predetermined condition is further determined, and the first event or the second event is determined to be executed according to whether the relevant parameter of the predetermined operation satisfies the predetermined condition.
Step 1023: and if the preset condition is met, executing the first event, otherwise executing the second event.
Further, after determining whether the target interface name of the current display interface and the target application package name corresponding to the target interface name exist in the database of the mobile terminal, the method further includes:
if the target application package name or the target interface name does not exist, acquiring a first image and a second image, wherein the first image is an image displayed by the mobile terminal at a preset moment in the continuous process of the preset operation, and the second image is an image displayed by the mobile terminal when the preset operation is finished; comparing pixel points in the first image and the second image; and if the number of different pixel points in the first image and the second image is larger than a preset value, storing a target interface name corresponding to the current display interface and a target application package name corresponding to the target interface name into the database.
Assuming that the predetermined operation is a three-finger sliding operation, the first image may be an image displayed by the mobile terminal at a certain moment when three fingers are simultaneously in contact with the display screen of the mobile terminal, and the second image is an image displayed by the mobile terminal when three fingers are detected to leave the display screen of the mobile terminal. Since the time of the three-finger sliding event is generally about 100ms, in such a short time, if the display interface does not respond to the event, the display interface does not change much. Each pixel point of the two pictures is compared one by one due to the fact that the pictures are composed of a series of pixels, and if the two pictures are almost the same, it is indicated that the current display interface cannot execute a second event; if the number of different pixel points of the two pictures is larger than a preset value, the current display interface can execute a second event, and a target interface name corresponding to the current display interface and a target application package name corresponding to the target interface name need to be stored in the database.
In the implementation mode, when the target application package name and the target interface name exist in the database and the related parameters of the preset operation are further judged not to meet the preset conditions, executing a second event; and when the target application package name and the target interface name exist in the database and the relevant parameters of the preset operation are further judged to meet the preset conditions, executing a first event, avoiding the conflict of interface display, and improving the use experience of the user and the intelligent degree of the mobile terminal.
As another optional implementation manner, the step 102 includes:
judging whether a target interface name of the current display interface and a target application package name corresponding to the target interface name exist in a database of the mobile terminal; and if the target application package name and the target interface name exist, executing the second event, otherwise, executing the first event.
Further, the first event is an event supported by any display interface, such as a split screen event.
At this time, if the target application package name and the target interface name exist, after the second event is executed, the method further includes:
displaying prompt information for prompting whether to execute the first event; and if a first event execution instruction input according to the prompt information is received, executing the first event according to the first event execution instruction.
Specifically, after the current display interface executes a second event corresponding to the predetermined operation, the pop-up dialog box inquires whether the user executes the first event, if yes, the split screen is opened if the user clicks the confirmation, and if the click is cancelled, the split screen is not opened.
Further, after determining whether the target interface name of the current display interface and the target application package name corresponding to the target interface name exist in the database of the mobile terminal, the method further includes:
if the target application package name or the target interface name does not exist, acquiring a first image and a second image, wherein the first image is an image displayed by the mobile terminal at a preset moment in the continuous process of the preset operation, and the second image is an image displayed by the mobile terminal when the preset operation is finished; comparing pixel points in the first image and the second image; and if the number of different pixel points in the first image and the second image is larger than a preset value, storing a target interface name corresponding to the current display interface and a target application package name corresponding to the target interface name into the database.
Assuming that the predetermined operation is a three-finger sliding operation, the first image may be an image displayed by the mobile terminal at a certain moment when three fingers are simultaneously in contact with the display screen of the mobile terminal, and the second image is an image displayed by the mobile terminal when three fingers are detected to leave the display screen of the mobile terminal. Since the time of the three-finger sliding event is generally about 100ms, in such a short time, if the display interface does not respond to the event, the display interface does not change much. Each pixel point of the two pictures is compared one by one due to the fact that the pictures are composed of a series of pixels, and if the two pictures are almost the same, it is indicated that the current display interface cannot execute a second event; if the number of different pixel points of the two pictures is larger than a preset value, the current display interface can execute a second event, and a target interface name corresponding to the current display interface and a target application package name corresponding to the target interface name need to be stored in the database.
In the implementation mode, the first event or the second event is executed only according to the current display interface, namely whether the target interface name and the target application package name of the current display interface exist in the database or not is judged preferentially, if yes, the second event is executed, otherwise, the first event is executed, the conflict of interface display is avoided, and the use experience of a user and the intelligent degree of the mobile terminal are improved.
As still another alternative implementation, the step 102 includes:
judging whether the relevant parameters of the preset operation meet preset conditions or not; and if the preset condition is met, executing the first event, otherwise executing the second event.
The related parameters include: at least two parameters; the steps may specifically include: judging whether the relation between each parameter in the related parameters and the threshold value corresponding to the parameter meets a preset condition or not; and if each parameter in the related parameters and the threshold value corresponding to the parameter meet the preset condition, judging that the related parameters of the preset operation meet the preset condition.
In an embodiment of the present invention, when the user normally executes the first event through the predetermined gesture operation, relevant parameters of the predetermined gesture operation, such as a pressing force degree of the predetermined gesture operation, a duration of the predetermined gesture operation, a distance that the user's finger moves on the current display interface within the duration of the predetermined gesture operation, and the like, may be counted in advance, and then an average value corresponding to each parameter is calculated and stored in the database of the mobile terminal. And if each parameter in the relevant parameters and the threshold value corresponding to the parameter meet the preset condition, judging that the relevant parameters of the preset operation meet the preset condition for executing the first event. The predetermined condition may be that a difference between each parameter and the threshold corresponding to the parameter is smaller than a preset threshold.
In the implementation mode, the first event or the second event is executed only according to the relevant parameters of the preset operation, namely whether the relevant parameters of the preset operation meet the preset conditions or not is preferentially judged, if yes, the first event is executed, otherwise, the second event is executed, so that the conflict of interface display is avoided, and the use experience of a user and the intelligent degree of the mobile terminal are improved.
The information processing method of the embodiment of the invention detects the operation on the current display interface; when the preset operation of the current display interface is detected, the first event or the second event is executed according to the current display interface and/or the relevant parameters of the preset operation, so that the conflict of interface display is avoided, and the use experience of a user and the intelligent degree of the mobile terminal are improved.
As shown in fig. 3, an embodiment of the present invention further provides a mobile terminal, including:
a detection module 301, configured to detect an operation on a current display interface;
the processing module 302 is configured to, when a predetermined operation on the current display interface is detected, execute a first event or a second event according to the current display interface and/or a parameter related to the predetermined operation.
As shown in fig. 4, the processing module 302 of the mobile terminal according to the embodiment of the present invention includes:
a first judging submodule 3021, configured to judge whether a target interface name of the current display interface and a target application package name corresponding to the target interface name exist in a database of the mobile terminal;
a second determining submodule 3022, configured to determine whether the relevant parameter of the predetermined operation meets a predetermined condition if the target application package name and the target interface name exist;
a first processing sub-module 3023, configured to execute the first event if a predetermined condition is met, and otherwise execute the second event.
In the mobile terminal of the embodiment of the present invention, the processing module 302 includes:
a first judging submodule 3021, configured to judge whether a target interface name of the current display interface and a target application package name corresponding to the target interface name exist in a database of the mobile terminal;
the second processing sub-module 3024 is configured to execute the second event if the target application package name and the target interface name exist, and otherwise execute the first event.
In the mobile terminal of the embodiment of the present invention, the processing module 302 includes:
a second judging submodule 3025, configured to judge whether a parameter related to the predetermined operation satisfies a predetermined condition;
a third processing sub-module 3026, configured to execute the first event if a predetermined condition is met, and otherwise execute the second event.
According to the mobile terminal provided by the embodiment of the invention, the first event is an event supported by any display interface;
the processing module 302 further comprises:
a display sub-module 3027, configured to display a prompt message for prompting whether to execute the first event;
the fourth processing sub-module 3028 is configured to, if a first event execution instruction input according to the prompt information is received, execute the first event according to the first event execution instruction.
In the mobile terminal of the embodiment of the present invention, the processing module 302 further includes:
an obtaining sub-module 3029, configured to obtain, if the target application package name or the target interface name does not exist, a first image and a second image, where the first image is an image displayed by the mobile terminal at a preset time in a continuous process of the predetermined operation, and the second image is an image displayed by the mobile terminal when the predetermined operation is finished;
a comparison submodule 3030, configured to compare pixel points in the first image and the second image;
the storage submodule 3031 is configured to, if the number of different pixel points in the first image and the second image is greater than a preset value, store the target interface name corresponding to the current display interface and the target application package name corresponding to the target interface name in the database.
In the mobile terminal of the embodiment of the present invention, the first event is a split screen event, and the second event is an event that an application corresponding to the current display interface responds to the predetermined operation.
It should be noted that the mobile terminal is a mobile terminal corresponding to the above method embodiment, and all implementation manners in the above method embodiment are applicable to the embodiment of the mobile terminal, and the same technical effect can be achieved.
The mobile terminal of the embodiment of the invention can execute the first event or the second event according to the current display interface and/or the relevant parameters of the preset operation, thereby avoiding the conflict of interface display and improving the use experience of users and the intelligent degree of the mobile terminal.
In order to better achieve the above object, as shown in fig. 5, an embodiment of the present invention further provides a mobile terminal, which includes a memory 520, a processor 500, a transceiver 510, a user interface 530, a bus interface, and a computer program stored on the memory 520 and operable on the processor 500, wherein the processor 500 is configured to read the program in the memory 520 and execute the following processes:
detecting operation on a current display interface;
and when the preset operation on the current display interface is detected, executing a first event or a second event according to the current display interface and/or the relevant parameters of the preset operation.
Wherein in fig. 5, the bus architecture may include any number of interconnected buses and bridges, with one or more processors, represented by processor 500, and various circuits, represented by memory 520, being linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. The bus interface provides an interface. The first transceiver 510 may be a number of elements, including a transmitter and a transceiver, providing a means for communicating with various other apparatus over a transmission medium. For different user devices, the user interface 530 may also be an interface capable of interfacing with a desired device externally, including but not limited to a keypad, display, speaker, microphone, joystick, etc.
The processor 500 is responsible for managing the bus architecture and general processing, and the memory 520 may store data used by the processor 500 in performing operations.
Optionally, the processor 500 reads the program in the memory 520, and is further configured to perform:
judging whether a target interface name of the current display interface and a target application package name corresponding to the target interface name exist in a database of the mobile terminal;
if the target application package name and the target interface name exist, judging whether the relevant parameters of the preset operation meet preset conditions or not;
and if the preset condition is met, executing the first event, otherwise executing the second event.
Optionally, the processor 500 reads the program in the memory 520, and is further configured to perform:
judging whether a target interface name of the current display interface and a target application package name corresponding to the target interface name exist in a database of the mobile terminal;
and if the target application package name and the target interface name exist, executing the second event, otherwise, executing the first event.
Optionally, the processor 500 reads the program in the memory 520, and is further configured to perform:
judging whether the relevant parameters of the preset operation meet preset conditions or not;
and if the preset condition is met, executing the first event, otherwise executing the second event.
Optionally, the first event is an event supported by any display interface;
optionally, the processor 500 reads the program in the memory 520, and is further configured to perform:
displaying prompt information for prompting whether to execute the first event;
and if a first event execution instruction input according to the prompt information is received, executing the first event according to the first event execution instruction.
Optionally, the processor 500 reads the program in the memory 520, and is further configured to perform:
if the target application package name or the target interface name does not exist, acquiring a first image and a second image, wherein the first image is an image displayed by the mobile terminal at a preset moment in the continuous process of the preset operation, and the second image is an image displayed by the mobile terminal when the preset operation is finished;
comparing pixel points in the first image and the second image;
and if the number of different pixel points in the first image and the second image is larger than a preset value, storing a target interface name corresponding to the current display interface and a target application package name corresponding to the target interface name into the database.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the following steps:
detecting operation on a current display interface;
and when the preset operation on the current display interface is detected, executing a first event or a second event according to the current display interface and/or the relevant parameters of the preset operation.
It should be noted that, when being executed by a processor, the computer program can implement the implementation manners in all the embodiments described above, and details are not described here.
As shown in fig. 6, which is a block diagram of another structure of a mobile terminal according to an embodiment of the present invention, the mobile terminal 600 shown in fig. 6 includes: at least one processor 601, memory 602, at least one network interface 604, and other user interfaces 603. The various components in the mobile terminal 600 are coupled together by a bus system 605. It is understood that the bus system 605 is used to enable communications among the components. The bus system 605 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 605 in fig. 6.
The user interface 603 may include, among other things, a display, a keyboard, or a pointing device (e.g., a mouse, trackball, touch pad, or touch screen, among others.
It will be appreciated that the memory 602 in embodiments of the invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration, and not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous SDRAM (ESDRAM), Sync Link DRAM (SLDRAM), and direct memory bus RAM (DRRAM). The memory 602 of the systems and methods described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
In some embodiments, memory 602 stores the following elements, executable modules or data structures, or a subset thereof, or an expanded set thereof: an operating system 6021 and application programs 6022.
The operating system 6021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks. The application program 6022 includes various application programs such as a Media Player (Media Player), a Browser (Browser), and the like, and is used to implement various application services. A program implementing the method of an embodiment of the invention can be included in the application program 6022.
In an embodiment of the present invention, the processor 601 is configured to detect an operation on the current display interface by calling a program or an instruction stored in the memory 602, specifically, a program or an instruction stored in the application program 6022;
and when the preset operation on the current display interface is detected, executing a first event or a second event according to the current display interface and/or the relevant parameters of the preset operation.
Optionally, the computer program when executed by the processor 601 further implements the following steps:
judging whether a target interface name of the current display interface and a target application package name corresponding to the target interface name exist in a database of the mobile terminal;
if the target application package name and the target interface name exist, judging whether the relevant parameters of the preset operation meet preset conditions or not;
and if the preset condition is met, executing the first event, otherwise executing the second event.
Optionally, the computer program when executed by the processor 601 further implements the following steps:
judging whether a target interface name of the current display interface and a target application package name corresponding to the target interface name exist in a database of the mobile terminal;
and if the target application package name and the target interface name exist, executing the second event, otherwise, executing the first event.
Optionally, the computer program when executed by the processor 601 further implements the following steps:
judging whether the relevant parameters of the preset operation meet preset conditions or not;
and if the preset condition is met, executing the first event, otherwise executing the second event.
Optionally, the first event is an event supported by any display interface;
optionally, the computer program when executed by the processor 601 further implements the following steps:
displaying prompt information for prompting whether to execute the first event;
and if a first event execution instruction input according to the prompt information is received, executing the first event according to the first event execution instruction.
Optionally, the computer program when executed by the processor 601 further implements the following steps:
if the target application package name or the target interface name does not exist, acquiring a first image and a second image, wherein the first image is an image displayed by the mobile terminal at a preset moment in the continuous process of the preset operation, and the second image is an image displayed by the mobile terminal when the preset operation is finished;
comparing pixel points in the first image and the second image;
and if the number of different pixel points in the first image and the second image is larger than a preset value, storing a target interface name corresponding to the current display interface and a target application package name corresponding to the target interface name into the database.
According to the mobile terminal provided by the embodiment of the invention, the processor 601 can execute the first event or the second event according to the current display interface and/or the relevant parameters of the preset operation, so that the conflict of interface display is avoided, and the use experience of a user and the intelligent degree of the mobile terminal are improved.
The mobile terminal of the present invention may be a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), or a vehicle-mounted computer.
The mobile terminal 600 can implement each process implemented by the terminal in the foregoing embodiments, and is not described here again to avoid repetition.
The methods disclosed in the embodiments of the present invention can be applied to the processor 601, or implemented by the processor 601. The processor 601 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 601. The Processor 601 may be a general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable Gate Array (FPGA) or other programmable logic device, discrete Gate or transistor logic device, or discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 602, and the processor 601 reads the information in the memory 602 and completes the steps of the method in combination with the hardware thereof.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the Processing units may be implemented within 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), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented with modules (e.g., procedures, functions, and so on) that perform the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
Fig. 7 is a block diagram of another structure of a mobile terminal according to an embodiment of the present invention. The mobile terminal 700 shown in fig. 7 includes a Radio Frequency (RF) circuit 710, a memory 720, an input unit 730, a display unit 740, a processor 760, an audio circuit 770, a Wi-fi (wireless fidelity) module 780, and a power supply 790.
The input unit 730 may be used, among other things, to receive numeric or character information input by a user and to generate signal inputs related to user settings and function control of the mobile terminal 700. Specifically, in the embodiment of the present invention, the input unit 730 may include a touch panel 731. The touch panel 731, also referred to as a touch screen, can collect touch operations of a user (e.g. operations of the user on the touch panel 731 by using a finger, a stylus pen, or any other suitable object or accessory) thereon or nearby, and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 731 may include two portions of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 760, and can receive and execute commands sent from the processor 760. In addition, the touch panel 731 may be implemented by various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 731, the input unit 730 may include other input devices 732, and the other input devices 732 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
Among them, the display unit 740 may be used to display information input by the user or information provided to the user and various menu interfaces of the mobile terminal 700. The display unit 740 may include a display panel 741, and optionally, the display panel 741 may be configured in the form of an LCD or an Organic Light-Emitting Diode (OLED).
It should be noted that the touch panel 731 can cover the display panel 741 to form a touch display screen, and when the touch display screen detects a touch operation on or near the touch display screen, the touch display screen is transmitted to the processor 760 to determine the type of the touch event, and then the processor 760 provides a corresponding visual output on the touch display screen according to the type of the touch event.
The touch display screen comprises an application program interface display area and a common control display area. The arrangement modes of the application program interface display area and the common control display area are not limited, and can be an arrangement mode which can distinguish two display areas, such as vertical arrangement, left-right arrangement and the like. The application interface display area may be used to display an interface of an application. Each interface may contain at least one interface element such as an icon and/or widget desktop control for an application. The application interface display area may also be an empty interface that does not contain any content. The common control display area is used for displaying controls with high utilization rate, such as application icons like setting buttons, interface numbers, scroll bars, phone book icons and the like.
The processor 760 is a control center of the mobile terminal 700, connects various parts of the entire handset using various interfaces and lines, and performs various functions of the mobile terminal 700 and processes data by operating or executing software programs and/or modules stored in the first memory 721 and calling data stored in the second memory 722, thereby integrally monitoring the mobile terminal 700. Alternatively, processor 760 may include one or more processing units.
In an embodiment of the present invention, the processor 760 is configured to detect an operation on the currently displayed interface by calling a software program and/or module stored in the first memory 721 and/or data stored in the second memory 722;
and when the preset operation on the current display interface is detected, executing a first event or a second event according to the current display interface and/or the relevant parameters of the preset operation.
Optionally, the computer program when executed by the processor 760 performs the steps of:
judging whether a target interface name of the current display interface and a target application package name corresponding to the target interface name exist in a database of the mobile terminal;
if the target application package name and the target interface name exist, judging whether the relevant parameters of the preset operation meet preset conditions or not;
and if the preset condition is met, executing the first event, otherwise executing the second event.
Optionally, the computer program when executed by the processor 760 performs the steps of:
judging whether a target interface name of the current display interface and a target application package name corresponding to the target interface name exist in a database of the mobile terminal;
and if the target application package name and the target interface name exist, executing the second event, otherwise, executing the first event.
Optionally, the computer program when executed by the processor 760 performs the steps of:
judging whether the relevant parameters of the preset operation meet preset conditions or not;
and if the preset condition is met, executing the first event, otherwise executing the second event.
Optionally, the first event is an event supported by any display interface;
optionally, the computer program when executed by the processor 760 performs the steps of:
displaying prompt information for prompting whether to execute the first event;
and if a first event execution instruction input according to the prompt information is received, executing the first event according to the first event execution instruction.
Optionally, the computer program when executed by the processor 760 performs the steps of:
if the target application package name or the target interface name does not exist, acquiring a first image and a second image, wherein the first image is an image displayed by the mobile terminal at a preset moment in the continuous process of the preset operation, and the second image is an image displayed by the mobile terminal when the preset operation is finished;
comparing pixel points in the first image and the second image;
and if the number of different pixel points in the first image and the second image is larger than a preset value, storing a target interface name corresponding to the current display interface and a target application package name corresponding to the target interface name into the database.
The mobile terminal of the present invention may be a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), or a vehicle-mounted computer.
The mobile terminal 700 can implement the processes implemented by the terminal in the foregoing embodiments, and details are not repeated here to avoid repetition.
In the mobile terminal 700 of the embodiment of the present invention, the processor 760 can execute the first event or the second event according to the current display interface and/or the relevant parameters of the predetermined operation, so as to avoid the conflict of interface display, and improve the user experience and the intelligent degree of the mobile terminal.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
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 controlling the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when executed, the program 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 description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (10)

1. An information processing method applied to a mobile terminal is characterized by comprising the following steps:
detecting operation on a current display interface;
when a preset operation on the current display interface is detected, executing a first event or a second event according to the current display interface and/or relevant parameters of the preset operation;
the executing a first event or a second event according to the current display interface and/or the relevant parameters of the preset operation comprises:
judging whether a target interface name of the current display interface and a target application package name corresponding to the target interface name exist in a database of the mobile terminal;
if the target application package name and the target interface name exist, judging whether the relevant parameters of the preset operation meet preset conditions or not;
if the preset condition is met, executing the first event, otherwise executing the second event;
or
Judging whether a target interface name of the current display interface and a target application package name corresponding to the target interface name exist in a database of the mobile terminal;
if the target application package name and the target interface name exist, executing the second event, otherwise executing the first event;
after judging whether the target interface name of the current display interface and the target application package name corresponding to the target interface name exist in the database of the mobile terminal, the method further comprises the following steps:
if the target application package name or the target interface name does not exist, acquiring a first image and a second image, wherein the first image is an image displayed by the mobile terminal at a preset moment in the continuous process of the preset operation, and the second image is an image displayed by the mobile terminal when the preset operation is finished;
comparing pixel points in the first image and the second image;
and if the number of different pixel points in the first image and the second image is larger than a preset value, storing a target interface name corresponding to the current display interface and a target application package name corresponding to the target interface name into the database.
2. The information processing method according to claim 1, wherein the executing a first event or a second event according to the current display interface and/or the relevant parameter of the predetermined operation includes:
judging whether the relevant parameters of the preset operation meet preset conditions or not;
and if the preset condition is met, executing the first event, otherwise executing the second event.
3. The information processing method according to claim 1, wherein the first event is an event supported by any display interface;
if the target application package name and the target interface name exist, after the second event is executed, the method further includes:
displaying prompt information for prompting whether to execute the first event;
and if a first event execution instruction input according to the prompt information is received, executing the first event according to the first event execution instruction.
4. The information processing method according to claim 1, wherein the first event is a split screen event, and the second event is an event in which an application corresponding to the current display interface responds to the predetermined operation.
5. A mobile terminal, comprising:
the detection module is used for detecting the operation of the current display interface;
the processing module is used for executing a first event or a second event according to the current display interface and/or relevant parameters of the preset operation when the preset operation on the current display interface is detected;
the processing module comprises:
the first judgment submodule is used for judging whether the target interface name of the current display interface and the target application package name corresponding to the target interface name exist in a database of the mobile terminal;
the second judgment submodule is used for judging whether the relevant parameters of the preset operation meet preset conditions or not if the target application package name and the target interface name exist;
the first processing submodule is used for executing the first event if a preset condition is met, and otherwise, executing the second event;
or
The first judgment submodule is used for judging whether the target interface name of the current display interface and the target application package name corresponding to the target interface name exist in a database of the mobile terminal;
the second processing submodule is used for executing the second event if the target application package name and the target interface name exist, and otherwise executing the first event;
the processing module further comprises:
the obtaining submodule is used for obtaining a first image and a second image if the target application package name or the target interface name does not exist, wherein the first image is an image displayed by the mobile terminal at a preset moment in the continuous process of the preset operation, and the second image is an image displayed by the mobile terminal when the preset operation is finished;
the comparison submodule is used for comparing pixel points in the first image and the second image;
and the storage submodule is used for storing the target interface name corresponding to the current display interface and the target application package name corresponding to the target interface name into the database if the number of different pixel points in the first image and the second image is larger than a preset value.
6. The mobile terminal of claim 5, wherein the processing module comprises:
the second judgment submodule is used for judging whether the relevant parameters of the preset operation meet preset conditions or not;
and the third processing submodule is used for executing the first event if a preset condition is met, and otherwise, executing the second event.
7. The mobile terminal according to claim 5, wherein the first event is an event supported by any display interface;
the processing module further comprises:
the display submodule is used for displaying prompt information for prompting whether to execute the first event;
and the fourth processing submodule is used for executing the first event according to the first event execution instruction if the first event execution instruction input according to the prompt information is received.
8. The mobile terminal according to claim 5, wherein the first event is a split screen event, and the second event is an event that an application corresponding to the current display interface responds to the predetermined operation.
9. A mobile terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps in the information processing method according to any one of claims 1 to 4 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the information processing method according to any one of claims 1 to 4.
CN201710881024.6A 2017-09-26 2017-09-26 Information processing method and mobile terminal Active CN107728898B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710881024.6A CN107728898B (en) 2017-09-26 2017-09-26 Information processing method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710881024.6A CN107728898B (en) 2017-09-26 2017-09-26 Information processing method and mobile terminal

Publications (2)

Publication Number Publication Date
CN107728898A CN107728898A (en) 2018-02-23
CN107728898B true CN107728898B (en) 2020-03-03

Family

ID=61207995

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710881024.6A Active CN107728898B (en) 2017-09-26 2017-09-26 Information processing method and mobile terminal

Country Status (1)

Country Link
CN (1) CN107728898B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109933199B (en) * 2019-03-13 2022-05-24 阿波罗智联(北京)科技有限公司 Control method and device based on gestures, electronic equipment and storage medium
CN113821128A (en) * 2020-06-18 2021-12-21 华为技术有限公司 Terminal device, gesture operation method thereof and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102968277A (en) * 2012-11-30 2013-03-13 北京小米科技有限责任公司 Method and device for deleting or cutting file based on touch screen
US8589492B2 (en) * 2004-04-30 2013-11-19 Sap Ag Electronic message object drop feature
CN103902180A (en) * 2012-12-28 2014-07-02 联想(北京)有限公司 Information processing method and electronic equipment
CN106354411A (en) * 2016-08-26 2017-01-25 维沃移动通信有限公司 Interface startup method and mobile terminal
CN106873872A (en) * 2017-01-11 2017-06-20 联想(北京)有限公司 A kind of control method and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8589492B2 (en) * 2004-04-30 2013-11-19 Sap Ag Electronic message object drop feature
CN102968277A (en) * 2012-11-30 2013-03-13 北京小米科技有限责任公司 Method and device for deleting or cutting file based on touch screen
CN103902180A (en) * 2012-12-28 2014-07-02 联想(北京)有限公司 Information processing method and electronic equipment
CN106354411A (en) * 2016-08-26 2017-01-25 维沃移动通信有限公司 Interface startup method and mobile terminal
CN106873872A (en) * 2017-01-11 2017-06-20 联想(北京)有限公司 A kind of control method and electronic equipment

Also Published As

Publication number Publication date
CN107728898A (en) 2018-02-23

Similar Documents

Publication Publication Date Title
US10397649B2 (en) Method of zooming video images and mobile display terminal
CN107466077B (en) Network switching method and mobile terminal
CN109062479B (en) Split screen application switching method and device, storage medium and electronic equipment
CN105335048B (en) Electronic equipment with hidden application icon and method for hiding application icon
CN107678644B (en) Image processing method and mobile terminal
US9766739B2 (en) Method and apparatus for constructing a home screen in a terminal having a touch screen
US20200183574A1 (en) Multi-Task Operation Method and Electronic Device
EP3617861A1 (en) Method of displaying graphic user interface and electronic device
AU2013276998B2 (en) Mouse function provision method and terminal implementing the same
US20170083219A1 (en) Touchscreen Apparatus User Interface Processing Method and Touchscreen Apparatus
US9891816B2 (en) Method and mobile terminal for processing touch input in two different states
EP3136214A1 (en) Touch operation method and apparatus for terminal
US20140035853A1 (en) Method and apparatus for providing user interaction based on multi touch finger gesture
CN106354373B (en) Icon moving method and mobile terminal
CN108366169B (en) Notification message processing method and mobile terminal
US9298364B2 (en) Mobile electronic device, screen control method, and storage medium strong screen control program
CN106775378B (en) Method for determining candidate words of input method and mobile terminal
CN110825295B (en) Application program control method and electronic equipment
CN107632761B (en) Display content viewing method, mobile terminal and computer readable storage medium
CN107229408B (en) Terminal, input control method thereof, and computer-readable storage medium
CN107562262B (en) Method for responding touch operation, terminal and computer readable storage medium
CN107728898B (en) Information processing method and mobile terminal
CN113050863A (en) Page switching method and device, storage medium and electronic equipment
CN106446014B (en) File searching method and mobile terminal
CN110221741B (en) Icon management method and terminal equipment

Legal Events

Date Code Title Description
PB01 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