Specific embodiment
To make purpose, technical scheme and the advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
The a part of embodiment of the present invention, rather than the embodiment of whole.Present invention enforcement generally described and illustrated in accompanying drawing herein
The component of example can be arranged and designed with a variety of configurations.
Therefore, the detailed description of embodiments of the invention below to providing in the accompanying drawings is not intended to limit claimed
The scope of the present invention, but be merely representative of the present invention selected embodiment.Based on the embodiment in the present invention, this area is common
The every other embodiment that technical staff is obtained under the premise of creative work is not made, belongs to the model of present invention protection
Enclose.
It should be noted that:Similar label and letter represents similar terms in following accompanying drawing, therefore, once a certain Xiang Yi
It is defined in individual accompanying drawing, then it need not be further defined and is explained in subsequent accompanying drawing.
In describing the invention, it should be noted that term " first ", " second ", " the 3rd " etc. are only used for differentiation and retouch
State, and it is not intended that indicating or implying relative importance.
In describing the invention, in addition it is also necessary to explanation, unless otherwise clearly defined and limited, term " setting ",
" installation ", " connected ", " connection " should be interpreted broadly, for example, it may be fixedly connected, or be detachably connected, or one
The connection of body ground;Can be mechanically connected, or electrically connect;Can be joined directly together, it is also possible to indirect by intermediary
It is connected, can is the connection of two element internals.For the ordinary skill in the art, can be with concrete condition understanding
State term concrete meaning in the present invention.
As shown in figure 1, Fig. 1 is the block diagram of the mobile terminal 1 00 that the present embodiment is provided.The mobile terminal 1 00
Scanning resolver 110, memory 120, processor 130 and display unit 140 including installation kit.
The mobile terminal 1 00 may be, but not limited to, smart mobile phone, PC (personal computer,
PC), panel computer, personal digital assistant (personal digital assistant, PDA), mobile internet surfing equipment (mobile
Internet device, MID) etc..
The operating system of the mobile terminal 1 00 may be, but not limited to, Android (Android) system, IOS (iPhone
Operating system) system, Windows phone systems, Windows systems etc..Preferably, it is described in the present embodiment
The operating system of mobile terminal 1 00 is android system.
The memory 120, processor 130 and each element of display unit 140 directly or indirectly electrically connect each other
Connect, to realize the transmission or interaction of data.For example, these elements each other can be by one or more communication bus or signal
Line is realized being electrically connected with.The scanning resolver 110 of the installation kit can be with software or firmware including at least one
(Firmware) form is stored in the memory 120 or is solidificated in the operating system of the mobile terminal 1 00
Software function module in (Operating System, OS).The processor 130 is used to perform to deposit in the memory 120
The executable module of storage, such as software function module and computer journey included by the scanning resolver 110 of described installation kit
Sequence etc..
Wherein, the memory 120 may be, but not limited to, random access memory (Random Access
Memory, RAM), read-only storage (Read Only Memory, ROM), programmable read only memory (Programmable
Read-Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only
Memory, EPROM), electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only
Memory, EEPROM) etc..Wherein, the memory 120 is used for storage program, and the processor 130 is receiving execute instruction
Afterwards, described program is performed
A kind of possibly IC chip of the processor 130, the disposal ability with signal.Above-mentioned processor can
Being general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network
Processor, NP) etc.;Can also be digital signal processor (DSP)), special IC (ASIC), field programmable gate
Array (FPGA) either other PLDs, discrete gate or transistor logic, discrete hardware components.Can be real
Disclosed each method, step and logic diagram now or in the execution embodiment of the present invention.General processor can be microprocessor
Device or the processor can also be any conventional processors etc..
The display unit 140 provides an interactive interface (such as user behaviour between the mobile terminal 1 00 and user
Make interface) or for display image data.In the present embodiment, the display unit 140 can be liquid crystal display or touch-control
Display.If touch control display, it can be the capacitance type touch control screen or electric resistance touch-control for supporting single-point and multi-point touch operation
Screen etc..Support that single-point and multi-point touch operation refer to that touch control display can sense on the touch control display one or more
The touch control operation produced at position, and transfer to processor to be calculated and processed the touch control operation for sensing.
Refer to Fig. 2, the schematic flow sheet of the scanning analytic method of the installation kit that Fig. 2 is provided for the present embodiment, the side
Method is comprised the following steps.
Step S110, inquires about a database table, when record has the information of installation kit in inquiring the database table, obtains
And show the information of installation kit in the database table.
In the present embodiment, the mobile terminal 1 00 inquires about a database after installation kit scan request is received, first
Table, the database table is used to record the information of the last installation kit for performing and being obtained after scanning parsing task.When the data
When the information of installation kit is not recorded in the table of storehouse (when e.g., scanning parsing is performed for the first time), step S120 is jumped to.When the number
According to when record has the information of installation kit in the table of storehouse, the information of the installation kit is obtained, and the information of the installation kit is passed through into institute
State display unit 140 to be shown.Wherein, the information of the installation kit can include title, size, the storage road of installation kit
Footpath, version name or version number etc..
Specifically, refer to Fig. 3, in the present embodiment, step S110 can include sub-step S111, sub-step S112 and
Sub-step S113.Below sub-paragraphs S111, sub-step S112 and sub-step S113 are described in detail.
Sub-step S111, judges whether the installation kit inquired in the database table is stored in the mobile terminal
In 100.When the installation kit is not stored in the mobile terminal 1 00, sub-step S112 is performed;When installation kit storage
When in the mobile terminal 1 00, sub-step S113 is performed.
In the present embodiment, the mobile terminal 1 00 can obtain first depositing for installation kit in the database table is inquired about
Path is put, inspection judges that the installation kit whether there is under the storage path, so as to judge it is described whether the installation kit is stored in
In mobile terminal 1 00.
Sub-step S112, deletes the information of the installation kit from the database table.
When the installation kit is not present, then it is assumed that the information of the installation kit need not show to user, described mobile whole
End 100 is deleted by the information of the installation kit from the database table.
Sub-step S113, the information of the installation kit stored in the database table is enterprising in the mobile terminal 1 00
Row shows.
In the presence of the installation kit, the mobile terminal 1 00 is by the presentation of information of the installation kit to user.Thus,
By inquiring about and directly display the information of the installation kit for having recorded, it is to avoid to the installation kit repeated resolution for having recorded, can
The stand-by period of user in reduce installation kit scanning resolving.
Step S120, opens first task thread, scans the installation kit in the mobile terminal 1 00.
The mobile terminal 1 00 opens the first task thread to the mobile terminal 1 00 after execution step S110
Installation kit in memory space is scanned.In the present embodiment, when the operating system of the mobile terminal 1 00 is Android system
When, using the file of the APK forms for scanning as installation package file.
In an embodiment of the present embodiment, the first task thread can be to owning in the mobile terminal 1 00
Installation kit under catalogue is scanned.
In another embodiment in this embodiment, the first task thread can only in the mobile terminal 1 00
Installation kit under assigned catalogue is scanned.For mobile terminals such as smart mobile phone, panel computers, due under different application software
The installation kit of load is generally deposited under each specific catalogue, therefore, the mobile terminal 1 00 can only to default specified mesh
Record carries out the scanning of installation kit, with improving sweep efficiency.
Step S130, opens the second mission thread, to the first task thread scans to each be not recorded in it is described
Installation kit in database table is parsed, and shows the information of the installation kit for parsing.
In the present embodiment, when the first task thread is started, while starting second mission thread to installing
Bag is parsed, and makes the first task thread with the parallel thread that second mission thread is operation simultaneously.
In an embodiment of the present embodiment, the first task thread scans are described mobile whole to after installation kit
End 100 is compared the installation kit with the installation kit of record in the database table using second mission thread, if should
Installation kit has solution new record in the database table, then skip the parsing to the installation kit;If the installation kit is in the number
According to new record is not solved in the table of storehouse, then 00 pair of installation kit of the mobile terminal 1 is parsed, and the peace that parsing is obtained
The presentation of information of dress bag is to user.
In this another embodiment implemented, the first task thread scans to after installation kit, by what is scanned
Installation kit is compared with the installation kit of record in the database table, is filtered out and be wherein not recorded in the database table
Installation kit.Second thread is parsed to the installation kit that the first thread is filtered out, and the peace that parsing is obtained
The presentation of information of dress bag is to user.
Jing inventor's research finds that now intelligent mobile terminal general at present all adopts polycaryon processor, supports multithreading
Task process, but installation kit of the prior art scanning analytic method, in same thread perform installation kit scanning
And parsing, the processor resource of mobile terminal is not only effectively utilized, user when also creating execution scanning parsing task
Stand-by period it is long.
Therefore in the present embodiment, respectively installation kit is carried out parallel by the first task thread and the second mission thread
Scanning and parsing, rationally using the multithreading task processing function of mobile terminal processor, greatly improved the effect of scanning parsing
Rate.
Further, Fig. 4 is refer to, methods described can also include step S140.
Step S140, the information of the installation kit that second mission thread is parsed is added into the database table,
The database table is updated.
In the present embodiment, the mobile terminal 1 00 adds the information of the installation kit parsed in step S130 to described
In database table, the mobile terminal 1 00 can be allow when scanning parsing task next time is performed directly from the database
The information of parsed installation kit is searched in table, it is to avoid repeated resolution and cause the resource of unnecessary time-consuming and processor
Waste.
Fig. 5 is refer to, is the functional block diagram of the scanning resolver 110 of the installation kit that the present embodiment is provided.This enforcement
In example, the scanning resolver 110 of the installation kit includes enquiry module 111, scan module 112 and parsing display module
113。
The enquiry module 111 is used for when record has the information of installation kit in inquiring database table, obtains and shows
The information of installation kit in the database table.
Specifically, Fig. 6 is refer to, in the present embodiment, the enquiry module 111 includes judging submodule 1111, installs
Bag record deletion submodule 1112 and installation kit presentation of information submodule 1113.
The judging submodule 1111 is used to judge whether the installation kit inquired in the database table is stored in institute
In stating mobile terminal 1 00.
Specifically, in the present embodiment, the judging submodule 1111 can inquire about installation first from the database table
The storage path of bag, then by judging the storage path under with the presence or absence of the installation kit judging whether the installation kit stores
In the mobile terminal 1 00.
The installation kit record deletion submodule 1112 is used for when the installation kit is not stored in the mobile terminal 1 00
When, the information of the installation kit is deleted from the database table.
The installation kit presentation of information submodule 1113 is used for when the installation kit is stored in the mobile terminal 1 00
When, the information of the installation kit recorded in the database table is shown in the mobile terminal 1 00.
The scan module 112 is used to open first task thread, scans the installation kit in the mobile terminal 1 00.
Further, in an embodiment of the present embodiment, the scan module 112 can be to the mobile terminal
Installation kit in 100 under all catalogues is scanned, and obtains the installation kit in the mobile terminal 1 00.
Further, it is mobile for smart mobile phone, panel computer etc. whole in the another embodiment of the present embodiment
End, because the installation kit of different application software download is generally deposited under each specific catalogue, the scan module 112 can be only
Installation kit under assigned catalogue in the mobile terminal 1 00 is scanned, the installation kit in the mobile terminal 1 00 is obtained.
The parsing display module 113 is used to open the second mission thread, and what the first task thread scans were arrived is every
The individual installation kit being not recorded in the database table is parsed, and shows the information of the installation kit for parsing.
Specifically, in the present embodiment, the first task thread and second mission thread are parallel thread.
Further, Fig. 7 is refer to, in the present embodiment, is also included in the scanning resolver 110 of the installation kit:
Database table update module 114, the information of the installation kit for second mission thread to be parsed is added to the data
In the table of storehouse, the database table is updated.
In sum, a kind of scanning analytic method of installation kit that the present invention is provided, device and electric terminal, to installing
Bag carries out the information of the installation kit before surface sweeping first to having recorded in database table and carries out query display, then installation kit is swept
Retouch, parsing and showing does not have in the database the installation kit of record, it is to avoid the repeated resolution to installation kit.And by
The scanning and parsing of installation kit are carried out two thread parallels, and the stand-by period of user in scanning resolving is greatly reduced.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, it is also possible to pass through
Other modes are realized.Device embodiment described above is only schematic, for example, the flow chart and block diagram in accompanying drawing
Show the device of multiple embodiments of the invention, the architectural framework in the cards of method and computer program product,
Function and operation.At this point, each square frame in flow chart or block diagram can represent the one of module, program segment or a code
Part a, part for the module, program segment or code is used to realize holding for the logic function of regulation comprising one or more
Row instruction.It should also be noted that at some as in the implementations replaced, the function of being marked in square frame can also be being different from
The order marked in accompanying drawing occurs.For example, two continuous square frames can essentially be performed substantially in parallel, and they are sometimes
Can perform in the opposite order, this is depending on involved function.It is also noted that every in block diagram and/or flow chart
The combination of individual square frame and block diagram and/or the square frame in flow chart, can be with the special base of the function or action for performing regulation
Realize in the system of hardware, or can be realized with the combination of computer instruction with specialized hardware.
In addition, each functional module in each embodiment of the invention can integrate to form an independent portion
Divide, or modules individualism, it is also possible to which two or more modules are integrated to form an independent part.
If the function is realized and as independent production marketing or when using using in the form of software function module, can be with
In being stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words
The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be individual
People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the invention.
And aforesaid storage medium includes:USB flash disk, portable hard drive, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality
Body or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or deposit between operating
In any this actual relation or order.And, term " including ", "comprising" or its any other variant are intended to
Nonexcludability is included, so that a series of process, method, article or equipment including key elements not only will including those
Element, but also including other key elements being not expressly set out, or also include for this process, method, article or equipment
Intrinsic key element.In the absence of more restrictions, the key element for being limited by sentence "including a ...", it is not excluded that
Also there is other identical element in process, method, article or equipment including the key element.
The preferred embodiments of the present invention are the foregoing is only, the present invention is not limited to, for the skill of this area
For art personnel, the present invention can have various modifications and variations.It is all within the spirit and principles in the present invention, made any repair
Change, equivalent, improvement etc., should be included within the scope of the present invention.It should be noted that:Similar label and letter exists
Similar terms is represented in figure below, therefore, once being defined in a certain Xiang Yi accompanying drawing, then it is not required in subsequent accompanying drawing
It is further defined and is explained.
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, all should contain
Cover within protection scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.