CN108737655A - Image processing method and relevant apparatus - Google Patents
Image processing method and relevant apparatus Download PDFInfo
- Publication number
- CN108737655A CN108737655A CN201810468542.XA CN201810468542A CN108737655A CN 108737655 A CN108737655 A CN 108737655A CN 201810468542 A CN201810468542 A CN 201810468542A CN 108737655 A CN108737655 A CN 108737655A
- Authority
- CN
- China
- Prior art keywords
- target photo
- party application
- detecting
- unit
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/7243—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
- H04M1/72439—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72463—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device
Landscapes
- Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Telephone Function (AREA)
- Information Transfer Between Computers (AREA)
- Stored Programmes (AREA)
Abstract
This application discloses a kind of image processing method and relevant apparatus, including:When detecting that third-party application backstage is directed to the deletion request message of Target Photo, the priority assignation of Target Photo is detected;If detecting, the priority assignation of Target Photo is Target Photo to be moved to default memory space, and fed back to third-party application and delete response message to promote third-party application to continue to execute subsequent operation without deletion permission;Output whether the prompt message of delete target picture;If detecting the first information for confirming and restoring Target Photo, restore the Target Photo for presetting memory space.The application is conducive to improve stability and the safety of the picture deletion event of mobile terminal background process third-party application.
Description
Technical field
This application involves electronic technology field more particularly to a kind of image processing methods and relevant apparatus.
Background technology
It is universal with the rapid development of intelligent terminal (such as smart mobile phone) technology, and increasingly, become user
Indispensable electronic product in daily life.In actual use, part third-party application can miss deletion system photograph album etc. and answer
With associated picture, causes user's image data permanently to lose, influence user experience.
Invention content
A kind of image processing method of the embodiment of the present application offer and relevant apparatus are conducive to improve mobile terminal background process
The stability of the picture deletion event of third-party application and safety.
In a first aspect, the embodiment of the present application provides a kind of image processing method, including:
When detecting that third-party application backstage is directed to the deletion request message of Target Photo, the Target Photo is detected
Priority assignation;
If detecting, the priority assignation of the Target Photo is to be moved to the Target Photo default without deletion permission
Memory space, and fed back to the third-party application and delete response message to promote the third-party application to continue to execute follow-up behaviour
Make;
Whether output deletes the prompt message of the Target Photo;
If detecting the first information for confirming and restoring the Target Photo, restore the mesh of the default memory space
It marks on a map piece.
Second aspect, the embodiment of the present application provide a kind of picture processing unit, including detection unit, mobile unit, first
Feedback unit, output unit and recovery unit, wherein
The detection unit, for detect third-party application backstage be directed to Target Photo deletion request message when,
Detect the priority assignation of the Target Photo;
The mobile unit, if for detect the priority assignation of the Target Photo be without deleting permission, will be described
Target Photo is moved to default memory space;
First feedback unit deletes response message to promote the third party for being fed back to the third-party application
Using continuing to execute subsequent operation;
The output unit, for exporting the prompt message for whether deleting the Target Photo;
The recovery unit restores described pre- if confirming the first information for restoring the Target Photo for detecting
If the Target Photo of memory space.
The third aspect, the embodiment of the present application provide a kind of mobile terminal, including processor, memory, communication interface and
One or more programs, wherein said one or multiple programs are stored in above-mentioned memory, and are configured by above-mentioned
It manages device to execute, above procedure includes the instruction for executing the step in the embodiment of the present application first aspect either method.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, wherein above computer is readable
Computer program of the storage medium storage for electronic data interchange, wherein above computer program makes computer execute such as
Step some or all of described in the embodiment of the present application first aspect either method.
As can be seen that in the embodiment of the present application, mobile terminal is detecting third-party application backstage for Target Photo
Deletion request message when, detect the priority assignation of Target Photo, secondly, the priority assignation of Target Photo is without deleting if detecting
Except permission, then Target Photo is moved to default memory space, and feeds back to third-party application and to delete response message to promote the
Tripartite application continue to execute subsequent operation, again, output whether the prompt message of delete target picture, finally, if detect really
Recognize the first information for restoring Target Photo, then restores the Target Photo for presetting memory space.As it can be seen that mobile terminal is directed to third party
The case where using because of the reasons background request delete target picture such as version updating, the case where the Target Photo is without permission is deleted
Under, the direct permanent delet Target Photo of third-party application can be avoided, simultaneously by the picture that diverts the aim to default memory space
Feeding back deletion response message to third-party application makes third-party application continue to execute subsequent operation, to avoid third-party application
Repeating to send the case where request message leads to program crashing because that can not obtain response message in time occurs, and is conducive to improve movement
The stability of the picture removal request of terminal background process third-party application and safety.
Description of the drawings
In order to illustrate more clearly of the technical solution in the embodiment of the present application or background technology, the application will be implemented below
Attached drawing illustrates needed in example or background technology.
Figure 1A is a kind of schematic diagram of the program running space of smart mobile phone;
Figure 1B is a kind of system architecture diagram of Android system;
Fig. 2 is a kind of flow diagram of image processing method provided by the embodiments of the present application;
Fig. 3 is the flow diagram of another image processing method disclosed in the embodiment of the present application;
Fig. 4 is the flow diagram of another image processing method disclosed in the embodiment of the present application;
Fig. 5 is a kind of structural schematic diagram of mobile terminal disclosed in the embodiment of the present application;
Fig. 6 is a kind of functional unit composition block diagram of picture processing unit disclosed in the embodiment of the present application;
Fig. 7 is a kind of structural schematic diagram of smart mobile phone disclosed in the embodiment of the present application.
Specific implementation
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application
Attached drawing, technical solutions in the embodiments of the present application are clearly and completely described, it is clear that described embodiment is only
The embodiment of the application part, instead of all the embodiments.Based on the embodiment in the application, ordinary skill people
The every other embodiment that member is obtained without making creative work should all belong to the model of the application protection
It encloses.
It is described in detail separately below.
Term " first ", " second ", " third " in the description and claims of this application and the attached drawing and "
Four " etc. be for distinguishing different objects, rather than for describing particular order.In addition, term " comprising " and " having " and it
Any deformation, it is intended that cover and non-exclusive include.Such as it contains the process of series of steps or unit, method, be
The step of system, product or equipment are not limited to list or unit, but further include the steps that optionally not listing or list
Member, or further include optionally for the intrinsic other steps of these processes, method, product or equipment or unit.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments
It is contained at least one embodiment of the application.Each position in the description occur the phrase might not each mean it is identical
Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and
Implicitly understand, embodiment described herein can be combined with other embodiments.
As shown in Figure 1A, the mobile terminals such as smart mobile phone are typically provided with program running space at present, and program operation is empty
Between include user's space and operating system space, wherein user's space operation there are one or multiple application programs, this or more
A application program is the third party application of mobile terminal installation, and image processing method described in the embodiment of the present application corresponds to
Software algorithm just operates in user's space, and operating system space motion has the operating system of mobile terminal.
The Mobile operating system iOS that the mobile terminal can specifically run Android android system, Apple Inc. develops
Deng not doing unique restriction herein.As shown in Figure 1B, by taking the running of mobile terminal has android system as an example, corresponding user
Space includes the application layer (Applications) in the android system, and operating system space may include the Android systems
Application framework layer (Application Framework) in system, system operation library layer (including system operation library layer
Android Runtime when Libraries and Android are run), Linux inner core (Linux Kernel).Wherein, it applies
It include all kinds of application programs with user's direct interaction on layer, or the service routine for running on backstage write by Java language.
For example, the program for the common basic function realized on smart mobile phone, such as short message service (Short Messaging
Service, SMS) short message, dialing, Photo Browser, calendar, game, map, WWW (World Wide Web,
Web) programs such as browser and the other applications of developer's exploitation.Application framework layer provides exploitation Android
A series of class libraries needed for application program can be used in reusing component, can also realize personalized extension by inheriting.System
Runtime Library layer is the support of application framework, and service is provided for the various components in android system.System operation library layer by
System class libraries and Android are constituted when running.Include core library and Dalvik virtual machine two parts when Android is run.Linux
Inner nuclear layer is for realizing hardware device drivers, process and memory management, network protocol stack, power management, the cores such as wireless communication
Function.
Mobile terminal may include various handheld device, mobile unit, wearable device (example with wireless communication function
Such as smartwatch, Intelligent bracelet, pedometer), computing device or other processing equipments for being connected to radio modem, with
And various forms of user equipmenies (User Equipment, UE), mobile station (Mobile Station, MS), terminal device
(terminal device) etc..For convenience of description, apparatus mentioned above is referred to as mobile terminal.Below to the application reality
Example is applied to describe in detail.
A kind of flow diagram of image processing method is provided referring to Fig. 2, Fig. 2 is the embodiment of the present application, is applied to
Mobile terminal, this image processing method include:
S201, mobile terminal is when detecting that third-party application backstage is directed to the deletion request message of Target Photo, detection
The priority assignation of the Target Photo;
Wherein, the third-party application includes the types of applications program that mobile terminal is installed in use, such as immediately
Chat application, Video Applications, U.S. figure application etc., do not do unique restriction herein.
Wherein, the Target Photo can be the photo of user's shooting, can also be the picture or come from that local terminal prestores
All kinds of pictures of network, do not do unique restriction herein, which can specifically be stored in picture library.
S202, if the mobile terminal detect the priority assignation of the Target Photo be without deleting permission, will be described
Target Photo is moved to default memory space, and is fed back to the third-party application and delete response message to promote the third party
Using continuing to execute subsequent operation;
Wherein, the default memory space for example can be recycle bin, the subsequent operation performed by the third-party application
Can be diversified, the function being currently running with specific reference to current third party application is related, as third-party application is being held
Row version updating, the version updating process need to execute many more manipulations, and wherein delete target file is the step in many more manipulations,
Then the operation after the delete target file operation is subsequent operation.
Wherein, response message is deleted since third-party application can timely receive to smoothly executing subsequent operation, from
And it is smooth errorless to ensure the execution flow of this side of third-party application.
Whether S203, the mobile terminal output delete the prompt message of the Target Photo;
S204 restores described pre- if the mobile terminal detects the first information for confirming and restoring the Target Photo
If the Target Photo of memory space.
As can be seen that in the embodiment of the present application, mobile terminal is detecting third-party application backstage for Target Photo
When deletion request message, the priority assignation of Target Photo is detected, secondly, if detecting the priority assignation of Target Photo for no deletion
Target Photo is then moved to default memory space, and is fed back to third-party application and delete response message to promote third by permission
Fang Yingyong continues to execute subsequent operation, again, output whether the prompt message of delete target picture, finally, if detecting confirmation
Restore the first information of Target Photo, then restores the Target Photo for presetting memory space.As it can be seen that mobile terminal is answered for third party
The case where with because of the reasons background request delete target picture such as version updating, in the case where the Target Photo is without permission is deleted,
The direct permanent delet Target Photo of third-party application can be avoided by the picture that diverts the aim to default memory space, while to
Third-party application feedback delete response message make third-party application continue to execute subsequent operation, to avoid third-party application because
Response message can not be obtained in time and repeatedly sends the case where request message leads to program crashing and occurs, and be conducive to improve mobile whole
Hold stability and the safety of the picture removal request of background process third-party application.
In a possible example, the method further includes:If the mobile terminal detects that the mesh is deleted in confirmation
It marks on a map the second information of piece, then deletes the Target Photo of the default memory space.
Wherein, after mobile terminal output prompt message, user can directly know that third-party application, Target Photo etc. are specific
Information, to which subjectivity decides whether that the third-party application can be allowed to carry out picture deletion, since user largely can
Identify the case where third-party application accidentally deletes picture, so it is relatively high that decision accuracy is independently carried out by user.
As it can be seen that in this example, after mobile terminal receives the second information, determining user currently allows to delete third-party application
Delete target picture, i.e., this time picture act of deleting is legal, to delete the Target Photo for presetting memory space, that is, is realized
The permanent delet Target Photo, since user largely can recognize that the case where third-party application accidentally deletes picture, therefore
And independently carry out that decision accuracy is relatively high by user, be conducive to improve the accuracy that picture is deleted.
In a possible example, the method further includes:If the mobile terminal detects the Target Photo
Priority assignation is to have deletion permission, then deletes the Target Photo, and feed back to the third-party application delete response message with
The third-party application is promoted to continue to execute subsequent operation.
Wherein, priority assignation is to have that delete the picture of permission can be weight that user takes pictures in picture in the mobile terminal
The various expression pictures etc. for occurring and caching in multiple picture or chat process, importance degree of such picture for user
It is relatively low, the even useless picture of some.
As it can be seen that in this example, mobile terminal is arranged to Target Photo have the case where deleting permission, can directly delete
Except the Target Photo, and to third-party application feedback deletion response message to promote third-party application smoothness to execute subsequent operation,
Improve picture treatment effeciency and system stability.
It is described to detect that third-party application backstage disappears for the removal request of Target Photo in a possible example
When breath, before the priority assignation for detecting the Target Photo, the method further includes:The mobile terminal passes through mobile terminal
File system for the Target Photo delete the setting of permission.
Wherein, the file system can be SDcardfs file system.
Wherein, the deletion permission of mobile terminal setting picture can be intelligent by user's manual setting, or based on preset strategy
Setting, does not do unique restriction herein, which can be provided with to delete permission, for non-duplicate for the photo repeated
Photo setting is provided with deletion permission etc. without deletion permission, for chat caching expression picture.
As it can be seen that in this example, mobile terminal can be by file system come the specific permission that picture is arranged, due to file system
System, which has picture, directly controls permission, is conducive to the convenience for improving picture priority assignation.
In a possible example, whether the output deletes the prompt message of the Target Photo, including:The shifting
The system mode of dynamic terminal detection mobile terminal;Generate the prompt for whether deleting the Target Photo for being adapted to the system mode
Information;Export the prompt message.
Wherein, the system mode includes putting out screen state and bright screen state, and for putting out screen state, prompt message may include
Vibration prompt information and/or auditory tone cues information and/or picture and text prompt message etc. specifically can first export vibration prompt information
And/or auditory tone cues information to be to remind user to check, then picture and text prompt message is exported to notify user's picture to delete relevant information.
For bright screen state, prompt message can be determined based on the motion state and camera scanning information of mobile terminal
User's use state, however, it is determined that go out user and mobile terminal is used, then directly output picture and text prompt message is to notify user to scheme
Piece deletes relevant information.
As it can be seen that in this example, mobile terminal can be dynamically determined prompt message based on current system conditions, and intelligent reminding is used
Family determines whether delete target picture in time, improves picture treatment effeciency and flexibility ratio.
It is consistent with the embodiment shown in Fig. 2, referring to Fig. 3, Fig. 3 is a kind of picture provided by the embodiments of the present application
The flow diagram of processing method is applied to mobile terminal.As shown, this image processing method includes:
S301, mobile terminal carry out deleting setting for permission for the Target Photo by the file system of mobile terminal
It sets.
S302, mobile terminal is when detecting that third-party application backstage is directed to the deletion request message of Target Photo, detection
The priority assignation of the Target Photo;
S303, if the mobile terminal detect the priority assignation of the Target Photo be without deleting permission, will be described
Target Photo is moved to default memory space, and is fed back to the third-party application and delete response message to promote the third party
Using continuing to execute subsequent operation;
Whether S304, the mobile terminal output delete the prompt message of the Target Photo;
S305 restores described pre- if the mobile terminal detects the first information for confirming and restoring the Target Photo
If the Target Photo of memory space.
S306 is deleted described pre- if the mobile terminal detects the second information for confirming and deleting the Target Photo
If the Target Photo of memory space.
S307 deletes institute if the mobile terminal detects that the priority assignation of the Target Photo is to have deletion permission
Target Photo is stated, and is fed back to the third-party application and deletes response message to promote the third-party application to continue to execute subsequently
Operation.
As can be seen that in the embodiment of the present application, mobile terminal is detecting third-party application backstage for Target Photo
When deletion request message, the priority assignation of Target Photo is detected, secondly, if detecting the priority assignation of Target Photo for no deletion
Target Photo is then moved to default memory space, and is fed back to third-party application and delete response message to promote third by permission
Fang Yingyong continues to execute subsequent operation, again, output whether the prompt message of delete target picture, finally, if detecting confirmation
Restore the first information of Target Photo, then restores the Target Photo for presetting memory space.As it can be seen that mobile terminal is answered for third party
The case where with because of the reasons background request delete target picture such as version updating, in the case where the Target Photo is without permission is deleted,
The direct permanent delet Target Photo of third-party application can be avoided by the picture that diverts the aim to default memory space, while to
Third-party application feedback delete response message make third-party application continue to execute subsequent operation, to avoid third-party application because
Response message can not be obtained in time and repeatedly sends the case where request message leads to program crashing and occurs, and be conducive to improve mobile whole
Hold stability and the safety of the picture removal request of background process third-party application.
In addition, after mobile terminal receives the second information, determining user currently allows to delete third-party application delete target
Picture, i.e., this time picture act of deleting is legal, to delete the Target Photo for presetting memory space, that is, realizes permanent delet
The Target Photo, since user largely can recognize that the case where third-party application accidentally deletes picture, so by user
Autonomous progress decision accuracy is relatively high, is conducive to improve the accuracy that picture is deleted.
In addition, mobile terminal is arranged to Target Photo have the case where deleting permission, the target can be directly deleted
Picture, and fed back to third-party application and delete response message to promote third-party application smoothness to execute subsequent operation, improve picture
Treatment effeciency and system stability.
It is consistent with the embodiment shown in Fig. 2, referring to Fig. 4, Fig. 4 is a kind of picture provided by the embodiments of the present application
The flow diagram of processing method is applied to mobile terminal.As shown, this image processing method includes:
S401, the mobile terminal carry out deleting permission for the Target Photo by the file system of mobile terminal
Setting.
S402, the mobile terminal detect third-party application backstage be directed to Target Photo deletion request message when,
Detect the priority assignation of the Target Photo;
S403, if the mobile terminal detect the priority assignation of the Target Photo be without deleting permission, will be described
Target Photo is moved to default memory space, and is fed back to the third-party application and delete response message to promote the third party
Using continuing to execute subsequent operation;
S404, the system mode of the mobile terminal detection mobile terminal;
S405, the mobile terminal generate the prompt letter for whether deleting the Target Photo for being adapted to the system mode
Breath;
S406, the mobile terminal export the prompt message.
S407 restores described pre- if the mobile terminal detects the first information for confirming and restoring the Target Photo
If the Target Photo of memory space.
S408 is deleted described pre- if the mobile terminal detects the second information for confirming and deleting the Target Photo
If the Target Photo of memory space.
S409 deletes institute if the mobile terminal detects that the priority assignation of the Target Photo is to have deletion permission
Target Photo is stated, and is fed back to the third-party application and deletes response message to promote the third-party application to continue to execute subsequently
Operation.
The embodiment of the present application is can be seen that, mobile terminal is detecting third-party application backstage deleting for Target Photo
When except request message, the priority assignation of Target Photo is detected, secondly, the priority assignation of Target Photo is without the power of deleting if detecting
Target Photo is then moved to default memory space, and is fed back to third-party application and delete response message to promote third party by limit
Using subsequent operation is continued to execute, again, output whether the prompt message of delete target picture, finally, if detect confirm it is extensive
The first information of complicated target picture then restores the Target Photo for presetting memory space.As it can be seen that mobile terminal is directed to third-party application
The case where because of the reasons background request delete target picture such as version updating, can in the case where the Target Photo is without permission is deleted
To default memory space, to avoid the direct permanent delet Target Photo of third-party application by the picture that diverts the aim, while to
Tripartite's application feedback deletes response message and third-party application is made to continue to execute subsequent operation, to avoid third-party application because of nothing
Method obtains response message and repeatedly sends the case where request message leads to program crashing and occur in time, is conducive to improve mobile terminal
The stability of the picture removal request of background process third-party application and safety.
In addition, after mobile terminal receives the second information, determining user currently allows to delete third-party application delete target
Picture, i.e., this time picture act of deleting is legal, to delete the Target Photo for presetting memory space, that is, realizes permanent delet
The Target Photo, since user largely can recognize that the case where third-party application accidentally deletes picture, so by user
Autonomous progress decision accuracy is relatively high, is conducive to improve the accuracy that picture is deleted.
In addition, mobile terminal is arranged to Target Photo have the case where deleting permission, the target can be directly deleted
Picture, and fed back to third-party application and delete response message to promote third-party application smoothness to execute subsequent operation, improve picture
Treatment effeciency and system stability.
In addition, mobile terminal can be by file system come the specific permission that picture is arranged, since file system is to picture
With permission is directly controlled, be conducive to the convenience for improving picture priority assignation.
In addition, mobile terminal can be dynamically determined prompt message based on current system conditions, intelligent reminding user is true in time
It is fixed whether delete target picture, improve picture treatment effeciency and flexibility ratio.
It is consistent with described Fig. 2, Fig. 3, embodiment shown in Fig. 4, referring to Fig. 5, Fig. 5 is provided by the embodiments of the present application
A kind of structural schematic diagram of mobile terminal, the running of mobile terminal there are one or multiple application programs and operating system, such as figure institute
Show, which includes processor, memory, communication interface and one or more programs, wherein one or more of
Program is different from one or more of application programs, and one or more of programs are stored in the memory, and
And be configured to be executed by the processor, described program includes the instruction for executing following steps;
When detecting that third-party application backstage is directed to the deletion request message of Target Photo, the Target Photo is detected
Priority assignation;
If detecting, the priority assignation of the Target Photo is to be moved to the Target Photo default without deletion permission
Memory space, and fed back to the third-party application and delete response message to promote the third-party application to continue to execute follow-up behaviour
Make;
Whether output deletes the prompt message of the Target Photo;
If detecting the first information for confirming and restoring the Target Photo, restore the mesh of the default memory space
It marks on a map piece.
As can be seen that in the embodiment of the present application, mobile terminal is detecting third-party application backstage for Target Photo
When deletion request message, the priority assignation of Target Photo is detected, secondly, if detecting the priority assignation of Target Photo for no deletion
Target Photo is then moved to default memory space, and is fed back to third-party application and delete response message to promote third by permission
Fang Yingyong continues to execute subsequent operation, again, output whether the prompt message of delete target picture, finally, if detecting confirmation
Restore the first information of Target Photo, then restores the Target Photo for presetting memory space.As it can be seen that mobile terminal is answered for third party
The case where with because of the reasons background request delete target picture such as version updating, in the case where the Target Photo is without permission is deleted,
The direct permanent delet Target Photo of third-party application can be avoided by the picture that diverts the aim to default memory space, while to
Third-party application feedback delete response message make third-party application continue to execute subsequent operation, to avoid third-party application because
Response message can not be obtained in time and repeatedly sends the case where request message leads to program crashing and occurs, and be conducive to improve mobile whole
Hold stability and the safety of the picture removal request of background process third-party application.
In a possible example, described program further includes instructions for performing the following operations:If detecting confirmation
The second information for deleting the Target Photo then deletes the Target Photo of the default memory space.
In a possible example, described program further includes instructions for performing the following operations:If detecting described
The priority assignation of Target Photo is to have deletion permission, then deletes the Target Photo, and feed back and delete to the third-party application
Response message is to promote the third-party application to continue to execute subsequent operation.
In a possible example, described program further includes instructions for performing the following operations:It is being detected described
When being directed to the deletion request message of Target Photo to third-party application backstage, before the priority assignation for detecting the Target Photo,
For the Target Photo delete the setting of permission by the file system of mobile terminal.
It is described in terms of whether the output deletes the prompt message of the Target Photo in a possible example
Instruction in program is specifically used for executing following operation:Detect the system mode of mobile terminal;And it generates and is adapted to the system
The prompt message for whether deleting the Target Photo of state;And the output prompt message.
Above-described embodiment is mainly described the scheme of the embodiment of the present application from the angle of method side implementation procedure.It can
With understanding, for mobile terminal in order to realize above-mentioned function, it comprises execute the corresponding hardware configuration of each function and/or soft
Part module.Those skilled in the art should be readily appreciated that, described in conjunction with the examples disclosed in the embodiments of the present disclosure
Unit and algorithm steps, the application can be realized with the combining form of hardware or hardware and computer software.Some function is studied carefully
Unexpectedly it is executed in a manner of hardware or computer software driving hardware, depends on specific application and the design constraint of technical solution
Condition.Professional technician specifically can realize described function to each using distinct methods, but this
It realizes it is not considered that exceeding scope of the present application.
The embodiment of the present application can carry out mobile terminal according to the method example the division of functional unit, for example, can
Each functional unit is divided with each function of correspondence, two or more functions can also be integrated in a processing unit
In.The form that hardware had both may be used in the integrated unit is realized, can also be realized in the form of SFU software functional unit.It needs
It is noted that be schematical, only a kind of division of logic function to the division of unit in the embodiment of the present application, it is practical real
It is current that there may be another division manner.
The following is an embodiment of the apparatus of the present invention, and apparatus of the present invention embodiment is realized for executing the method for the present invention embodiment
Method.As shown in fig. 6, the mobile terminal may include detection unit 601, it is mobile unit 602, the first feedback unit 603, defeated
Go out unit 604 and recovery unit 605, wherein
The detection unit 601, for detecting deletion request message of the third-party application backstage for Target Photo
When, detect the priority assignation of the Target Photo;
The mobile unit 602, if for detecting that the priority assignation of the Target Photo is without deletion permission, by institute
It states Target Photo and is moved to default memory space;
First feedback unit 603 deletes response message to promote described for being fed back to the third-party application
Tripartite's application continues to execute subsequent operation;
The output unit 604, for exporting the prompt message for whether deleting the Target Photo;
The recovery unit 605, if confirming the first information for restoring the Target Photo for detecting, described in recovery
The Target Photo of default memory space.
As can be seen that in the embodiment of the present application, mobile terminal is detecting third-party application backstage for Target Photo
When deletion request message, the priority assignation of Target Photo is detected, secondly, if detecting the priority assignation of Target Photo for no deletion
Target Photo is then moved to default memory space, and is fed back to third-party application and delete response message to promote third by permission
Fang Yingyong continues to execute subsequent operation, again, output whether the prompt message of delete target picture, finally, if detecting confirmation
Restore the first information of Target Photo, then restores the Target Photo for presetting memory space.As it can be seen that mobile terminal is answered for third party
The case where with because of the reasons background request delete target picture such as version updating, in the case where the Target Photo is without permission is deleted,
The direct permanent delet Target Photo of third-party application can be avoided by the picture that diverts the aim to default memory space, while to
Third-party application feedback delete response message make third-party application continue to execute subsequent operation, to avoid third-party application because
Response message can not be obtained in time and repeatedly sends the case where request message leads to program crashing and occurs, and be conducive to improve mobile whole
Hold stability and the safety of the picture removal request of background process third-party application.
In a possible example, the picture processing unit further includes the first deleting unit,
First deleting unit deletes institute if confirming the second information for deleting the Target Photo for detecting
State the Target Photo of default memory space.
In a possible example, the picture processing unit further includes the second deleting unit and the second feedback unit,
If second deleting unit is deleted for detecting that the priority assignation of the Target Photo is to have deletion permission
Except the Target Photo;
Second feedback unit deletes response message to promote the third party for being fed back to the third-party application
Using continuing to execute subsequent operation.
In a possible example, the picture processing unit further includes setting unit,
The setting unit, for detecting third-party application backstage for Target Photo in the detection unit 601
Deletion request message when, before the priority assignation for detecting the Target Photo, institute is directed to by the file system of mobile terminal
State the setting that Target Photo delete permission.
It is described in terms of whether the output deletes the prompt message of the Target Photo in a possible example
Output unit 604 is specifically used for:Detect the system mode of mobile terminal;And generate be adapted to the system mode whether deletion
The prompt message of the Target Photo;And the output prompt message.
Referring to Fig. 7, Fig. 7 is a kind of structural schematic diagram of mobile terminal provided by the present application, mobile terminal 700 includes:
Shell 710, battery 730, cover board 740, falls sensor 750, transceiver 760, display screen 770 and control at circuit board 720
Fall the controller 780 of sensor 750, transceiver 760 and display screen 770;Cover board 740 is arranged on shell 710, falls sensing
Device 750, transceiver 760 and controller 780 are arranged on circuit board 720, and display screen 770 is connect with controller 780, wherein is fallen
It includes acceleration transducer, gyroscope, timer etc. to fall sensor 750.
Wherein, mobile terminal is when detecting that third-party application backstage is directed to the deletion request message of Target Photo, detection
The priority assignation of Target Photo;If detecting, the priority assignation of Target Photo is to be moved to Target Photo without deletion permission
Default memory space, and fed back to third-party application and delete response message to promote third-party application to continue to execute subsequent operation;
Output whether the prompt message of delete target picture;If detecting the first information for confirming and restoring Target Photo, restore default
The Target Photo of memory space.
Wherein, display screen 770 includes touch screen and display screen, and display screen includes organic light-emitting diode (OLED) display screen OLED.
Wherein, controller 780 may include processor and memory, which is the control centre of mobile terminal, profit
With the various pieces of various interfaces and the entire mobile terminal of connection, by running or executing the software being stored in memory
Program and/or module, and the data being stored in memory are called, the various functions and processing data of mobile terminal are executed,
To carry out whole monitoring to mobile terminal.Optionally, processor can integrate application processor and modem processor,
In, the main processing operation system of application processor, user interface and application program etc., modem processor are mainly handled wirelessly
Communication.It is understood that the modem processor can not also be integrated into processor.
Wherein, memory can be used for storing software program and module, and processor is stored in the soft of memory by operation
Part program and module, to execute various function application and the data processing of mobile terminal.Memory can include mainly depositing
Store up program area and storage data field, wherein storing program area can storage program area, the application program needed at least one function
Deng;Storage data field can be stored uses created data etc. according to mobile terminal.In addition, memory may include high speed with
Machine access memory, can also include nonvolatile memory, a for example, at least disk memory, flush memory device or its
His volatile solid-state part.
The embodiment of the present application also provides a kind of computer storage media, wherein computer storage media storage is for electricity
The computer program that subdata exchanges, the computer program make computer execute any as described in above method embodiment
Some or all of method step, above computer include mobile terminal.
The embodiment of the present application also provides a kind of computer program product, and above computer program product includes storing calculating
The non-transient computer readable storage medium of machine program, above computer program are operable to that computer is made to execute such as above-mentioned side
Some or all of either method described in method embodiment step.The computer program product can be a software installation
Packet, above computer includes mobile terminal.
It should be noted that for each method embodiment above-mentioned, for simple description, therefore it is all expressed as a series of
Combination of actions, but those skilled in the art should understand that, the application is not limited by the described action sequence because
According to the application, certain steps can be performed in other orders or simultaneously.Secondly, those skilled in the art should also know
It knows, embodiment described in this description belongs to preferred embodiment, involved action and module not necessarily the application
It is necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, it may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed device, it can be by another way
It realizes.For example, the apparatus embodiments described above are merely exemplary, for example, said units division, it is only a kind of
Division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component can combine or can
To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Coupling, direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING or communication connection of device or unit,
Can be electrical or other forms.
The above-mentioned unit illustrated as separating component may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple
In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme
's.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, it can also
It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list
The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If above-mentioned integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can be stored in a computer-readable access to memory.Based on this understanding, the technical solution of the application substantially or
Person says that all or part of the part that contributes to existing technology or the technical solution can body in the form of software products
Reveal and, which is stored in a memory, including some instructions are used so that a computer equipment
(can be personal computer, mobile terminal or network equipment etc.) executes whole or the portion of each embodiment above method of the application
Step by step.And memory above-mentioned includes:USB flash disk, read-only memory (ROM, Read-Only Memory), random access memory
The various media that can store program code such as (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can
It is completed with instructing relevant hardware by program, which can be stored in a computer-readable memory, memory
May include:Flash disk, read-only memory (English:Read-Only Memory, referred to as:ROM), random access device (English:
Random Access Memory, referred to as:RAM), disk or CD etc..
The embodiment of the present application is described in detail above, specific case used herein to the principle of the application and
Embodiment is expounded, the description of the example is only used to help understand the method for the present application and its core ideas;
Meanwhile for those of ordinary skill in the art, according to the thought of the application, can in specific embodiments and applications
There is change place, in conclusion the contents of this specification should not be construed as limiting the present application.
Claims (12)
1. a kind of image processing method, which is characterized in that including:
When detecting that third-party application backstage is directed to the deletion request message of Target Photo, the permission of the Target Photo is detected
Setting;
If detecting, the priority assignation of the Target Photo is that the Target Photo is moved to default storage without deletion permission
Space, and fed back to the third-party application and delete response message to promote the third-party application to continue to execute subsequent operation;
Whether output deletes the prompt message of the Target Photo;
If detecting the first information for confirming and restoring the Target Photo, restore the target figure of the default memory space
Piece.
2. according to the method described in claim 1, it is characterized in that, the method further includes:
If detecting the second information for confirming and deleting the Target Photo, the target figure of the default memory space is deleted
Piece.
3. method according to claim 1 or 2, which is characterized in that the method further includes:
If detecting, the priority assignation of the Target Photo is to have deletion permission, deletes the Target Photo, and to described the
Tripartite's application feedback deletes response message to promote the third-party application to continue to execute subsequent operation.
4. according to claim 1-3 any one of them methods, which is characterized in that described to detect third-party application backstage needle
When to the deletion request message of Target Photo, before the priority assignation for detecting the Target Photo, the method further includes:
For the Target Photo delete the setting of permission by the file system of mobile terminal.
5. according to claim 1-4 any one of them methods, which is characterized in that whether the output deletes the Target Photo
Prompt message, including:
Detect the system mode of mobile terminal;
Generate the prompt message for whether deleting the Target Photo for being adapted to the system mode;
Export the prompt message.
6. a kind of picture processing unit, which is characterized in that including detection unit, mobile unit, the first feedback unit, output unit
And recovery unit, wherein
The detection unit, for when detecting that third-party application backstage is directed to the deletion request message of Target Photo, detecting
The priority assignation of the Target Photo;
The mobile unit, if for detecting that the priority assignation of the Target Photo is without deletion permission, by the target
Picture is moved to default memory space;
First feedback unit deletes response message to promote the third-party application for being fed back to the third-party application
Continue to execute subsequent operation;
The output unit, for exporting the prompt message for whether deleting the Target Photo;
The recovery unit restores described preset and deposits if confirming the first information for restoring the Target Photo for detecting
Store up the Target Photo in space.
7. device according to claim 6, which is characterized in that the picture processing unit further includes the first deleting unit,
First deleting unit is deleted described preset and is deposited if confirming the second information for deleting the Target Photo for detecting
Store up the Target Photo in space.
8. the device described according to claim 6 or 7, which is characterized in that the picture processing unit further includes the second deletion list
Member and the second feedback unit,
If second deleting unit deletes institute for detecting that the priority assignation of the Target Photo is to have deletion permission
State Target Photo;
Second feedback unit deletes response message to promote the third-party application for being fed back to the third-party application
Continue to execute subsequent operation.
9. according to claim 6-8 any one of them devices, which is characterized in that the picture processing unit further includes that setting is single
Member,
The setting unit, for detecting that third-party application backstage asks for the deletion of Target Photo in the detection unit
When seeking message, before the priority assignation for detecting the Target Photo, the target figure is directed to by the file system of mobile terminal
Piece delete the setting of permission.
10. according to claim 6-9 any one of them devices, which is characterized in that whether delete the target in the output
In terms of the prompt message of picture, the output unit is specifically used for:Detect the system mode of mobile terminal;And generate adaptation institute
State the prompt message for whether deleting the Target Photo of system mode;And the output prompt message.
11. a kind of mobile terminal, which is characterized in that including processor, memory, communication interface, and one or more programs,
One or more of programs are stored in the memory, and are configured to be executed by the processor, described program packet
Include the instruction for executing the step in method as described in any one in claim 1-5.
12. a kind of computer readable storage medium, which is characterized in that computer program of the storage for electronic data interchange,
In, the computer program makes computer execute method as described in any one in claim 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810468542.XA CN108737655B (en) | 2018-05-16 | 2018-05-16 | Picture processing method and related device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810468542.XA CN108737655B (en) | 2018-05-16 | 2018-05-16 | Picture processing method and related device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108737655A true CN108737655A (en) | 2018-11-02 |
CN108737655B CN108737655B (en) | 2020-10-09 |
Family
ID=63938418
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810468542.XA Active CN108737655B (en) | 2018-05-16 | 2018-05-16 | Picture processing method and related device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108737655B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111782598A (en) * | 2019-04-04 | 2020-10-16 | Oppo广东移动通信有限公司 | Method, device, terminal and storage medium for arranging pictures |
CN114780190A (en) * | 2022-04-13 | 2022-07-22 | 脸萌有限公司 | Message processing method and device, electronic equipment and storage medium |
WO2023160208A1 (en) * | 2022-02-28 | 2023-08-31 | 荣耀终端有限公司 | Image deletion operation notification method, device, and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6998478B1 (en) * | 2000-08-01 | 2006-02-14 | Temasek Life Sciences Laboratory Limited | Isolation and characterization of a fiber-specific β-tubulin promoter from cotton |
CN106201779A (en) * | 2016-07-01 | 2016-12-07 | 北京金山安全软件有限公司 | Picture processing method and device and mobile terminal |
CN107103245A (en) * | 2016-02-23 | 2017-08-29 | 中兴通讯股份有限公司 | The right management method and device of file |
CN107729764A (en) * | 2017-09-30 | 2018-02-23 | 广东欧珀移动通信有限公司 | Guard method, device, storage medium and the electronic equipment of sensitive information |
-
2018
- 2018-05-16 CN CN201810468542.XA patent/CN108737655B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6998478B1 (en) * | 2000-08-01 | 2006-02-14 | Temasek Life Sciences Laboratory Limited | Isolation and characterization of a fiber-specific β-tubulin promoter from cotton |
CN107103245A (en) * | 2016-02-23 | 2017-08-29 | 中兴通讯股份有限公司 | The right management method and device of file |
WO2017143879A1 (en) * | 2016-02-23 | 2017-08-31 | 中兴通讯股份有限公司 | File permission management method and device |
CN106201779A (en) * | 2016-07-01 | 2016-12-07 | 北京金山安全软件有限公司 | Picture processing method and device and mobile terminal |
CN107729764A (en) * | 2017-09-30 | 2018-02-23 | 广东欧珀移动通信有限公司 | Guard method, device, storage medium and the electronic equipment of sensitive information |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111782598A (en) * | 2019-04-04 | 2020-10-16 | Oppo广东移动通信有限公司 | Method, device, terminal and storage medium for arranging pictures |
WO2023160208A1 (en) * | 2022-02-28 | 2023-08-31 | 荣耀终端有限公司 | Image deletion operation notification method, device, and storage medium |
CN114780190A (en) * | 2022-04-13 | 2022-07-22 | 脸萌有限公司 | Message processing method and device, electronic equipment and storage medium |
CN114780190B (en) * | 2022-04-13 | 2023-12-22 | 脸萌有限公司 | Message processing method, device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108737655B (en) | 2020-10-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108681475B (en) | Application program preloading method and device, storage medium and mobile terminal | |
EP3531290B1 (en) | Data backup method, apparatus, electronic device, storage medium, and system | |
CN108829457B (en) | Application program prediction model updating method and device, storage medium and terminal | |
CN106502703B (en) | Function calling method and device | |
CN108733797A (en) | Document handling method and relevant apparatus | |
CN108804153B (en) | Application program preloading method and device, storage medium and terminal | |
CN103455348A (en) | Subarea adjustment method, device, terminal, server and system | |
CN108737655A (en) | Image processing method and relevant apparatus | |
CN105373405A (en) | Device and method for dynamically loading application programs | |
CN112749362B (en) | Control creation method, device, equipment and storage medium | |
CN107635078A (en) | Game control method and equipment | |
CN108090345B (en) | Linux system external command execution method and device | |
CN113592209A (en) | Model training task management method, device, terminal and storage medium | |
EP4007246A1 (en) | Message sending method, and terminal apparatus | |
CN105988841A (en) | Update method of application program, and mobile terminal | |
CN106332023A (en) | Unread information display method and device, and mobile terminal | |
CN108762983B (en) | Multimedia data recovery method and device | |
KR20210060213A (en) | Method for preloading application and electronic device supporting the same | |
CN106919458B (en) | Method and device for Hook target kernel function | |
CN114327087A (en) | Input event processing method and device, electronic equipment and storage medium | |
CN106681884A (en) | System call monitoring method and device | |
CN109032621B (en) | Application program installation method, mobile terminal and computer storage medium | |
CN108763357A (en) | Document handling method and relevant apparatus | |
CN106453776A (en) | Adding method of contact person, server and mobile terminal | |
CN108804258A (en) | Data reconstruction method, device, mobile terminal and storage medium |
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 |