CN117407135A - Task execution method and device and electronic equipment - Google Patents

Task execution method and device and electronic equipment Download PDF

Info

Publication number
CN117407135A
CN117407135A CN202311349643.2A CN202311349643A CN117407135A CN 117407135 A CN117407135 A CN 117407135A CN 202311349643 A CN202311349643 A CN 202311349643A CN 117407135 A CN117407135 A CN 117407135A
Authority
CN
China
Prior art keywords
target
target application
content
task
file
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.)
Pending
Application number
CN202311349643.2A
Other languages
Chinese (zh)
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 CN202311349643.2A priority Critical patent/CN117407135A/en
Publication of CN117407135A publication Critical patent/CN117407135A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9537Spatial or temporal dependent retrieval, e.g. spatiotemporal queries
    • 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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a task execution method, a task execution device and electronic equipment, and belongs to the technical field of electronics. The method comprises the following steps: acquiring a target file and a target application icon; identifying N contents matched with a target application program in the target file, wherein the target application icon is an application icon of the target application program, and N is a positive integer; and executing target tasks matched with the N contents through the target application program.

Description

Task execution method and device and electronic equipment
Technical Field
The application belongs to the technical field of electronics, and particularly relates to a task execution method and device and electronic equipment.
Background
In the prior art, when related information of contents in a file is required to be queried through an application program or tasks are required to be executed by utilizing the contents in the file, the file is required to be opened to check the corresponding contents, and then a user inputs the contents in the file into the application program to execute subsequent tasks, so that the task execution efficiency is low.
Disclosure of Invention
The embodiment of the application aims to provide a task execution method, a task execution device and electronic equipment, which can solve the problem of low task execution efficiency in the prior art.
In a first aspect, an embodiment of the present application provides a task execution method, where the method includes:
acquiring a target file and a target application icon;
identifying N contents matched with a target application program in the target file, wherein the target application icon is an application icon of the target application program, and N is a positive integer;
and executing target tasks matched with the N contents through the target application program.
In a second aspect, an embodiment of the present application provides a task execution device, including:
the acquisition module is used for acquiring the target file and the target application icon;
the first identification module is used for identifying N contents matched with a target application program in the target file, wherein the target application icon is an application icon of the target application program, and N is a positive integer;
and the execution module is used for executing the target tasks matched with the N contents through the target application program.
In a third aspect, embodiments of the present application provide an electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the method as described in the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and where the processor is configured to execute a program or instructions to implement a method according to the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product stored in a storage medium, the computer program product being executable by at least one processor to implement the method according to the first aspect.
In the embodiment of the application, after the target file and the target application icon are acquired, the content matched with the target application program corresponding to the target application icon in the target file can be automatically identified, and then the task matched with the identified content is directly executed through the target application program. Therefore, according to the embodiment of the application, the application program can be triggered to execute the corresponding task without opening the file or inputting the content in the file into the application program by the user, and the task execution efficiency can be improved.
Drawings
FIG. 1 is a flow chart of a task execution method provided by an embodiment of the present application;
FIG. 2 is a block diagram of a task execution device provided in an embodiment of the present application;
FIG. 3 is one of the block diagrams of the electronic device provided in the embodiments of the present application;
fig. 4 is a second block diagram of the electronic device according to the embodiment of the present application.
Detailed Description
Technical solutions in the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application are within the scope of the protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or otherwise described herein, and that the objects identified by "first," "second," etc. are generally of a type and do not limit the number of objects, for example, the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The task execution method provided by the embodiment of the application is described in detail below through specific embodiments and application scenes thereof with reference to the accompanying drawings.
Fig. 1 is a flow chart of a task execution method provided in an embodiment of the present application. The task execution method may include:
and step 101, acquiring a target file and a target application icon.
The embodiment of the application is not limited to the acquiring manner of the target file and the target application program, and any manner in which the target file and the target application icon can be acquired can fall within the protection scope of the application.
In some embodiments, the obtaining the target file and the target application icon may be specifically expressed as:
receiving touch input aiming at a target file and a target application icon;
and responding to the touch input, and acquiring a target file and a target application icon.
Further, the above touch input may be, but is not limited to being, represented by any one of the following:
dragging the target file to the input of the display position of the target application icon;
dragging the target file to the target application program;
an input dragging the target application icon to a display position of the target file;
dragging the target application icon to a target file;
And input of the target file and the target application icon is selected in a circling mode.
In other embodiments, the obtaining the target file and the target application icon may be specifically expressed as:
receiving a voice input comprising names of a target file and a target application;
in response to the voice input, a target file and a target application icon are acquired.
In other embodiments, if the electronic device receives information of other electronic devices including names of the target file and the target application icon program, the electronic device may acquire the target file and the target application icon.
In particular implementations, the file type of the target file may be, but is not limited to, any of the following: PDF files, word files, images, video files, etc. The application program corresponding to the target application icon, that is, the target application program, may be, but is not limited to, any one of the following: map application, communication application, calendar application, alarm application. Further, the communication application may include at least one of: dialing applications, instant messaging applications, etc.
Step 102, identifying N contents matched with a target application program in the target file, wherein the target application icon is an application icon of the target application program, and N is a positive integer.
In the embodiment of the application, after the target file and the target application icon are acquired, all or part of the content matched with the target application program in the target file can be identified so as to quickly execute the task through the target application program.
The content matching the application can be understood as: the application program performs the content available to the task.
In some embodiments, where the target application is a map application, the N content may include places, and further, may also include relevant information of places, such as place introduction information, place consumption information, and the like.
In the case where the target application is a communication application, the N contents may include a contact, such as a phone number, a communication account, identification code information of the communication account, and the like.
In the case where the target application is a calendar application, the N pieces of content may include dates, and further, may further include information related to the dates, such as backlog, and the like.
In the case that the target application is an alarm clock application, the N contents may include time, and further, may further include information about time, such as backlog.
In particular implementations, the content in the file may be recognized, but is not limited to, by optical character recognition (Optical Character Recognition, OCR) techniques.
Notably, step 102 may be performed in the background, i.e., the performance of step 102 may not be noticeable to the user.
And step 103, executing target tasks matched with the N contents through the target application program.
In the embodiment of the present application, after N contents are identified, the target application program may be directly called to execute the corresponding task, without paying attention to whether the target application program is started before executing step 103, so that the task may be simplified. Tasks may also be replaced by actions, operations, etc.
In some embodiments, where the target application is a map application, the target task may be a task of displaying a navigation route, etc., where the displayed navigation route is generated based on N pieces of content. In the case where the target application is a communication application, the target task may be a task such as dialing, adding contacts, displaying a chat interface, or the like. In the case where the target application is a calendar application, the target task may be a task such as creating a schedule. In the case where the target application is an alarm clock application, the target task may be a task of creating an alarm clock reminder or the like.
For easy understanding, the description will be given by taking the account number with the content of the contact person as an example, where the target application is an instant messaging application:
In this example, the target task may be an add contacts task or a display chat interface task, which may be specifically based on a contact decision whether the instant messaging application has added the account.
In particular, after the account number of the contact person is extracted, an instant messaging application program can be started, and the account number is automatically searched in the instant messaging application program. If the contact list of the instant messaging application program comprises the contact of the account, a chat interface with the contact can be directly displayed; if the contact list of the instant messaging application does not include the contact of the account, a task can be added to the contact.
In the embodiment of the application, after the target file and the target application icon are acquired, the content matched with the target application program corresponding to the target application icon in the target file can be automatically identified, and then the task matched with the identified content is directly executed through the target application program. Therefore, according to the embodiment of the application, the application program can be triggered to execute the corresponding task without opening the file by a user or inputting the content in the file to the application program by the user, and the task execution efficiency can be improved.
In some embodiments, in a case where the number of tasks that the target application program can execute and that match with the first content is greater than 1, and the first content is a content of the N contents, after the obtaining the target file and the target application icon, before the executing, by the target application program, the target task that matches with the N contents, the method further includes:
identifying the acquisition modes of the target file and the target application icon;
wherein the target task comprises: and the target application program can execute at least two tasks matched with the first content and corresponding to the acquisition mode.
In this embodiment, a case is considered in which an application program can execute at least two tasks for the same content, for which case there is a problem that tasks executed by the application program for the same content are confused. In order to solve the problem, in this embodiment, at least two acquisition modes may be set for the acquisition of the file and the application icon in advance, and the correspondence relationship between the "at least two acquisition modes of the file and the application icon" and the "at least two tasks of the application program execution and the content matching" may be pre-saved, so that the task of the application program execution and the content matching may be determined by identifying the acquisition modes of the file and the application icon, so as to improve the reliability of the execution task of the application program.
In a specific implementation, the at least two acquisition manners of the target file and the target application icon may be at least two acquisition manners in the related description of step 101.
In some embodiments, the performing, by the target application, the target task that matches the N content includes at least one of:
executing a first task matched with the first content through the target application program under the condition that the acquisition mode is that a first input for dragging the target file to a first area corresponding to the target application icon is received;
and under the condition that the acquisition mode is that a second input of dragging the target file to a second area corresponding to the target application icon is received, executing a second task matched with the first content through the target application program.
In this embodiment, the application program may be controlled to perform different tasks for the same content through the partition of the region to which the application icon corresponds.
The area corresponding to the application icon may be a display area of the application icon, or may be a preset area associated with the application icon, which may be specifically set according to actual requirements, which is not limited in the embodiment of the present application.
Further, when the file is dragged to the area corresponding to the application icon, the electronic device can display all the areas corresponding to the application icon and distinguish and display all the areas corresponding to the application icon, so that a user can conveniently and accurately drag the file to the corresponding area corresponding to the application icon, and further task execution reliability is improved.
For ease of understanding, the following description will take the target application as a dialing application and N contents as contact ways as examples.
In this example, if an input is received dragging the target file over the application icon of the dialing application, the electronic device may automatically dial the phone number identified in the target file for that phone number.
If an input is received dragging the target file below the application icon of the dialing application, the electronic device may automatically save the telephone number identified in the target file for that telephone number.
By the method, the application program is controlled to execute different tasks aiming at the same content through the partition of the area corresponding to the application icon, so that the task execution reliability can be improved.
In some embodiments, the performing, by the target application, the target task that matches the N content may include at least one of:
Executing, by the target application, a third task that matches the second content, in a case where the number of second contents included in the N contents is 1;
and executing a fourth task matched with the second content by the target application program under the condition that the number of the second content included in the N pieces of content is larger than 1.
In this embodiment, consider the case where there is one or more of the same type of content in the file that matches the application, for which it is understood that the application may perform the same task for the at least one or more content. Based on this, there is a problem that the extracted content confusion easily occurs for the application program to perform the task of the same type of content matching for this case. To solve this problem, tasks performed by the application are controlled with respect to the number of identified types of content to improve the reliability of the tasks performed by the application.
For ease of understanding, in one example, the target application is illustrated as a dialing application and the second content is illustrated as a telephone number.
In this example, if the number of telephone numbers extracted from the target file is 1, the dialing application may directly dial the telephone number.
If the number of telephone numbers extracted from the target file is greater than 1, all the telephone numbers extracted from the target file may be displayed, and in the case of receiving a selection input of one of the telephone numbers, the selected telephone number is dialed by the dialing application.
In another example, the target application is illustrated as a map application and the second content is illustrated as a place.
In this example, if the number of places extracted from the target file is greater than 1, a first navigation route may be displayed, wherein a start point of the first navigation route may be a preset position or a located current position, and sequentially passes through all places included in the N contents.
If the number of the places extracted from the target file is 1, the map application program may display a second navigation route, wherein the start point of the second navigation route may be a preset position or a located current position, and the end point is the place extracted from the target file.
In some embodiments, in a case where the target file is a travel file, the target application is a map application, and the N contents include a plurality of places, after the acquiring the target file and the target application icon, before the executing, by the target application, a fourth task matched with the second content, the method further includes:
Identifying a target travel type of the travel file;
the performing, by the target application, a fourth task that matches the second content, comprising:
displaying a first navigation route matched with the target travel type through the target application program;
the first navigation route sequentially passes through all places included in the N contents; in the case that the target travel type is a first travel type, the starting point and the ending point of the first navigation route are the same place in the N contents; and under the condition that the target travel type is the second travel type, starting points and ending points of the first navigation route are different places in the N contents.
Notably, in the embodiment of the present application, in the case where the target file includes a place, the visual target file is a travel file. In addition, based on the name of the target file, it may also be determined whether the target file is a travel file, for example: in the case where the name of the target file includes words of travel, carpooling, spring tour, autumn tour, and the like, it may be determined that the target file is a travel file.
In this implementation, the second content is embodied as a venue. In the case where the number of places extracted from the travel file is greater than 1, the type of the navigation route displayed by the map application may be related based on the travel type of the travel file.
In specific implementation, the navigation route type corresponding to each travel type may be preset.
The travel type of the travel file can be determined based on the file content, can be recorded in the travel file in advance, and can be recorded in the name of the travel file in advance. The travel type of the travel file may include at least one of: travel, carpooling travel, etc. In one example, the first travel type may be travel and the second travel type may be carpool travel.
For a first navigation route where the start point and the end point are the same location, it may be referred to as a loop navigation route. For a first navigation route having a start point and an end point that are different places, it may be called a serial navigation route. In one example, the end point of the serial navigation route may be a second location extracted from the travel file, the display location of the second location in the travel file being located after the display locations of other locations in the travel file.
By the method, the type of the navigation route displayed by the application program can be controlled based on the travel type of the travel file, so that the task execution reliability of the application program can be improved.
In some embodiments, further, the N pieces of content further include information about the location;
After the first navigation route matched with the target travel type is displayed by the target application program, the method may further include:
receiving a third input by a user for a first location in the first navigation route;
and displaying related information of the first place in response to the third input.
It is understood that the first location may be any location in the first navigation route.
In a specific implementation, the display mode of the related information of the first location may be suspension display, skip display or overhead display, which may be specifically determined according to actual needs, and the embodiment of the present application is not limited to this.
In this embodiment, the user may trigger the electronic device to display the related information of the first location by performing the third input on the first location in the first navigation route, and thus, display of the related information about the first location in the file may be simplified.
In other embodiments, after the displaying, by the target application, the first navigation route that matches the target travel type may further include:
receiving a fourth input by a user for a third location in the first navigation route;
and responding to the fourth input, displaying a third navigation route, wherein the starting point of the third navigation route is a preset position or a positioned current position, and the ending point of the third navigation route is the third place.
Notably, the third input and the fourth input are different inputs, such as: the third input is a click input, the fourth input is a double click input, etc. The third location may be any location in the first navigation route. The third location may be the same as the first location or may be different.
In this embodiment, the user may trigger the target application to update the displayed navigation route, specifically to a route that navigates from the preset location or the located current location to the third location, by executing a fourth input to the third location in the first navigation route. In this way, updating of the navigation route of the map application can be simplified.
It should be noted that, the various optional embodiments described in the embodiments of the present application may be implemented in combination with each other without collision, or may be implemented separately, which is not limited to the embodiments of the present application.
In order to facilitate understanding of the task execution method provided in the above embodiment, the task execution method will be described in the following in a specific embodiment.
The scene embodiment may specifically include the following steps:
step one, unlocking equipment by a user, and finding a target file in a file manager or other applications;
And step two, the user drags the target file to the map class application desktop icon.
1. And analyzing the places contained in the target file by utilizing the OCR technology, and automatically displaying the navigation route planning from the current position to the identified places when only one place exists.
2. When a plurality of pieces of location information are identified, a navigation route is automatically generated starting from the current location and returning to the current location after the identified location.
3. For the navigation route generated by the step 2, the user clicks a certain place, and the content associated with the point in the document can be quickly and levitated and displayed.
And step three, the user drags the target file to the dial application desktop icon.
1. When the user drags the target file to the position above the dialing application icon, the telephone numbers in the file are identified by utilizing OCR technology and automatically dialed, and when a plurality of telephone numbers are contained, the names of people nearby the telephone numbers in the file are automatically identified and the user is prompted to select, and the next key is selected for dialing.
2. When a user drags a target file below a dialing application icon, OCR technology is used to identify telephone numbers in the file and automatically create contacts, wherein contact names are automatically identified from the document.
And step four, the user drags the target file to the alarm clock application desktop icon.
1. And identifying date information in the document by utilizing an OCR technology, automatically creating an alarm clock reminder if related information such as a train ticket and an air ticket is contained near the date information content, and adding the air ticket or the train ticket information identified by OCR in alarm clock details.
And fifthly, dragging the target file to the desktop icon of the instant messaging application program by the user.
1. If the target file contains the account number or the mobile phone number of the instant messaging application program, the corresponding account number is automatically searched, a friend adding task is initiated, and if friends are added, the user jumps to a private chat interface of the user.
2. If the object file contains the identification code of the instant messaging application program, automatically scanning the identification code.
Step six, the user drags the target file to the calendar desktop icon.
If the target file contains date information, identifying the associated content of the date information, and automatically creating a schedule.
Notably:
1. dragging the target file to the desktop icon application, wherein the icon comprises but is not limited to the application, and when dragging to a certain application icon, the information content associated with the application is automatically extracted and the task is executed.
2. The file type of the target file may include, but is not limited to, pdf, word, png, and the like.
3. When the application can execute at least two tasks on the same content, dragging the target file to the upper part of the icon and dividing the target file into an upper area and a lower area, namely, a telephone icon is divided into an upper area and a lower area, dragging the upper area to make a call, dragging the lower area to add a contact.
By the method, the user can drag the file to the corresponding application icon, and at the moment, the content in the file is automatically analyzed to generate relevant information, so that the user can quickly execute tasks, and the user experience is improved.
According to the task execution method provided by the embodiment of the application, the execution main body can be a task execution device. In the embodiment of the present application, a task execution device provided in the embodiment of the present application is described by taking a task execution method performed by the task execution device as an example.
As shown in fig. 2, the task performing device may include:
an obtaining module 201, configured to obtain a target file and a target application icon;
a first identifying module 202, configured to identify N pieces of content in the target file that match the target application program, where the target application icon is an application icon of the target application program, and N is a positive integer;
and the execution module 203 is used for executing the target tasks matched with the N contents through the target application program.
In some embodiments, where the number of tasks that the target application can perform that match the first content is greater than 1, the first content is one of the N content, the apparatus further comprises:
the second identifying module is used for identifying the obtaining modes of the target file and the target application icon after the target file and the target application icon are obtained and before the target application program executes the target tasks matched with the N contents;
wherein the target task comprises: and the target application program can execute at least two tasks matched with the first content and corresponding to the acquisition mode.
In some embodiments, the execution module comprises at least one of:
the first execution unit is used for executing a first task matched with the first content through the target application program under the condition that the acquisition mode is that a first input for dragging the target file to a first area corresponding to the target application icon is received;
and the second execution unit is used for executing a second task matched with the first content through the target application program under the condition that the acquisition mode is that the second input of dragging the target file to a second area corresponding to the target application icon is received.
In some embodiments, the execution module includes at least one of:
a third execution unit configured to execute, by the target application, a third task that matches the second content, in a case where the number of second contents included in the N contents is 1;
and a fourth execution unit configured to execute, by the target application, a fourth task that matches the second content, in a case where the number of second contents included in the N contents is greater than 1.
In some embodiments, in a case where the target file is a travel file, the target application is a map application, and the N contents include a plurality of places, the apparatus further includes:
the third identifying module is used for identifying the target travel type of the travel file after the target file and the target application icon are acquired and before the fourth task matched with the second content is executed through the target application program;
the fourth execution unit is configured to:
displaying a first navigation route matched with the target travel type through the target application program;
the first navigation route sequentially passes through all places included in the N contents; in the case that the target travel type is the target travel type, the starting point and the ending point of the first navigation route are the same place in the N contents; and under the condition that the target travel type is the second travel type, starting points and ending points of the first navigation route are different places in the N contents.
In some embodiments, the N pieces of content further include information about the place;
the apparatus further comprises:
the receiving module is used for receiving a third input of a user aiming at a first place in the first navigation route;
and the display module is used for responding to the third input and displaying the related information of the first place.
The task execution device in the embodiment of the application may be an electronic device, or may be a component in an electronic device, for example, an integrated circuit or a chip. The electronic device may be a terminal, or may be other devices than a terminal. By way of example, the electronic device may be a mobile phone, tablet computer, notebook computer, palm computer, vehicle-mounted electronic device, mobile internet appliance (Mobile Internet Device, MID), augmented reality (augmented reality, AR)/Virtual Reality (VR) device, robot, wearable device, ultra-mobile personal computer, UMPC, netbook or personal digital assistant (personal digital assistant, PDA), etc., but may also be a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and the embodiments of the present application are not limited in particular.
The task execution device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
The task execution device provided in the embodiment of the present application can implement each process implemented by the method embodiment, and in order to avoid repetition, a description is omitted here.
Optionally, as shown in fig. 3, the embodiment of the present application further provides an electronic device 300, including a processor 301 and a memory 302, where a program or an instruction capable of running on the processor 301 is stored in the memory 302, and the program or the instruction implements each step of the above task execution method embodiment when executed by the processor 301, and the steps achieve the same technical effect, so that repetition is avoided, and no further description is given here.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 4 is a schematic hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 400 includes, but is not limited to: radio frequency unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, and processor 410.
Those skilled in the art will appreciate that the electronic device 400 may also include a power source (e.g., a battery) for powering the various components, which may be logically connected to the processor 410 by a power management system to perform functions such as managing charge, discharge, and power consumption by the power management system. The electronic device structure shown in fig. 4 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
Wherein the processor 410 is configured to:
acquiring a target file and a target application icon;
identifying N contents matched with a target application program in the target file, wherein the target application icon is an application icon of the target application program, and N is a positive integer;
and executing target tasks matched with the N contents through the target application program.
In some embodiments, where the number of tasks that the target application can execute that match the first content is greater than 1, the first content is one of the N content, the processor 410 is further configured to:
identifying the acquisition modes of the target file and the target application icon;
Wherein the target task comprises: and the target application program can execute at least two tasks matched with the first content and corresponding to the acquisition mode.
In some embodiments, processor 410 is configured to at least one of:
executing a first task matched with the first content through the target application program under the condition that the acquisition mode is that a first input for dragging the target file to a first area corresponding to the target application icon is received;
and under the condition that the acquisition mode is that a second input of dragging the target file to a second area corresponding to the target application icon is received, executing a second task matched with the first content through the target application program.
In some embodiments, processor 410 is configured to at least one of:
executing, by the target application, a third task that matches the second content, in a case where the number of second contents included in the N contents is 1;
and executing a fourth task matched with the second content by the target application program under the condition that the number of the second content included in the N pieces of content is larger than 1.
In some embodiments, where the target file is a travel file and the target application is a map application, the N content includes a plurality of places, the processor 410 is further configured to:
identifying a target travel type of the travel file;
a display unit 406, configured to display, by the target application program, a first navigation route that matches the target travel type;
the first navigation route sequentially passes through all places included in the N contents; in the case that the target travel type is a first travel type, the starting point and the ending point of the first navigation route are the same place in the N contents; and under the condition that the target travel type is the second travel type, starting points and ending points of the first navigation route are different places in the N contents.
In some embodiments, the N pieces of content further include information about the place;
a user input unit 407 for receiving a third input by a user for a first location in the first navigation route;
and a display unit 406, configured to display related information of the first location in response to the third input.
It should be appreciated that in embodiments of the present application, the input unit 404 may include a graphics processor (Graphics Processing Unit, GPU) 4041 and a microphone 4042, with the graphics processor 4041 processing image data of still pictures or video obtained by an image capture device (e.g., a camera) in a video capture mode or an image capture mode. The display unit 406 may include a display panel 4061, and the display panel 4061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 407 includes at least one of a touch panel 4071 and other input devices 4072. The touch panel 4071 is also referred to as a touch screen. The touch panel 4071 may include two parts, a touch detection device and a touch controller. Other input devices 4072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein.
Memory 409 may be used to store software programs as well as various data. The memory 409 may mainly include a first memory area storing programs or instructions and a second memory area storing data, wherein the first memory area may store a task system, application programs or instructions (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. Further, the memory 409 may include volatile memory or nonvolatile memory, or the memory 409 may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM), static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (ddr SDRAM), enhanced SDRAM (Enhanced SDRAM), synchronous DRAM (SLDRAM), and Direct RAM (DRRAM). Memory 409 in embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
Processor 410 may include one or more processing units; optionally, the processor 410 integrates an application processor that primarily processes operations involving an operating system, user interface, application programs, etc., and a modem processor that primarily processes wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into the processor 410.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored, and when the program or the instruction is executed by a processor, the program or the instruction realizes each process of the embodiment of the task execution method, and the same technical effects can be achieved, so that repetition is avoided, and no redundant description is provided herein.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes computer readable storage medium such as computer readable memory ROM, random access memory RAM, magnetic or optical disk, etc.
The embodiment of the application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled with the processor, and the processor is used for running a program or an instruction, so as to implement each process of the task execution method embodiment, and the same technical effect can be achieved, so that repetition is avoided, and no redundant description is provided here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
The embodiments of the present application provide a computer program product stored in a storage medium, where the program product is executed by at least one processor to implement the respective processes of the embodiments of the task execution method described above, and achieve the same technical effects, and for avoiding repetition, a detailed description is omitted herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solutions of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the methods described in the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those of ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are also within the protection of the present application.

Claims (11)

1. A method of performing a task, comprising:
acquiring a target file and a target application icon;
identifying N contents matched with a target application program in the target file, wherein the target application icon is an application icon of the target application program, and N is a positive integer;
and executing target tasks matched with the N contents through the target application program.
2. The method according to claim 1, wherein, in the case where the number of tasks that the target application can execute and that match with the first content is greater than 1, and the first content is one of the N contents, after the target file and the target application icon are acquired, before the target task that matches with the N contents is executed by the target application, further comprising:
identifying the acquisition modes of the target file and the target application icon;
wherein the target task comprises: and the target application program can execute at least two tasks matched with the first content and corresponding to the acquisition mode.
3. The method of claim 2, wherein the performing, by the target application, a target task that matches the N content comprises at least one of:
Executing a first task matched with the first content through the target application program under the condition that the acquisition mode is that a first input for dragging the target file to a first area corresponding to the target application icon is received;
and under the condition that the acquisition mode is that a second input of dragging the target file to a second area corresponding to the target application icon is received, executing a second task matched with the first content through the target application program.
4. The method of claim 1, wherein the performing, by the target application, a target task that matches the N content comprises at least one of:
executing, by the target application, a third task that matches the second content, in a case where the number of second contents included in the N contents is 1;
and executing a fourth task matched with the second content by the target application program under the condition that the number of the second content included in the N pieces of content is larger than 1.
5. The method according to claim 4, wherein, in a case where the target file is a travel file, the target application is a map application, and the N contents include a plurality of places, after the acquiring the target file and the target application icon, before the performing, by the target application, a fourth task matching the second content, further comprising:
Identifying a target travel type of the travel file;
the performing, by the target application, a fourth task that matches the second content, comprising:
displaying a first navigation route matched with the target travel type through the target application program;
the first navigation route sequentially passes through all places included in the N contents; in the case that the target travel type is a first travel type, the starting point and the ending point of the first navigation route are the same place in the N contents; and under the condition that the target travel type is the second travel type, starting points and ending points of the first navigation route are different places in the N contents.
6. The method of claim 5, wherein the N pieces of content further comprise information about the location;
after the first navigation route matched with the target travel type is displayed by the target application program, the method further comprises the following steps:
receiving a third input by a user for a first location in the first navigation route;
and displaying related information of the first place in response to the third input.
7. A task execution device, characterized by comprising:
The acquisition module is used for acquiring the target file and the target application icon;
the first identification module is used for identifying N contents matched with a target application program in the target file, wherein the target application icon is an application icon of the target application program, and N is a positive integer;
and the execution module is used for executing the target tasks matched with the N contents through the target application program.
8. The apparatus of claim 7, wherein in the case where the number of tasks executable by the target application program that match the first content is greater than 1, the first content is one of the N contents, the apparatus further comprises:
the second identifying module is used for identifying the obtaining modes of the target file and the target application icon after the target file and the target application icon are obtained and before the target application program executes the target tasks matched with the N contents;
wherein the target task comprises: and the target application program can execute at least two tasks matched with the first content and corresponding to the acquisition mode.
9. The apparatus of claim 8, wherein the execution module comprises at least one of:
The first execution unit is used for executing a first task matched with the first content through the target application program under the condition that the acquisition mode is that a first input for dragging the target file to a first area corresponding to the target application icon is received;
and the second execution unit is used for executing a second task matched with the first content through the target application program under the condition that the acquisition mode is that the second input of dragging the target file to a second area corresponding to the target application icon is received.
10. The apparatus of claim 7, wherein the execution module comprises at least one of:
a third execution unit configured to execute, by the target application, a third task that matches the second content, in a case where the number of second contents included in the N contents is 1;
and a fourth execution unit configured to execute, by the target application, a fourth task that matches the second content, in a case where the number of second contents included in the N contents is greater than 1.
11. An electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the task execution method of any one of claims 1 to 6.
CN202311349643.2A 2023-10-18 2023-10-18 Task execution method and device and electronic equipment Pending CN117407135A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311349643.2A CN117407135A (en) 2023-10-18 2023-10-18 Task execution method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311349643.2A CN117407135A (en) 2023-10-18 2023-10-18 Task execution method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN117407135A true CN117407135A (en) 2024-01-16

Family

ID=89486474

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311349643.2A Pending CN117407135A (en) 2023-10-18 2023-10-18 Task execution method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN117407135A (en)

Similar Documents

Publication Publication Date Title
CN108604152B (en) Unread message prompting method and terminal
CN111866270B (en) Application program control method and device and electronic equipment
CN112269798B (en) Information display method and device and electronic equipment
CN113194024B (en) Information display method and device and electronic equipment
CN111859900A (en) Message display method and device and electronic equipment
CN112181253A (en) Information display method and device and electronic equipment
CN112699363A (en) Graphic code identification method and device and electronic equipment
CN112764633B (en) Information processing method and device and electronic equipment
CN108052506B (en) Natural language processing method, device, storage medium and electronic equipment
CN112486387A (en) Application program control method and device
CN115586937A (en) Interface display method and device, electronic equipment and readable storage medium
CN117407135A (en) Task execution method and device and electronic equipment
CN111813303B (en) Text processing method and device, electronic equipment and readable storage medium
CN111949322B (en) Information display method and device
CN111796733B (en) Image display method, image display device and electronic equipment
CN113268961A (en) Travel note generation method and device
CN113032057A (en) Interaction method and device and electronic equipment
CN113347076B (en) Session information deleting method and device
CN114090818A (en) Navigation method and device and electronic equipment
CN115221995A (en) Information generation method and device
CN117519884A (en) Application remarking method and device, electronic equipment and storage medium
CN114579244A (en) Application program running method and device and electronic equipment
CN116384423A (en) Two-dimensional code identification method and device
CN116929400A (en) Navigation route generation method, terminal, electronic device and readable storage medium
CN117666889A (en) Method and device for processing association relationship and electronic 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