CN104424321A - File directory obtainment method and file directory obtainment device - Google Patents

File directory obtainment method and file directory obtainment device Download PDF

Info

Publication number
CN104424321A
CN104424321A CN201310409400.3A CN201310409400A CN104424321A CN 104424321 A CN104424321 A CN 104424321A CN 201310409400 A CN201310409400 A CN 201310409400A CN 104424321 A CN104424321 A CN 104424321A
Authority
CN
China
Prior art keywords
file
program
application
new file
destination application
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
CN201310409400.3A
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201310409400.3A priority Critical patent/CN104424321A/en
Publication of CN104424321A publication Critical patent/CN104424321A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses a file directory obtainment method and a file directory obtainment device, wherein the implementation of the method includes the following steps that by package name matching, whether a target application starts is determined; if the target application starts, then whether a new file is generated in a folder in a memory device is monitored, and whether the file type of the new file is matched with the target application is determined; if the new file is generated and the type of the new file is matched with the target application, then the file directory of the new file is obtained. By package matching, the method determines whether the target application starts, and by monitoring the new file generated by the memory device and the file type, the method determines the new file generated by the target application, and thereby the file directory of the target application can be obtained.

Description

A kind of file directory acquisition methods and device
Technical field
The present invention relates to areas of information technology, particularly a kind of file directory acquisition methods and device.
Background technology
Thousands of files may be had in computer system, for the ease of accessing file and managing, computer system sets up the index of file, the mapping relations namely between filename and file physical location, and the index of this file is called file directory (file directory).
File directory is that an entry set up by each file.The contents such as the length of the type of the general include file name of entry of file directory, file internal mark, file, file memory address, file, access rights, Time Created and access time.
File directory (or being called file) is made up of file directory item.File directory is divided into first class catalogue, second-level directory and multistage catalogue.Multistage bibliographic structure is also referred to as tree structure, in multistage bibliographic structure, each disk has a root directory, some sub-directories and file can be comprised in root directory, not only can include file in sub-directory, but also next stage sub-directory can be comprised, analogize down like this and just constitute multistage bibliographic structure.
The advantage of multistage bibliographic structure is adopted to be that the dissimilar document classification with difference in functionality can store by user, both convenience file managed and searched, also allow the file in different file directory to have identical filename, solve the synonym in first class catalogue structure.What current mainstream operation system generally adopted is multistage bibliographic structure.
The catalogue that file is preserved is the form of expression of the file directory of the memory address of the file created.Application program, in operational process, may produce various file, the picture file that program of such as taking pictures produces.The file that application program produces may the form of cache file be preserved temporarily, also may finally preserve as file.The file directory that file is preserved is generally the default address arranged in the application at present, or the address temporarily selected by user is preserved.Third party cannot directly obtain this address, and thus third party directly cannot obtain file directory.
Summary of the invention
Embodiments providing a kind of file directory acquisition methods and device, producing the file directory of file for obtaining application program.
A kind of file directory acquisition methods, comprising:
Mated by bag name, determine whether destination application starts;
If destination application starts, then whether have new file produce, and determine whether the file type of new file mates with described target program if monitoring memory device file folder;
If have new file produce and its type mate with described target program, then obtain the file directory of described new file.
A kind of file directory acquisition device, comprising:
Starting determining unit, for being mated by bag name, determining whether destination application starts;
Document determining unit, if start for described startup determining unit determination destination application, then whether have new file produce, and determine whether the file type of new file mates with described target program if monitoring memory device file folder;
Catalogue acquiring unit, if for described document determining unit define new file produce and its type mate with described target program, then obtain the file directory of described new file.
As can be seen from the above technical solutions, the embodiment of the present invention has the following advantages: determine whether target program starts by bag coupling, and pass through new file and the file type of monitoring memory device generation, determine the new file that target program produces, thus the file directory of target program can be obtained.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly introduced, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is embodiment of the present invention method flow schematic diagram;
Fig. 2 is embodiment of the present invention method flow schematic diagram;
Fig. 3 is embodiment of the present invention apparatus structure schematic diagram;
Fig. 4 is embodiment of the present invention apparatus structure schematic diagram;
Fig. 5 is embodiment of the present invention apparatus structure schematic diagram;
Fig. 6 is embodiment of the present invention handset structure schematic diagram.
Embodiment
In order to make the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, the present invention is described in further detail, and obviously, described embodiment is only a part of embodiment of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making other embodiments all obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiments provide a kind of file directory acquisition methods, it is characterized in that, comprising:
101: mated by bag name, determine whether destination application starts;
Embodiments provide above by bag name coupling, determine whether destination application starts, the optional implementation of one, as follows: to comprise:
The startup of current application program and changing interface are monitored;
If listen to application program to change, and the application package name listened to is consistent with destination application bag name, then determine that above-mentioned current application program is destination application, and destination application starts.
Assuming that application program has application program as shown in table 1, as follows:
Table 1
Sequence number Application package name
1 QQ master routine
2 Micro-letter
3 Mobile phone house keeper
4 To take pictures application program
Assuming that " application program of taking pictures " is for needing the destination application obtaining file directory.First monitor the startup of current application program and changing interface, so this step likely listens to " QQ master routine " " micro-letter " " mobile phone house keeper " and also may listen to " application program of taking pictures " or other application programs.This step without the need for direct purpose.
The step of " the application package name listened to is consistent with destination application bag name " that then perform, object is to determine that current application program is destination application, because if current application program is not destination application, it should be do not produce new file.Such as: application program of taking pictures is not the current application program run, so it should perform photographing operation is also to produce picture file.
The embodiment of the present invention additionally provides the more specifically optional implementation that above scheme monitoring application program changes, as follows: to listen to application program if above-mentioned and change, and the application package name listened to is consistent with destination application bag name comprises:
Listen to application program stack top to change, and the application package name of application program stack top is consistent with destination application bag name.
Because the application program listened to generally can adopt the structure of stack to store, because its performance is similar to form a little, form represents that the top of stack is to bottom from top to bottom.Be switched to which application program due to current, so this application program just appears in stack top, and application program before then can move at the bottom of stack, as following table 2 to table 4.
Table 2
Sequence number Application package name
1 Micro-letter
2 QQ master routine
3 Micro-letter
4 Mobile phone house keeper
Table 2 is expressed as, and QQ master routine changing interface is to micro-letter interface.
Table 3
Sequence number Application package name
1 Mobile phone house keeper
2 Micro-letter
3 QQ master routine
4 Micro-letter
Table 3 is expressed as, and micro-letter changing interface is to mobile phone house keeper interface.
Table 4
Sequence number Application package name
1 To take pictures application program
2 Mobile phone house keeper
3 Micro-letter
4 QQ master routine
Table 4 is expressed as, and mobile phone house keeper changing interface is to Application Program Interface of taking pictures.
So above table 2 ~ table 4, when there is table 2 ~ table 3, because the application program listened to is not destination application " application program of taking pictures ", can carry out subsequent treatment, knows that table 4 listens to " application program of taking pictures " and is defined as destination application.
102: if destination application starts, then whether have new file produce, and determine whether the file type of new file mates with above-mentioned target program if monitoring memory device file folder;
In this step, the file of monitoring can be file all in memory device, and owing to not having the application program run can not produce new file, the application program be only in activity just can produce new file.In this step, monitoring file folder can be as shown in table 5 below.
Table 5
Above table 5 illustrates five catalogues, adopts Foxmail(e-mail management software of windows system for PC) file monitor.When this mailbox of XXXX@tencent.com gets the mail, C: Program Files Foxmail mail this file of XXXX@tencent.com will produce new file, the type of new file can be generally BOX_auto_file, thus monitoredly arrives.
Alternatively, the embodiment of the present invention additionally provides target program is that the take pictures specific implementation of application program is as follows:
If above-mentioned target program is application program of taking pictures, whether the above-mentioned file type determining new file is mated with above-mentioned target program and is comprised: whether the suffix name determining new file is picture file, if picture file, then determine that the file type of new file is mated with above-mentioned target program.
Suffix is called the likely as shown in table 6 of picture file.
Table 6
Suffix name Whether picture
.BMP Be
.JPG Be
.PNG Be
.JPEG Be
.GIF Be
The form kind of picture is limited, and the form of main flow is less, is presented above several possible citing, can determines whether the suffix name of new file is picture file by the mode of matched and searched.More than table is example, and the suffix " .BMP " by name adding new file so can determine picture file in fact.
103: if having new file produce and its type mate with above-mentioned target program, then obtain the file directory of above-mentioned new file.
By bag coupling, above embodiment, determines whether target program starts, and pass through new file and the file type of monitoring memory device generation, determines the new file that target program produces, thus can obtain the file directory of target program.
Further, the embodiment of the present invention give get file directory later can selection operation, be understandable that, getting the later operation of file directory can have a variety of, different operations can be had according to different demands, will not limit for the concrete operation embodiment of the present invention, below illustrate and also should not be construed as can selection operation exhaustive, particularly: after the file directory obtaining above-mentioned new file, also comprise: the file of above-mentioned file directory is encrypted and/or hides operation.
Following examples are described in detail providing one for the example of mobile phone photograph, current smart mobile phone is popularized, and generally all there is the function of taking pictures, also about how obtaining application program of taking pictures not take pictures the scheme of the file directory obtaining picture file, embodiments provide the method how obtaining file directory, refer to shown in Fig. 2, specific as follows:
201: mated by bag name, detect target take pictures program take pictures interface start;
In this step, a service can be opened, monitor startup and the changing interface of current application program.When application program launching and changing interface, application program stack top can be listened to and change.If listen to application program stack top to send change, then can record current application program bag name, if this application package name is consistent with the application package name of taking pictures that will monitor, then illustrate that the interface of current startup is the interface of application program of taking pictures.
202: each catalogue change of storage card monitored by enactment document audiomonitor;
In this step, all catalogue file folders of storage card can be traveled through, preserve these folder paths, and give these files setting audiomonitor.
203: monitoring takes pictures saves contents and take pictures file path;
There is the audiomonitor to file in above step 202, user is after operating handset execution is taken pictures, one of them file audiomonitor will listen to and produce a file in its file, now by judging whether the suffix name of this file is picture file, if picture file, can determine that this picture file is exactly the file produced of taking pictures, so the file at this picture file place is exactly the path of preserving file after this program of taking pictures is taken pictures.
204: the file produced taking pictures is encrypted hiding grade for operation.
In this step, the step 203 before execution has determined the file path of application storage picture file of taking pictures, so can to operations such as the file of this file path are encrypted/hide.
Above scheme can be applied to Android(Android) mobile phone of system or terminal, also can be applied to the mobile phone of other operating systems, or the mobile phone of other operating systems or terminal, will not limit this embodiment of the present invention.
By bag coupling, above embodiment, determines whether target program starts, and pass through new file and the file type of monitoring memory device generation, determines the new file that target program produces, thus can obtain the file directory of target program.
Above embodiment is mated by bag name, detects that the interface of taking pictures of specific program of taking pictures starts.After interface of taking pictures starts, each catalogue change of storage card monitored by enactment document audiomonitor.After having taken pictures, audiomonitor can listen to file at storage card and produces, and this file is taken pictures file exactly, and the path storing this file of taking pictures is exactly this program file storing path of taking pictures.
Above scheme can detect take pictures catalogue and the file produced of taking pictures that program of taking pictures is preserved.The operation such as can be encrypted, hide to file by this file path.Be understandable that, getting the later operation of file directory can have a variety of, can have different operations according to different demands, will not limit for the concrete operation embodiment of the present invention, and above citing also should not be construed as can selection operation exhaustive.
The embodiment of the present invention additionally provides a kind of file directory acquisition device, as shown in Figure 3, comprising:
Starting determining unit 301, for being mated by bag name, determining whether destination application starts;
Document determining unit 302, if determine that destination application starts for above-mentioned startup determining unit 301, then whether have new file produce, and determine whether the file type of new file mates with above-mentioned target program if monitoring memory device file folder;
Catalogue acquiring unit 303, if for above-mentioned document determining unit 302 define new file produce and its type mate with above-mentioned target program, then obtain the file directory of above-mentioned new file.
By bag coupling, above embodiment, determines whether target program starts, and pass through new file and the file type of monitoring memory device generation, determines the new file that target program produces, thus can obtain the file directory of target program.
Alternatively, as shown in Figure 4, embodiments provide above by bag name coupling, determine whether destination application starts, the optional implementation of one, as follows: above-mentioned startup determining unit 301, comprising:
Program listens unit 401, for monitoring the startup of current application program and changing interface;
Program determining unit 402, if listen to application program for said procedure monitoring unit 401 to change, and the application package name listened to is consistent with destination application bag name, then determine that above-mentioned current application program is destination application, and destination application starts.
Alternatively, the embodiment of the present invention additionally provides the more specifically optional implementation that above scheme monitoring application program changes, as follows: said procedure determining unit 402, if listen to application program stack top specifically for said procedure monitoring unit 401 to change, and the application package name of application program stack top is consistent with destination application bag name, then determine that above-mentioned current application program is destination application, and destination application starts.
Alternatively, the embodiment of the present invention give get file directory later can selection operation, be understandable that, getting the later operation of file directory can have a variety of, can have different operations according to different demands, will not limit for the concrete operation embodiment of the present invention, below illustrate and also should not be construed as can selection operation exhaustive, particularly: as shown in Figure 5, said apparatus, also comprises:
Operating unit 501, after obtaining the file directory of above-mentioned new file at above-mentioned catalogue acquiring unit 303, is encrypted the file of above-mentioned file directory and/or hides operation.
Alternatively, it is that the take pictures specific implementation of application program is as follows: above-mentioned catalogue acquiring unit 303 that the embodiment of the present invention additionally provides target program, if be application program of taking pictures specifically for above-mentioned target program, whether the suffix name determining new file is picture file, if picture file, then determine that the file type of new file is mated with above-mentioned target program.
The embodiment of the present invention additionally provides another kind of file directory acquisition device as shown in Figure 6, and for convenience of explanation, illustrate only the part relevant to the embodiment of the present invention, concrete ins and outs do not disclose, and please refer to embodiment of the present invention method part.This file directory acquisition device can for comprising mobile phone, panel computer, PDA(Personal Digital Assistant, personal digital assistant), POS(Point of Sales, point-of-sale terminal), the terminal device arbitrarily such as vehicle-mounted computer, for file directory acquisition device for mobile phone:
Shown in Fig. 6 is the block diagram of the part-structure of the mobile phone relevant to the terminal that the embodiment of the present invention provides.With reference to figure 6, mobile phone comprises: radio frequency (Radio Frequency, RF) parts such as circuit 610, storer 620, input block 630, display unit 640, sensor 650, voicefrequency circuit 660, Wireless Fidelity (wirelessfidelity, WiFi) module 670, processor 680 and power supply 690.It will be understood by those skilled in the art that the handset structure shown in Fig. 6 does not form the restriction to mobile phone, the parts more more or less than diagram can be comprised, or combine some parts, or different parts are arranged.
Concrete introduction is carried out below in conjunction with Fig. 6 each component parts to mobile phone:
RF circuit 610 can be used for receiving and sending messages or in communication process, the reception of signal and transmission, especially, after being received by the downlink information of base station, process to processor 680; In addition, the up data of design are sent to base station.Usually, RF circuit includes but not limited to antenna, at least one amplifier, transceiver, coupling mechanism, low noise amplifier (Low Noise Amplifier, LNA), diplexer etc.In addition, RF circuit 60 can also by radio communication and network and other devices communicatings.Above-mentioned radio communication can use arbitrary communication standard or agreement, include but not limited to global system for mobile communications (Global System ofMobile communication, GSM), general packet radio service (General Packet RadioService, GPRS), CDMA (Code Division Multiple Access, CDMA), Wideband Code Division Multiple Access (WCDMA) (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), Email, Short Message Service (Short Messaging Service, SMS) etc.
Storer 620 can be used for storing software program and module, and processor 680 is stored in software program and the module of storer 620 by running, thus performs various function application and the data processing of mobile phone.Storer 620 mainly can comprise storage program district and store data field, and wherein, storage program district can store operating system, application program (such as sound-playing function, image player function etc.) etc. needed at least one function; Store data field and can store the data (such as voice data, phone directory etc.) etc. created according to the use of mobile phone.In addition, storer 620 can comprise high-speed random access memory, can also comprise nonvolatile memory, such as at least one disk memory, flush memory device or other volatile solid-state parts.
Input block 630 can be used for the numeral or the character information that receive input, and generation arranges with the user of mobile phone 600 and function controls the input of relevant key signals.Particularly, input block 630 can comprise contact panel 631 and other input equipments 632.Contact panel 631, also referred to as touch-screen, user can be collected or neighbouring touch operation (such as user uses any applicable object or the operations of annex on contact panel 631 or near contact panel 631 such as finger, stylus) thereon, and drive corresponding coupling arrangement according to the formula preset.Optionally, contact panel 631 can comprise touch detecting apparatus and touch controller two parts.Wherein, touch detecting apparatus detects the touch orientation of user, and detects the signal that touch operation brings, and sends signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and converts it to contact coordinate, then gives processor 680, and the order that energy receiving processor 680 is sent also is performed.In addition, the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave can be adopted to realize contact panel 631.Except contact panel 631, input block 630 can also comprise other input equipments 632.Particularly, other input equipments 632 can include but not limited to one or more in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, control lever etc.
Display unit 640 can be used for the various menus showing information or the information being supplied to user and the mobile phone inputted by user.Display unit 640 can comprise display panel 641, optionally, the forms such as liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode (Organic Light-EmittingDiode, OLED) can be adopted to configure display panel 641.Further, contact panel 631 can cover display panel 641, when contact panel 631 detects thereon or after neighbouring touch operation, send processor 680 to determine the type of touch event, on display panel 641, provide corresponding vision to export with preprocessor 680 according to the type of touch event.Although in figure 6, contact panel 631 and display panel 641 be as two independently parts to realize input and the input function of mobile phone, but in certain embodiments, can by integrated to contact panel 631 and display panel 641 and realize the input and output function of mobile phone.
Mobile phone 600 also can comprise at least one sensor 650, such as optical sensor, motion sensor and other sensors.Particularly, optical sensor can comprise ambient light sensor and proximity transducer, and wherein, ambient light sensor the light and shade of environmentally light can regulate the brightness of display panel 641, proximity transducer when mobile phone moves in one's ear, can cut out display panel 641 and/or backlight.As the one of motion sensor; accelerometer sensor can detect the size of all directions (are generally three axles) acceleration; size and the direction of gravity can be detected time static, can be used for identifying the application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of mobile phone attitude, Vibration identification correlation function (such as passometer, knock) etc.; As for mobile phone also other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, do not repeat them here.
Voicefrequency circuit 660, loudspeaker 661, microphone 662 can provide the audio interface between user and mobile phone.Voicefrequency circuit 660 can by receive voice data conversion after electric signal, be transferred to loudspeaker 661, by loudspeaker 661 be converted to voice signal export; On the other hand, the voice signal of collection is converted to electric signal by microphone 662, voice data is converted to after being received by voicefrequency circuit 660, after again voice data output processor 680 being processed, through RF circuit 610 to send to such as another mobile phone, or export voice data to storer 620 to process further.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user to send and receive e-mail by WiFi module 670, browse webpage and access streaming video etc., and its broadband internet wireless for user provides is accessed.Although Fig. 6 shows WiFi module 670, be understandable that, it does not belong to must forming of mobile phone 600, can omit in the scope of essence not changing invention as required completely.
Processor 680 is control centers of mobile phone, utilize the various piece of various interface and the whole mobile phone of connection, software program in storer 620 and/or module is stored in by running or performing, and call the data be stored in storer 620, perform various function and the process data of mobile phone, thus integral monitoring is carried out to mobile phone.Optionally, processor 680 can comprise one or more processing unit; Preferably, processor 680 accessible site application processor and modem processor, wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor mainly processes radio communication.Be understandable that, above-mentioned modem processor also can not be integrated in processor 680.
Mobile phone 600 also comprises the power supply 690(such as battery of powering to all parts), preferably, power supply can be connected with processor 680 logic by power-supply management system, thus realizes the functions such as management charging, electric discharge and power managed by power-supply management system.
Although not shown, mobile phone 600 can also comprise camera, bluetooth module etc., does not repeat them here.
In embodiments of the present invention, the processor 680 included by this terminal also has following functions:
Processor 680, for being mated by bag name, determines whether destination application starts; If destination application starts, then whether have new file produce, and determine whether the file type of new file mates with above-mentioned target program if monitoring memory device file folder; If have new file produce and its type mate with above-mentioned target program, then obtain the file directory of above-mentioned new file.
By bag coupling, above embodiment, determines whether target program starts, and pass through new file and the file type of monitoring memory device generation, determines the new file that target program produces, thus can obtain the file directory of target program.
Embodiments provide above by bag name coupling, determine whether destination application starts, the optional implementation of one, as follows: above-mentioned processor 680, for being mated by bag name, determine whether destination application starts, and comprising:
Processor 680, for monitoring the startup of current application program and changing interface; If listen to application program to change, and the application package name listened to is consistent with destination application bag name, then determine that above-mentioned current application program is destination application, and destination application starts.
The embodiment of the present invention additionally provides the more specifically optional implementation that above scheme monitoring application program changes, as follows: above-mentioned processor 680, if change for listening to application program, and the application package name listened to is consistent with destination application bag name to be comprised: processor 680, change for listening to application program stack top, and the application package name of application program stack top is consistent with destination application bag name.
The embodiment of the present invention give get file directory later can selection operation, be understandable that, getting the later operation of file directory can have a variety of, different operations can be had according to different demands, will not limit for the concrete operation embodiment of the present invention, below illustrate and also should not be construed as can selection operation exhaustive, particularly: processor 680, also for after the file directory obtaining above-mentioned new file, the file of above-mentioned file directory is encrypted and/or hides operation.
Alternatively, it is that the take pictures specific implementation of application program is as follows that the embodiment of the present invention additionally provides target program: if above-mentioned target program is application program of taking pictures, above-mentioned processor 680, comprise for determining that whether the file type of new file mates with above-mentioned target program: above-mentioned processor 680, for determining whether the suffix name of new file is picture file, if picture file, then determine that the file type of new file is mated with above-mentioned target program.
It should be noted that in said apparatus embodiment, included unit is carry out dividing according to function logic, but is not limited to above-mentioned division, as long as can realize corresponding function; In addition, the concrete title of each functional unit, also just for the ease of mutual differentiation, is not limited to protection scope of the present invention.
In addition, one of ordinary skill in the art will appreciate that all or part of step realized in above-mentioned each embodiment of the method is that the hardware that can carry out instruction relevant by program completes, corresponding program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.
These are only the present invention's preferably embodiment; but protection scope of the present invention is not limited thereto; anyly be familiar with those skilled in the art in the technical scope that the embodiment of the present invention discloses, the change that can expect easily or replacement, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of claim.

Claims (10)

1. a file directory acquisition methods, is characterized in that, comprising:
Mated by bag name, determine whether destination application starts;
If destination application starts, then whether have new file produce, and determine whether the file type of new file mates with described target program if monitoring memory device file folder;
If have new file produce and its type mate with described target program, then obtain the file directory of described new file.
2. method according to claim 1, is characterized in that, is describedly mated by bag name, determines whether destination application starts, and comprising:
The startup of current application program and changing interface are monitored;
If listen to application program to change, and the application package name listened to is consistent with destination application bag name, then determine that described current application program is destination application, and destination application starts.
3. method according to claim 2, is characterized in that, listen to application program change if described, and the application package name listened to is consistent with destination application bag name comprises:
Listen to application program stack top to change, and the application package name of application program stack top is consistent with destination application bag name.
4. method according to claims 1 to 3 any one, is characterized in that, after the file directory obtaining described new file, also comprises:
The file of described file directory is encrypted and/or hides operation.
5. method according to claims 1 to 3 any one, it is characterized in that, if described target program is application program of taking pictures, whether the described file type determining new file is mated with described target program and is comprised: whether the suffix name determining new file is picture file, if picture file, then determine that the file type of new file is mated with described target program.
6. a file directory acquisition device, is characterized in that, comprising:
Starting determining unit, for being mated by bag name, determining whether destination application starts;
Document determining unit, if start for described startup determining unit determination destination application, then whether have new file produce, and determine whether the file type of new file mates with described target program if monitoring memory device file folder;
Catalogue acquiring unit, if for described document determining unit define new file produce and its type mate with described target program, then obtain the file directory of described new file.
7. device according to claim 6, it is characterized in that, described startup determining unit, comprising:
Program listens unit, for monitoring the startup of current application program and changing interface;
Program determining unit, if listen to application program for described program listens unit to change, and the application package name listened to is consistent with destination application bag name, then determine that described current application program is destination application, and destination application starts.
8. device according to claim 7, is characterized in that,
Described program determining unit, if listen to application program stack top specifically for described program listens unit to change, and the application package name of application program stack top is consistent with destination application bag name, then determine that described current application program is destination application, and destination application starts.
9. device according to claim 6 to 8 any one, is characterized in that, also comprise:
Operating unit, after obtaining the file directory of described new file at described catalogue acquiring unit, is encrypted the file of described file directory and/or hides operation.
10. device according to claim 6 to 8 any one, is characterized in that,
Described catalogue acquiring unit, if be application program of taking pictures specifically for described target program, determine whether the suffix name of new file is picture file, if picture file, then determines that the file type of new file is mated with described target program.
CN201310409400.3A 2013-09-09 2013-09-09 File directory obtainment method and file directory obtainment device Pending CN104424321A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310409400.3A CN104424321A (en) 2013-09-09 2013-09-09 File directory obtainment method and file directory obtainment device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310409400.3A CN104424321A (en) 2013-09-09 2013-09-09 File directory obtainment method and file directory obtainment device

Publications (1)

Publication Number Publication Date
CN104424321A true CN104424321A (en) 2015-03-18

Family

ID=52973296

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310409400.3A Pending CN104424321A (en) 2013-09-09 2013-09-09 File directory obtainment method and file directory obtainment device

Country Status (1)

Country Link
CN (1) CN104424321A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106412340A (en) * 2016-11-30 2017-02-15 北京奇虎科技有限公司 Mobile terminal and notification information processing method and device thereof
CN107273401A (en) * 2017-04-21 2017-10-20 捷开通讯(深圳)有限公司 Management method, mobile device and the storage device of application data file
CN111913914A (en) * 2020-08-20 2020-11-10 珠海奔图电子有限公司 File processing method and device, electronic equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103176828A (en) * 2013-03-29 2013-06-26 北京奇虎科技有限公司 Method and device of deleting application program residual files

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103176828A (en) * 2013-03-29 2013-06-26 北京奇虎科技有限公司 Method and device of deleting application program residual files

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
CHUNLONGYUAN: "android获取当前运行的栈顶的应用包名", 《HTTPS://BLOG.CSDN.NET/CHUNLONGYUAN/ARTICLE/DETAILS/7673222》 *
DAVINTAN999: "android监听文件和目录的创建删除移动等事件", 《HTTP://BLOG.SINA.COM.CN/S/BLOG_749D1A9F01012JS2.HTML?MD=GD》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106412340A (en) * 2016-11-30 2017-02-15 北京奇虎科技有限公司 Mobile terminal and notification information processing method and device thereof
CN107273401A (en) * 2017-04-21 2017-10-20 捷开通讯(深圳)有限公司 Management method, mobile device and the storage device of application data file
CN111913914A (en) * 2020-08-20 2020-11-10 珠海奔图电子有限公司 File processing method and device, electronic equipment and storage medium
CN111913914B (en) * 2020-08-20 2024-04-30 珠海奔图电子有限公司 File processing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN103327189B (en) Method and device for uploading, browsing and deleting pictures
CN104063409B (en) A kind of field of database increases method and system
CN104699973A (en) Method and device for controlling logic of questionnaires
CN104462128A (en) Method and device for processing multi-media files and terminal equipment
CN104978176A (en) Application program interface calling method and device
CN104426963A (en) Terminal associating method and terminal
CN104111927A (en) Method, equipment and system for information classification
CN104301315A (en) Method and device for limiting information access
CN106484326B (en) A kind of data transmission processing method and mobile terminal
CN103473092A (en) Method and device for processing downloaded applications and terminal equipment
CN104125264A (en) Resource collecting method, device and equipment
CN104090879A (en) Picture sharing method, device and system
CN106921791A (en) The storage and inspection method of a kind of multimedia file, device and mobile terminal
CN103491245A (en) Method and device for storing short messages and terminal equipment
CN106033467A (en) Image file sharing method and device
CN103945241A (en) Streaming data statistical method, system and related device
CN104217172A (en) Privacy content checking method and device
CN104679724A (en) Page noting method and device
CN104216651A (en) Social information displaying method and device
CN104281610A (en) Method and device for filtering microblogs
CN104836717A (en) Data processing method and apparatus, and terminal equipment
CN105550316A (en) Pushing method and device of audio list
CN103227832B (en) Share method for processing resource and device
CN104424203A (en) Method and system for viewing photo sharing state in mobile device
CN104142994A (en) Data list acquisition method, terminal and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150318

RJ01 Rejection of invention patent application after publication