CN106603872A - Method for starting application according to association strategy, device and mobile terminal - Google Patents
Method for starting application according to association strategy, device and mobile terminal Download PDFInfo
- Publication number
- CN106603872A CN106603872A CN201710058943.3A CN201710058943A CN106603872A CN 106603872 A CN106603872 A CN 106603872A CN 201710058943 A CN201710058943 A CN 201710058943A CN 106603872 A CN106603872 A CN 106603872A
- Authority
- CN
- China
- Prior art keywords
- application
- associated application
- data
- tables
- class
- 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
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
Landscapes
- Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a method for starting an application according to an association strategy, a device and a mobile terminal. The method comprises the following steps: when the application is started, detecting an application code segment, and analyzing the application code segment to obtain an associated application of the application so as to form an associated application data sheet of this application; and silently starting the associated application recorded in the associated application data sheet. According to the method disclosed by the invention, while an application is started, an associated application thereof is started, so that a cold start does not need to be performed when the associated application is called, a corresponding speed is relatively high, and the user experience is better.
Description
Technical field
The present invention relates to technical field of mobile terminals, more particularly to a kind of method, dress for starting application according to associating policy
Put and mobile terminal.
Background technology
The electronic product instrument that mobile phone cannot leave as current masses, due to the use viscosity with user very
Height, thus general user the response speed applied on mobile phone is required it is all higher, it is desirable to application can real-time response.
The Starting mode of Android applications at present can be divided into two kinds:Cold start-up and thermal starting;Cold start-up refers to the of application
One-shot, system needs to create a new process, and loading application operation on startup for it when starting using first time
When the resource such as the class libraries that needs;Thermal starting is referred to using backstage has been temporarily stored in, when user again taps on this to apply, application
Directly it is scheduled for front stage operation from backstage.It is general due to create process and loading resource, toggle speed using cold start-up
It is all slow;Compared to cold start-up, thermal starting does not create the process of process and loading resource, so using the speed of thermal starting
Degree is significantly larger than cold start-up.
The content of the invention
Present invention is primarily targeted at proposing a kind of method, device and movement for starting application according to associating policy eventually
End, it is intended to solve the problems, such as that existing mobile terminal application cold start speed is bad compared with the Consumer's Experience for being brought slowly.
For achieving the above object, a kind of method that application is started according to associating policy that the present invention is provided, including:
During using starting, application code section is detected, analyzing the associated application that application code section obtains the application, formation should
Associated application tables of data;
The associated application mourned in silence described in startup associated application tables of data.
Further, when the step application starts, application code section is detected, analysis application code section obtains the application
Associated application, the associated application tables of data for forming this application is further included:
During using starting, sweep start moving component, detection starts the parameter value of moving component, if the class that the value is pointed to
It is not this application, is then associated application, the associated application is added in associated application tables of data.
Further, when the step application starts, application code section is detected, analysis application code section obtains the application
Associated application, the associated application tables of data for forming this application is further included:
During using starting, sweep start serviced component, detection starts the parameter value of serviced component, if the class that the value is pointed to
It is not this application, nor the service services of system, then be associated application, the associated application is added to into associated application number
According in table.
Further, when the step application starts, application code section is detected, analysis application code section obtains the application
Associated application, the associated application tables of data for forming this application is further included:
During using starting, broadcast component is scanned, detecting the parameter value of broadcast component, if the class that the value is pointed to is not should
With, then it is associated application, the associated application is added in associated application tables of data.
Further, when the step application starts, application code section is detected, analysis application code section obtains the application
Associated application, the associated application tables of data for forming this application is further included:
During using starting, scan for inquiries, inserting, deleting, updating the data storehouse, detecting the address parameter value of each data base, such as
The class that really value is pointed to is not this application, then be associated application, and the associated application is added in associated application tables of data.
Further, the startup of mourning in silence includes:Set up corresponding process of applying, the money that preloaded applications need when running
Source and class libraries.
Additionally, for achieving the above object, the present invention also proposes a kind of device for starting application according to associating policy, including:
Associated application statistical module, for when application starts, detecting application code section, analysis application code section is obtained should
Using associated application, formed this application associated application tables of data;
Associated application starting module, for when application starts, obtaining the associated application tables of data of the application, startup of mourning in silence
Associated application described in associated application tables of data.
Further, the associated application statistical module is further included:
Activity scanning submodule, for sweep start moving component, detection starts the parameter value of moving component, if the value
The class of sensing is not this application, then be associated application, and the associated application is added in associated application tables of data;
Service scan submodule, for sweep start serviced component, detection starts the parameter value of serviced component, if the value
The class of sensing is not this application, nor the service services of system, then be associated application, the associated application is added to into pass
In connection application data sheet;
Broadcast scan submodule, for scanning broadcast component, detects the parameter value of broadcast component, if the class that the value is pointed to
It is not this application, is then associated application, the associated application is added in associated application tables of data;
Scan database submodule, for scan for inquiries, inserts, deletes, updating the data storehouse, detects the address of each data base
Parameter value, is associated application if the class that the value is pointed to is not this application, and the associated application is added to into associated application data
In table.
Further, the startup of mourning in silence includes:Set up corresponding process of applying, the money that preloaded applications need when running
Source and class libraries.
And, the present invention also proposes a kind of mobile terminal, and the mobile terminal includes any of the above-described device.
Method, device and the mobile terminal for starting application according to associating policy proposed by the present invention, by starting in application
When to detect code in the way of recognize application association start application, then in the lump mourn in silence startup its associated application, when user need
When using associated application, the application of startup of being mourned in silence is just capable of fast starting, and reach raising improves user's body using toggle speed
The effect tested.
Description of the drawings
Fig. 1 is the hardware architecture diagram of an optional mobile terminal for realizing each embodiment of the invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
A kind of flow process of method for starting application according to associating policy that Fig. 3 is provided for first embodiment of the invention is illustrated
Figure;
Fig. 4 starts the schematic flow sheet of method for a kind of application that second embodiment of the invention is provided;
Fig. 5 starts the schematic flow sheet of method for a kind of application that third embodiment of the invention is provided;
A kind of structural representation of device for starting application according to associating policy that Fig. 6 is provided for fourth embodiment of the invention
Figure;
Fig. 7 is the structural representation of associated application statistical module in fourth embodiment of the invention;
A kind of mobile terminal structure schematic diagram that Fig. 8 fifth embodiment of the invention is provided;
The system framework figure of the mobile terminal that Fig. 9 is provided for the present invention.
The realization of the object of the invention, functional characteristics and advantage will be described further referring to the drawings in conjunction with the embodiments.
Specific embodiment
It should be appreciated that specific embodiment described herein is not intended to limit the present invention only to explain the present invention.
The mobile terminal of each embodiment of the invention is realized referring now to Description of Drawings.In follow-up description, use
For represent element such as " module ", " part " or " unit " suffix only for be conducive to the present invention explanation, itself
Not specific meaning.Therefore, " module " can be used mixedly with " part ".
Mobile terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as moving
Phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (panel computer), PMP
The mobile terminal of (portable media player), guider etc. and such as numeral TV, desk computer etc. are consolidated
Determine terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that, except being used in particular for movement
Outside the element of purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 1 is that the hardware configuration of an optional mobile terminal for realizing each embodiment of the invention is illustrated.
Mobile terminal 1 00 can include wireless communication unit 110, A/V (audio/video) input block 120, user input
Unit 130, sensing unit 140, output unit 150, memorizer 160, interface unit 170, controller 180 and power subsystem 190
Etc..Fig. 1 shows the mobile terminal with various assemblies, it should be understood that being not required for implementing all groups for illustrating
Part.More or less of component can alternatively be implemented.Will be discussed in more detail below the element of mobile terminal.
Wireless communication unit 110 generally includes one or more assemblies, and it allows mobile terminal 1 00 and wireless communication system
Or the radio communication between network.For example, wireless communication unit can include broadcasting reception module 111, mobile communication module
112nd, at least one of wireless Internet module 113, short range communication module 114 and location information module 115.
Broadcasting reception module 111 receives broadcast singal and/or broadcast via broadcast channel from external broadcast management server
Relevant information.Broadcast channel can include satellite channel and/or terrestrial channel.Broadcast management server can be generated and sent
The broadcast singal generated before the server or reception of broadcast singal and/or broadcast related information and/or broadcast related information
And send it to the server of terminal.Broadcast singal can include TV broadcast singals, radio signals, data broadcasting
Signal etc..And, broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast phase
Pass information can also be provided via mobile communications network, and in this case, broadcast related information can be by mobile communication mould
Block 112 is receiving.Broadcast singal can be present in a variety of manners, and for example, it can be with the electronics of DMB (DMB)
The form of program guide (EPG), the electronic service guidebooks (ESG) of digital video broadcast-handheld (DVB-H) etc. and exist.Broadcast
Receiver module 111 can receive signal broadcast by using various types of broadcast systems.Especially, broadcasting reception module 111
Can be wide by using such as multimedia broadcasting-ground (DMB-T), DMB-satellite (DMB-S), digital video
Broadcast-hand-held (DVB-H), forward link media (MediaFLO@) Radio Data System, received terrestrial digital broadcasting integrated service
Etc. (ISDB-T) digit broadcasting system receives digital broadcasting.Broadcasting reception module 111 may be constructed such that and be adapted to provide for extensively
Broadcast the various broadcast systems and above-mentioned digit broadcasting system of signal.Via broadcasting reception module 111 receive broadcast singal and/
Or broadcast related information can be stored in memorizer 160 (or other types of storage medium).
Mobile communication module 112 sends radio signals to base station (for example, access point, node B etc.), exterior terminal
And at least one of server and/or receive from it radio signal.Such radio signal can be logical including voice
Words signal, video calling signal or the various types of data for sending and/or receiving according to text and/or Multimedia Message.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.The module can be internally or externally
It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by the module can include WLAN (WLAN) (Wi-Fi), Wibro
(WiMAX), Wimax (worldwide interoperability for microwave accesses), HSDPA (high-speed downlink packet access) etc..
Short range communication module 114 is the module for supporting junction service.Some examples of short-range communication technology include indigo plant
ToothTM, RF identification (RFID), Infrared Data Association (IrDA), ultra broadband (UWB), purple honeybeeTMEtc..
Location information module 115 is the module for checking or obtaining the positional information of mobile terminal.Location information module
Typical case be GPS (global positioning system).According to current technology, GPS module 115 is calculated from three or more satellites
Range information and correct time information and for calculate Information application triangulation, so as to according to longitude, latitude
Highly accurately calculate three-dimensional current location information.Currently, the method for calculating position and temporal information is defended using three
The error of star and the position that calculated by using other satellite correction and temporal information.Additionally, GPS module 115
Can be by Continuous plus current location information in real time come calculating speed information.
A/V input blocks 120 are used to receive audio or video signal.A/V input blocks 120 can include the He of camera 121
Mike 1220, the static map that 121 pairs, camera is obtained in Video Capture pattern or image capture mode by image capture apparatus
The view data of piece or video is processed.Picture frame after process may be displayed on display unit 151.At Jing cameras 121
Picture frame after reason can be stored in memorizer 160 (or other storage mediums) or via wireless communication unit 110 and carry out
Send, two or more cameras 1210 can be provided according to the construction of mobile terminal.Mike 122 can be in telephone relation mould
Sound (voice data) is received via mike in formula, logging mode, speech recognition mode etc. operational mode, and can be by
Such acoustic processing is voice data.Audio frequency (voice) data after process can be changed in the case of telephone calling model
For the form output of mobile communication base station can be sent to via mobile communication module 112.Mike 122 can implement all kinds
Noise eliminate (or suppress) algorithm eliminating (or suppression) in the noise for receiving and producing during sending audio signal or
Person disturbs.
User input unit 130 can generate key input data to control each of mobile terminal according to the order of user input
Plant operation.User input unit 130 allows the various types of information of user input, and can include keyboard, metal dome, touch
Plate (for example, detection is due to the sensitive component of the change of touched and caused resistance, pressure, electric capacity etc.), roller, rocking bar etc.
Deng.Especially, when touch pad is superimposed upon in the form of layer on display unit 151, touch screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 1 00, and (for example, mobile terminal 1 00 opens or closes shape
State), the presence or absence of contact (that is, touch input), the mobile terminal of the position of mobile terminal 1 00, user for mobile terminal 1 00
100 orientation, the acceleration or deceleration movement of mobile terminal 1 00 and direction etc., and generate for controlling mobile terminal 1 00
The order of operation or signal.For example, when mobile terminal 1 00 is embodied as sliding-type mobile phone, sensing unit 140 can be sensed
The sliding-type phone is opened or closed.In addition, sensing unit 140 can detect power subsystem 190 whether provide electric power or
Whether person's interface unit 170 couples with external device (ED).
Interface unit 170 is connected the interface that can pass through with mobile terminal 1 00 as at least one external device (ED).For example,
External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing
Line FPDP, memory card port, the port for device of the connection with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Identification module can be that storage uses each of mobile terminal 1 00 for verifying user
Kind of information and subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) can be included
Etc..In addition, the device (hereinafter referred to as " identifying device ") with identification module can take the form of smart card, therefore, know
Other device can be connected via port or other attachment means with mobile terminal 1 00.Interface unit 170 can be used for receive from
The input (for example, data message, electric power etc.) of external device (ED) and the input for receiving is transferred in mobile terminal 1 00
One or more elements can be used for the transmission data between mobile terminal and external device (ED).
In addition, when mobile terminal 1 00 is connected with external base, interface unit 170 can serve as allowing to pass through it by electricity
Power from base provide to mobile terminal 1 00 path or can serve as allow from base be input into various command signals pass through its
It is transferred to the path of mobile terminal.Can serve as recognizing that mobile terminal is from the various command signals or electric power of base input
It is no to start the signal on base exactly.Output unit 150 is configured to provide defeated with vision, audio frequency and/or tactile manner
Go out signal (for example, audio signal, video signal, alarm signal, vibration signal etc.).Output unit 150 can include showing
Unit 151, dio Output Modules 152, alarm unit 153 etc..
Display unit 151 may be displayed on the information processed in mobile terminal 1 00.For example, when mobile terminal 1 00 is in electricity
During words call mode, display unit 151 can show and converse or other communicate (for example, text messaging, multimedia files
Download etc.) related user interface (UI) or graphic user interface (GUI).When mobile terminal 1 00 is in video calling pattern
Or during image capture mode, display unit 151 can show the image of capture and/or the image of reception, illustrate video or figure
UI or GUI of picture and correlation function etc..
Meanwhile, when the display unit 151 and touch pad touch screen with formation superposed on one another in the form of layer, display unit
151 can serve as input equipment and output device.Display unit 151 can include liquid crystal display (LCD), thin film transistor (TFT)
In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least
It is a kind of.Some in these display may be constructed such that transparence to allow user from outside viewing, and this is properly termed as transparent
Display, typical transparent display can be, for example, TOLED (transparent organic light emitting diode) display etc..According to specific
The embodiment wanted, mobile terminal 1 00 can include two or more display units (or other display devices), for example, move
Dynamic terminal can include outernal display unit (not shown) and inner display unit (not shown).Touch screen can be used for detection and touch
Input pressure and touch input position and touch input area.
Dio Output Modules 152 can mobile terminal in call signal reception pattern, call mode, logging mode,
It is that wireless communication unit 110 is received or in memorizer 160 when under the isotypes such as speech recognition mode, broadcast reception mode
The voice data transducing audio signal of middle storage and it is output as sound.And, dio Output Modules 152 can be provided and movement
The audio output (for example, call signal receives sound, message sink sound etc.) of the specific function correlation that terminal 100 is performed.
Dio Output Modules 152 can include speaker, buzzer etc..
Alarm unit 153 can provide output so that event is notified to mobile terminal 1 00.Typical event can be with
Including calling reception, message sink, key signals input, touch input etc..In addition to audio or video is exported, alarm unit
153 can in a different manner provide output with the generation of notification event.For example, alarm unit 153 can be in the form of vibrating
Output is provided, when calling, message or some other entrance communication (incomingcommunication) are received, alarm list
Unit 153 can provide tactile output (that is, vibrating) to notify to user.By providing such tactile output, even if
When the mobile phone of user is in the pocket of user, user also can recognize that the generation of various events.Alarm unit 153
The output of the generation of notification event can be provided via display unit 151 or dio Output Modules 152.
Memorizer 160 can store software program for the process and control operation performed by controller 180 etc., Huo Zheke
With the data (for example, telephone directory, message, still image, video etc.) for temporarily storing own Jing outputs or will export.And
And, memorizer 160 can be storing the vibration of various modes with regard to exporting when touching and being applied to touch screen and audio signal
Data.
Memorizer 160 can include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, many
Media card, card-type memorizer (for example, SD or DX memorizeies etc.), random access storage device (RAM), static random-access storage
Device (SRAM), read only memory (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory
(PROM), magnetic storage, disk, CD etc..And, mobile terminal 1 00 can perform memorizer with by network connection
The network storage device cooperation of 160 store function.
The overall operation of the generally control mobile terminal of controller 180.For example, controller 180 is performed and voice call, data
The related control of communication, video calling etc. and process.In addition, controller 180 can be included for reproducing (or playback) many matchmakers
The multi-media module 1810 of volume data, multi-media module 1810 can be constructed in controller 180, or is so structured that and control
Device processed 180 is separated.Controller 180 can be with execution pattern identifying processing, by the handwriting input for performing on the touchscreen or figure
Piece draws input and is identified as character or image.
Power subsystem 190 receives external power or internal power under the control of controller 180 and provides operation each unit
Appropriate electric power needed for part and component.
Various embodiments described herein can be with using such as computer software, hardware or its any combination of calculating
Machine computer-readable recording medium is implementing.For hardware is implemented, embodiment described herein can be by using application-specific IC
(ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can
Programming gate array (FPGA), processor, controller, microcontroller, microprocessor, it is designed to perform function described herein
Implementing, in some cases, such embodiment can be implemented at least one in electronic unit in controller 180.
For software is implemented, the embodiment of such as process or function can with allow to perform the single of at least one function or operation
Software module is implementing.Software code can be come by the software application (or program) write with any appropriate programming language
Implement, software code can be stored in memorizer 160 and be performed by controller 180.
So far, own Jing describes mobile terminal according to its function.Below, for the sake of brevity, will description such as folded form,
Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc. is used as showing
Example.Therefore, the present invention can be applied to any kind of mobile terminal, and be not limited to slide type mobile terminal.
As shown in Figure 1 mobile terminal 1 00 may be constructed such that using via frame or packet transmission data it is all if any
Line and wireless communication system and satellite-based communication system are operating.
The communication system that mobile terminal wherein of the invention is operable to is described referring now to Fig. 2.
Such communication system can use different air interface and/or physical layer.For example, used by communication system
Air interface includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) and universal mobile communications system
System (UMTS) (especially, Long Term Evolution (LTE)), global system for mobile communications (GSM) etc..As non-limiting example, under
The description in face is related to cdma communication system, but such teaching is equally applicable to other types of system.
With reference to Fig. 2, cdma wireless communication system can include multiple mobile terminal 1s 00, multiple base stations (BS) 270, base station
Controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is configured to and Public Switched Telephony Network (PSTN)
290 form interface.MSC280 is also structured to form interface with the BSC275 that can be couple to base station 270 via back haul link.
If any one that back haul link can be in the interface that Ganji knows is constructing, the interface includes such as E1/T1, ATM, IP,
PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that as shown in Figure 2 system can include multiple BSC2750.
Each BS270 can service one or more subregions (or region), by multidirectional antenna or the day of sensing specific direction
Each subregion that line is covered is radially away from BS270.Or, each subregion can by for diversity reception two or more
Antenna is covered.Each BS270 may be constructed such that the multiple frequency distribution of support, and each frequency distribution has specific frequency spectrum
(for example, 1.25MHz, 5MHz etc.).
What subregion and frequency were distributed intersects can be referred to as CDMA Channel.BS270 can also be referred to as base station transceiver
System (BTS) or other equivalent terms.In this case, term " base station " can be used for broadly representing single
BSC275 and at least one BS270.Base station can also be referred to as " cellular station ".Or, each subregion of specific BS270 can be claimed
For multiple cellular stations.
As shown in Figure 2, broadcast singal is sent to broadcsting transmitter (BT) 295 mobile terminal operated in system
100.As shown in Figure 1 broadcasting reception module 111 is arranged at mobile terminal 1 00 to receive the broadcast sent by BT295
Signal.In fig. 2 it is shown that several global positioning system (GPS) satellites 300.Satellite 300 helps position multiple mobile terminals
At least one of 100.
In fig. 2, multiple satellites 300 are depicted, it is understood that be, it is possible to use any number of satellite obtains useful
Location information.As shown in Figure 1 GPS module 115 is generally configured to coordinate to obtain the positioning wanted letter with satellite 300
Breath.Substitute GPS tracking techniques or outside GPS tracking techniques, it is possible to use can track the position of mobile terminal other
Technology.In addition, at least one gps satellite 300 can optionally or additionally process satellite dmb transmission.
Used as a typical operation of wireless communication system, BS270 receives the reverse link from various mobile terminal 1s 00
Signal.Mobile terminal 1 00 generally participates in call, information receiving and transmitting and other types of communication.Each of the reception of certain base station 270 is anti-
Processed in specific BS270 to link signal.The data of acquisition are forwarded to the BSC275 of correlation.BSC provides call
Resource allocation and the mobile management function of the coordination including the soft switching process between BS270.BSC275 is also by the number for receiving
According to MSC280 is routed to, it provides the extra route service for forming interface with PSTN290.Similarly, PSTN290 with
MSC280 forms interface, and MSC and BSC275 form interface, and BSC275 correspondingly controls BS270 with by forward link signals
It is sent to mobile terminal 1 00.
Based on above-mentioned mobile terminal hardware configuration and communication system, the inventive method each embodiment is proposed.
Embodiment one
First embodiment of the invention proposes a kind of method for starting application according to associating policy, as shown in figure 3, including following
Step:
S101, during using starting, detects application code section, analyzes the associated application that application code section obtains the application, shape
The associated application tables of data of cost application;
When startup is applied, when java virtual machines load a java class, the application is scanned according to specific rule
Code segment, the association for detecting the application starts application, and is stored in a table.Association starts application, i.e., two independences should
With because usually association is used, the association start button is clicked directly in case of need by setting association start button and is opened
The associated application is moved, such as when needing to share the picture in picture APP by other APP, directly selects it in picture APP
The button of his APP, the button of the APP is arranged in advance in picture APP in the way of associating and starting application, is being pressed the button
Afterwards, associated AP P will be activated.If the associated buttons are not typically preset as associated AP P, can not be in this way
Start.
Association log-on data sheet format is as follows, and an application can correspond to multiple associations and start application:
In android application programs, an application will start other application, typically by following four mode:Open
The Actvitivy (activity) of dynamic other application, the Service (service) for starting other application, startup other application
Provider (data base), by broadcast.Therefore, being detected the presence of by the code segment and data segment of scanning application calls other to answer
Rule is as follows:
(1) startActivity and startActivityForResult methods are scanned, detects the ginseng in the two methods
The component values of number intent, are associated applications if the class that the value is pointed to is not this application, then add the application
Start in table to association;
(2) startService and bindService methods are scanned, detects parameter intent in the two methods
Component values, if the class that the value is pointed to is not this application, nor the service services of system, then be associated application,
Then the application is added in association startup table;
(3) sendBroadcast, sendOrderedBroadcast and sendStickyBroadcast method, inspection are scanned
The component values of parameter intent surveyed in these three methods, are that association should if the class that the value is pointed to is not this application
With, then by the application be added to association startup table in;
(4) query, insert, delete, update method call of ContentResolver objects, detection, are scanned
The value of parameter Uri in this four method calls, is associated application if the class that the value is pointed to is not this application, then should
Associate in startup table using being added to;
According to this four rules to apply code segment and data segment it is scanned after, it is possible to identification application institute it is relevant
Connection starts application, so as to set up the associated application tables of data of the application.
S102, the associated application started described in associated application tables of data of mourning in silence.
Startup of mourning in silence includes:Corresponding process of applying is set up, resource and class libraries that preloaded applications need when running, but
Do not run, only when the button of the associated application is touched, just transfer process, the prestrain created when starting of mourning in silence
Resource and class libraries are quickly started.
The method that application is started according to associating policy of implementation above, by the code segment of the detecting application when application starts
The association startup application of application is obtained, then starts its associated application using mourning in silence when starting simultaneously, so as to pass through in user
When one application accesses other associated applications, can quickly start associated application, compare cold start-up associated application, greatly promotes
Toggle speed, improves Consumer's Experience.
Embodiment two
Second embodiment of the invention provides a kind of using startup method, as shown in figure 4, comprising the following steps:
S201, during using starting, when java virtual machines start to perform certain class of the application, scanning
StartActivity and startActivityForResult methods, detect the component values of parameter intent,
S202, judges that the class that the value is pointed to is this application, is then associated application if not this application, performs
S209;Otherwise perform S203;
Activity be it is most basic in Android components be also the big component of most commonly seen four:Activity,
Service is serviced, Content Provider content providers, one of BroadcastReceiver radio receivers.
Activity is an application component, and user can be used to interaction to complete a certain task.At one
In android applications, an Activity is exactly generally a single screen, and it can show that some controls can also above
The event for monitoring and processing user is responded.Communicated by Intent between Activity.
Class, calls the turn in OO machine word, and class is the abstractdesription to a certain class things in real world, is tool
There is the set of the things of common trait, in the present embodiment, the class of the component values sensing of parameter intent, is to represent one
The abstractdesription of individual application.
S203, scans startService and bindService methods, detects the component values of parameter intent;
S204, judges that the class that the value is pointed to is this application, or whether the service of system is servicedIf not
This application nor system service service, then be associated application, perform S209,;Otherwise perform S205;
S205, scans sendBroadcast, sendOrderedBroadcast and sendStickyBroadcast method,
The component values of detection parameter intent;
S206, judges that the class that the value is pointed to is this application, is association if the class that the value is pointed to is not this application
Using execution S209;Otherwise perform S207;
Broadcast is one of four big components in Android, and Broadcast is that a kind of extensive utilization is applying journey
The mechanism of transmission information between sequence.The broadcast of such as some systems:The certain operations such as electricity is low, start, screen locking can all send one
Individual broadcast.First where transmission information is needed, the information to be sent and for filter information (as Action,
Category) load an Intent object, then by call Context.sendBroadcast (),
SendOrderBroadcast () or sendStickyBroadcast () method, are sent out Intent objects with broadcast mode
Go.
S207, scans query, insert, delete, update method call of ContentResolver objects, detection
The value of parameter Uri in this four method calls;
S208, judges that the class that the value is pointed to is this applicationIt is association if what URI values were pointed to is not this application
Using execution S209;Otherwise perform S210;
URI is the definition of Internet resources, ContentResolver by URI to inquire about ContentProvider in provide
Data.
S209, the associated application is added in associated application tables of data;
S210, terminates scanning.
The application startup method of implementation above, the Actvitivy of scanning application, startup other application when being started by application
Service, start other application Provider, by broadcast identification application association start application, so as to set up association
Application data sheet, is that simultaneously startup associated application is got ready using when starting.
Embodiment three
The embodiment of the present invention three provides a kind of using startup method, as shown in figure 5, comprising the following steps:
S301, obtains application and starts order, and when java virtual machines start to perform certain class of the application, inquiry association should
Use tables of data;
S302, if there is associated application tables of dataIf it is present performing S303, S304 is otherwise performed;
Associated application tables of data to set up process identical with embodiment two, will not be described here.
S303, the associated application started in associated application tables of data of mourning in silence;
Startup associated application of mourning in silence includes:Set up corresponding process of applying, when preloaded applications are run the resource that needs and
Class libraries, but do not run, only when the button of the associated application is touched, just transfer mourn in silence start when created enter
Journey, the resource of prestrain and class libraries are associated the quick startup of application.
S304, terminates.
In the case where there is no associated application, this application performs normal startup.
The application startup method of implementation above, by accessing the associated application tables of data having built up associated application is inquired about,
And the associated application to existing performs startup of mourning in silence, associated application is then to directly invoke from internal memory and start when starting, speed ratio
Cold start-up is many soon, so as to improve the Consumer's Experience of terminal.
Example IV
Fourth embodiment of the invention provides a kind of device for starting application according to associating policy, as shown in fig. 6, including association
Applied statistics module 10, associated application starting module 20.
Associated application statistical module 10, for when application starts, detecting application code section, analysis application code section is obtained
The associated application of the application, forms the associated application tables of data of this application;
When startup is applied, associated application statistical module 10 scans the code segment of the application, detection according to specific rule
The association for going out the application starts application, and is stored in a table.Association starts application, i.e., two independent utilities are because usually close
Connection is used, by arrange association start button click directly in case of need the association start button access the association should
With when for example needing to share the picture in picture APP by other APP, pressing for other APP directly being selected in picture APP
Button, the button of the APP is arranged in advance in picture APP in the way of associating and starting application, after a button pressed, the association
APP will be activated.If the associated buttons are not typically preset as associated AP P, can not start in this way.
Association log-on data sheet format is as follows, and one can correspond to multiple associations and start using B1, B2 using A:
In android application programs, an application will start other application, typically by following four mode:Open
The Actvitivy of dynamic other application, the Service for starting other application, the Provider for starting other application, by broadcast.
As shown in fig. 7, associated application statistical module 10 further includes following four submodule:
Activity scans submodule 101, for scanning startActivity and startActivityForResult side
Method, detects the component values of parameter intent of both approaches, is to close if the class that the value is pointed to is not this application
Connection application, the associated application is added in associated application tables of data;
Activity be it is most basic in Android components be also the big component of most commonly seen four:Activity,
Service is serviced, Content Provider content providers, one of BroadcastReceiver radio receivers.
Activity is an application component, and user can be used to interaction to complete a certain task.At one
In android applications, an Activity is exactly generally a single screen, and it can show that some controls can also above
The event for monitoring and processing user is responded.Communicated by Intent between Activity.
Class, calls the turn in OO machine word, and class is the abstractdesription to a certain class things in real world, is tool
There is the set of the things of common trait, in the present embodiment, the class of the component values sensing of parameter intent, is to represent one
The abstractdesription of individual application.
Service scans submodule 102, for scanning startService and bindService methods, detects both
The component values of parameter intent of method, if the class that the value is pointed to is not this application, nor the service of system
Service, then be associated application, and the associated application is added in associated application tables of data;
Broadcast scan submodule 103, for scan sendBroadcast, sendOrderedBroadcast and
SendStickyBroadcast methods, detect the component values of parameter intent, if the class that the value is pointed to is not should
With, then it is associated application, the associated application is added in associated application tables of data.
Broadcast is one of four big components in Android, and Broadcast is that a kind of extensive utilization is applying journey
The mechanism of transmission information between sequence.The broadcast of such as some systems:The certain operations such as electricity is low, start, screen locking can all send one
Individual broadcast.First where transmission information is needed, the information to be sent and for filter information (as Action,
Category) load an Intent object, then by call Context.sendBroadcast (),
SendOrderBroadcast () or sendStickyBroadcast () method, are sent out Intent objects with broadcast mode
Go.
Provider scans submodule 104, for scan the query of ContentResolver objects, insert,
Delete, update method call, detects the value of parameter Uri in this four method calls, if the class that the value is pointed to is not
This application, then be associated application, and the associated application is added in associated application tables of data.
URI is the definition of Internet resources, ContentResolver by URI to inquire about ContentProvider in provide
Data.
After being scanned according to the code segment and data segment of four submodule correspondences, it is possible to which the association for setting up the application should
With tables of data.
Associated application starting module 20, the associated application described in associated application tables of data is started for mourning in silence.
The startup of mourning in silence includes:This is set up using corresponding process, the resource that the prestrain application needs when running with
Class libraries, but do not run, only when the button of associated AP P is touched, the process created when starting of mourning in silence just is transferred,
The resource and class libraries of prestrain is quickly started.
When application starts, when java virtual machines load a java class, by the code segment for detecting the application, in spy
Under fixed code scans rule, detect that the application can associate the other application of startup, so as to set up a current application with
The tables of data that other application association starts.When user clicks on and opens this and apply, system background is mourned in silence pretrigger its associated application,
So as to during user's use, accelerate the response speed of application.
The device for starting application according to associating policy of implementation above, by the code segment of the detecting application when application starts
Obtain the association applied and start application, then mourn in silence simultaneously and start its association startup application, so as to be visited by application in user
When asking other associated applications, can quickly start associated application.
Embodiment five
The embodiment of the present invention five provides a kind of Android mobile terminal, as shown in figure 8, the mobile terminal 1 00 includes:
Associated application statistical module 10, associated application starting module 20.
Associated application statistical module 10, for when application starts, detecting application code section, analysis application code section is obtained
The associated application of the application, forms the associated application tables of data of this application.
Associated application starting module 20, the associated application described in associated application tables of data is started for mourning in silence.
Fig. 9 shows the present embodiment mobile terminal general frame, and upper strata is application layer, including using A, using B, application
The some applications of C.Lower floor is system framework layer, and the main function of the present invention is realized in ccf layer.Ccf layer mainly includes
Two modules:Associated application statistical module 10 and associated application starting module 20.When application starts, by detecting the application
Code segment, under specific code scans rule, detects that the application can associate the other application of startup, so as to set up one
Current application associates the tables of data for starting with other application.Using start while, system background mourn in silence pretrigger its association should
With so as to during user's use, accelerate the response speed of associated application.
The Android mobile terminal of implementation above, by the association for setting up application when application starts list of application is started,
Make to start its associated application in the lump using when starting, user can be directly invoked in internal memory when needing using associated application
Data and process, make to be improved using toggle speed, so as to improve Consumer's Experience.
It should be noted that herein, term " including ", "comprising" or its any other variant are intended to non-row
His property is included, so that a series of process, method, article or device including key elements not only include those key elements, and
And also include other key elements being not expressly set out, or also include for this process, method, article or device institute inherently
Key element.In the absence of more restrictions, the key element for being limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
Also there is other identical element in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words
Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can be mobile phone, computer takes
Business device, air-conditioner, or network equipment etc.) perform method described in each embodiment of the invention.
The preferred embodiments of the present invention are these are only, the scope of the claims of the present invention is not thereby limited, it is every using this
Equivalent structure or equivalent flow conversion that bright description and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.
Claims (10)
1. it is a kind of to start the method applied according to associating policy, it is characterised in that to include:
During using starting, application code section is detected, analyzing the associated application that application code section obtains the application, form this application
Associated application tables of data;
The associated application mourned in silence described in startup associated application tables of data.
2. it is according to claim 1 to start the method applied according to associating policy, it is characterised in that the step application is opened
When dynamic, application code section is detected, analyze the associated application that application code section obtains the application, form the associated application number of this application
Further include according to table:
During using starting, sweep start moving component, detection starts the parameter value of moving component, if the class that the value is pointed to is not
This application, then be associated application, and the associated application is added in associated application tables of data.
3. it is according to claim 1 to start the method applied according to associating policy, it is characterised in that the step application is opened
When dynamic, application code section is detected, analyze the associated application that application code section obtains the application, form the associated application number of this application
Further include according to table:
During using starting, sweep start serviced component, the parameter value of detection service component, if the class that the value is pointed to is not should
, nor the service services of system, then be associated application, the associated application is added in associated application tables of data.
4. it is according to claim 1 to start the method applied according to associating policy, it is characterised in that the step application is opened
When dynamic, application code section is detected, analyze the associated application that application code section obtains the application, form the associated application number of this application
Further include according to table:
During using starting, broadcast component is scanned, detecting the parameter value of broadcast component, if the class that the value is pointed to is not this application,
It is then associated application, the associated application is added in associated application tables of data.
5. it is according to claim 1 to start the method applied according to associating policy, it is characterised in that the step application is opened
When dynamic, application code section is detected, analyze the associated application that application code section obtains the application, form the associated application number of this application
Further include according to table:
During using starting, scan for inquiries, the component in storehouse is inserted, being deleted, updating the data, detecting the address parameter value of each data base,
It is associated application if the class that the value is pointed to is not this application, the associated application is added in associated application tables of data.
6. it is according to claim 1 to start the method applied according to associating policy, it is characterised in that the startup bag of mourning in silence
Include:Corresponding process of applying is set up, resource and class libraries that preloaded applications need when running.
7. it is a kind of to start the device applied according to associating policy, it is characterised in that to include:
Associated application statistical module, for when application starts, detecting application code section, analysis application code section obtains the application
Associated application, formed this application associated application tables of data;
Associated application starting module, the associated application described in associated application tables of data is started for mourning in silence.
8. it is according to claim 7 to start the device applied according to associating policy, it is characterised in that the associated application system
Meter module is further included:
Activity scanning submodule, for sweep start moving component, detects the parameter value of moving component, if the class that the value is pointed to
It is not this application, is then associated application, the associated application is added in associated application tables of data;
Service scan submodule, for sweep start serviced component, detection starts the parameter value of serviced component, if the value is pointed to
Class be not this application, nor system service service, then be associated application, by the associated application be added to association should
With in tables of data;
Broadcast scan submodule, for scanning broadcast component, detects the parameter value of broadcast component, if the class that the value is pointed to is not
This application, then be associated application, and the associated application is added in associated application tables of data;
Scan database submodule, for scan for inquiries, inserts, deletes, updating the data the component in storehouse, detects the ground of each data base
Location parameter value, is associated application if the class that the value is pointed to is not this application, and the associated application is added to into associated application number
According in table.
9. it is according to claim 7 to start the device applied according to associating policy, it is characterised in that the startup bag of mourning in silence
Include:Corresponding process of applying is set up, resource and class libraries that preloaded applications need when running.
10. a kind of mobile terminal, it is characterised in that:The mobile terminal includes any device described in claim 7-9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710058943.3A CN106603872A (en) | 2017-01-23 | 2017-01-23 | Method for starting application according to association strategy, device and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710058943.3A CN106603872A (en) | 2017-01-23 | 2017-01-23 | Method for starting application according to association strategy, device and mobile terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106603872A true CN106603872A (en) | 2017-04-26 |
Family
ID=58585490
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710058943.3A Pending CN106603872A (en) | 2017-01-23 | 2017-01-23 | Method for starting application according to association strategy, device and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106603872A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108469992A (en) * | 2018-03-15 | 2018-08-31 | 链家网(北京)科技有限公司 | Process-level method for routing and device of the android system based on URI |
WO2019223578A1 (en) * | 2018-05-21 | 2019-11-28 | Oppo广东移动通信有限公司 | Application program preloading method and apparatus, and storage medium and terminal |
CN111610849A (en) * | 2020-04-14 | 2020-09-01 | 上海卓易科技股份有限公司 | Method and equipment for preventing association starting between applications |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2014129655A1 (en) * | 2013-02-25 | 2014-08-28 | 京セラ株式会社 | Mobile terminal device and method for controlling mobile terminal device |
CN104348895A (en) * | 2013-08-09 | 2015-02-11 | 腾讯科技(深圳)有限公司 | Method and device for sharing data among programs in mobile terminal |
CN105094922A (en) * | 2015-08-17 | 2015-11-25 | 北京奇虎科技有限公司 | Application installation-free operation control method and device |
CN105843650A (en) * | 2016-03-31 | 2016-08-10 | 青岛海信移动通信技术股份有限公司 | Application program management method and device in intelligent terminal |
CN106020427A (en) * | 2016-05-31 | 2016-10-12 | 广东欧珀移动通信有限公司 | Processing method and device of associated applications and mobile terminal |
CN106055970A (en) * | 2016-05-19 | 2016-10-26 | 努比亚技术有限公司 | Device and method for application software correlated starting |
CN106055369A (en) * | 2016-06-08 | 2016-10-26 | 维沃移动通信有限公司 | Starting method for mobile terminal applications and mobile terminal |
-
2017
- 2017-01-23 CN CN201710058943.3A patent/CN106603872A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2014129655A1 (en) * | 2013-02-25 | 2014-08-28 | 京セラ株式会社 | Mobile terminal device and method for controlling mobile terminal device |
CN104348895A (en) * | 2013-08-09 | 2015-02-11 | 腾讯科技(深圳)有限公司 | Method and device for sharing data among programs in mobile terminal |
CN105094922A (en) * | 2015-08-17 | 2015-11-25 | 北京奇虎科技有限公司 | Application installation-free operation control method and device |
CN105843650A (en) * | 2016-03-31 | 2016-08-10 | 青岛海信移动通信技术股份有限公司 | Application program management method and device in intelligent terminal |
CN106055970A (en) * | 2016-05-19 | 2016-10-26 | 努比亚技术有限公司 | Device and method for application software correlated starting |
CN106020427A (en) * | 2016-05-31 | 2016-10-12 | 广东欧珀移动通信有限公司 | Processing method and device of associated applications and mobile terminal |
CN106055369A (en) * | 2016-06-08 | 2016-10-26 | 维沃移动通信有限公司 | Starting method for mobile terminal applications and mobile terminal |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108469992A (en) * | 2018-03-15 | 2018-08-31 | 链家网(北京)科技有限公司 | Process-level method for routing and device of the android system based on URI |
WO2019223578A1 (en) * | 2018-05-21 | 2019-11-28 | Oppo广东移动通信有限公司 | Application program preloading method and apparatus, and storage medium and terminal |
CN111610849A (en) * | 2020-04-14 | 2020-09-01 | 上海卓易科技股份有限公司 | Method and equipment for preventing association starting between applications |
CN111610849B (en) * | 2020-04-14 | 2022-06-03 | 上海卓易科技股份有限公司 | Method and equipment for preventing association starting between applications |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104902075B (en) | Multi-screen interaction method and system | |
CN104808944B (en) | Touch operation inducing method and device | |
CN106406996A (en) | Management method and device of background application program | |
CN106453382A (en) | Message pushing method and device | |
CN107066290A (en) | A kind of method and apparatus for starting application according to associating policy | |
CN106909681A (en) | A kind of information processing method and its device | |
CN105204992A (en) | Test script generating device and method | |
CN106570945A (en) | Terminal, check-in machine and check-in method | |
CN106598538A (en) | Method and system for updating instruction set | |
CN110109528A (en) | Management-control method, mobile terminal and the computer readable storage medium of application program | |
CN105183830B (en) | picture browsing method and device | |
CN107066604A (en) | A kind of cleaning garbage files method and terminal | |
CN106383707A (en) | Picture display method and system | |
CN106991014A (en) | A kind of method, device and mobile terminal for handling user's incoming event | |
CN106372264A (en) | Map data migration device and method | |
CN106534560A (en) | Mobile terminal control device and method | |
CN106506364A (en) | A kind of cut-in method, client and routing server | |
CN106603872A (en) | Method for starting application according to association strategy, device and mobile terminal | |
CN106371704A (en) | Fast application layout method for lock screen interface and terminal | |
CN104731484B (en) | The method and device that picture is checked | |
CN106455009A (en) | A network search device and method | |
CN107066289A (en) | A kind of method, device and mobile terminal for starting application according to associating policy | |
CN105100217B (en) | Multisystem shared data method and apparatus | |
CN106534498A (en) | Control device and method of application folder and mobile terminal | |
CN106650347A (en) | Synchronous unblocking method, device and terminals |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170426 |