CN107357591A - Interface method for implantation, mobile terminal and the storage medium of application program - Google Patents

Interface method for implantation, mobile terminal and the storage medium of application program Download PDF

Info

Publication number
CN107357591A
CN107357591A CN201710612230.7A CN201710612230A CN107357591A CN 107357591 A CN107357591 A CN 107357591A CN 201710612230 A CN201710612230 A CN 201710612230A CN 107357591 A CN107357591 A CN 107357591A
Authority
CN
China
Prior art keywords
window
interface
starting
application program
implantation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710612230.7A
Other languages
Chinese (zh)
Other versions
CN107357591B (en
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201710612230.7A priority Critical patent/CN107357591B/en
Publication of CN107357591A publication Critical patent/CN107357591A/en
Application granted granted Critical
Publication of CN107357591B publication Critical patent/CN107357591B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses interface method for implantation, mobile terminal and the computer-readable recording medium of a kind of application program, methods described includes step:When starting application window, starting-window is loaded;If listening to the loading of the starting-window, the interface that the starting-window is obtained according to the bag name of the application program is implanted into type;Type is implanted into according to the interface of the starting-window got, the display interface of the starting-window is built and is shown.Interface method for implantation, mobile terminal and the computer-readable recording medium of application program disclosed by the invention, type is implanted into by the interface of the starting-window got, the display interface of starting-window is built and is shown;Realize the functions such as advertisement implantation, application program locking, virus detecting;Interface linking can be reached naturally, switching smooth effect, lift user experience.

Description

Interface method for implantation, mobile terminal and the storage medium of application program
Technical field
The present invention relates to field of terminal technology, more particularly to a kind of interface method for implantation of application program, mobile terminal and Computer-readable recording medium.
Background technology
With the continuous development of intelligent terminal technology, the function of intelligent terminal is also more and more diversified, application development The application program that person develops is also increasingly abundanter.When user uses intelligent terminal, some application programs are often opened Meet routine use demand.
Interacted with user before open application program, application developer can be used as to show or complete certain function Point of penetration.Such as when starting application program, application program can be used as communications media, original welcome interface is changed into advertisement Showing interface is to user;Such as when starting application program, the pop-up window prompting user application program has been locked;Such as When starting application program, prompt user to carry out virus scan to application program and show corresponding interface.
However, existing intelligent terminal do not have it is a kind of well implementation can be completed in third-party application it is above-mentioned Function, and interface linking can be reached naturally, switching smooth effect.
The content of the invention
It is a primary object of the present invention to propose that interface method for implantation, mobile terminal and the computer of a kind of application program can Read storage medium, it is intended to solve the problems, such as that prior art is present.
To achieve the above object, first aspect of the embodiment of the present invention provides a kind of interface method for implantation of application program, institute Stating method includes step:
When starting application window, starting-window is loaded;
If listening to the loading of the starting-window, the starting-window is obtained according to the bag name of the application program Interface is implanted into type;
Type is implanted into according to the interface of the starting-window got, the display interface for building the starting-window is gone forward side by side Row display.
Optionally, the interface implantation type that the starting-window is obtained according to the bag name of the application program includes step Suddenly:
The bag name of the application program is passed to the starting-window is inquired about and obtained in the implant data storehouse of interface Interface implantation type.
Optionally, the starting-window interface implantation type include advertisement implantation type, application locks type or Virus detecting type.
Optionally, if the interface implantation type of the starting-window got is that advertisement is implanted into type, the structure The display interface of the starting-window and carry out display include step:
Obtain advertising resource;
The advertising resource of acquisition is loaded into the display interface of the starting-window and shown.
Optionally, if the interface implantation type of the starting-window got is application locks type, the structure Building the display interface of the starting-window and carrying out display includes step:
Application locks are loaded into the display interface of the starting-window and shown.
Optionally, methods described also includes step:
Receive the input content that user locks in the application program;
User is matched in the input content that the application program is locked with default application locks content;
If the match is successful, remove the starting-window and show the application window.
Optionally, if the interface implantation type of the starting-window got is virus detecting type, the structure The display interface of the starting-window and carry out display include step:
Synchronization mechanism is established between the starting-window and the application window, to the file of the application program Virus scan is carried out, and scan progress and scanning result are shown on the display interface of the starting-window.
Optionally, methods described also includes step:
The scanning result is obtained, if the scanning result obtained is when having viral, feedback starting-window fails Information;Otherwise remove the starting-window and show the application window.
In addition, to achieve the above object, second aspect of the embodiment of the present invention provides a kind of mobile terminal, the mobile terminal Including:Memory, processor and the interface for being stored in the application program that can be run on the memory and on the processor Implant procedure, the application journey described in first aspect is realized when the interface implant procedure of the application program is by the computing device The step of interface method for implantation of sequence.
Furthermore to achieve the above object, the third aspect of the embodiment of the present invention provides a kind of computer-readable recording medium, institute State the interface implant procedure that application program is stored with computer-readable recording medium, the interface implant procedure of the application program The step of interface method for implantation of the application program described in first aspect is realized when being executed by processor.
Interface method for implantation, mobile terminal and the computer-readable storage of a kind of application program provided in an embodiment of the present invention Medium, type is implanted into by the interface of the starting-window got, the display interface of starting-window is built and is shown;Realize The functions such as advertisement implantation, application program lock, virus detecting;Interface linking can be reached naturally, switching smooth effect, carried Rise user experience.
Brief description of the drawings
Fig. 1 is the hardware architecture diagram for the mobile terminal for realizing each embodiment of the present invention;
Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention;
Fig. 3 is the interface method for implantation schematic flow sheet of the application program of the embodiment of the present invention;
Fig. 4 is the interface implantation management structural representation of the application program of the embodiment of the present invention;
Fig. 5 is the Activity component structure diagrams of the embodiment of the present invention;
Fig. 6 is the mobile terminal structure schematic diagram of the embodiment of the present invention;
Fig. 7 is the mobile terminal thread work schematic flow sheet of the embodiment of the present invention.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is only Be advantageous to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " part " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as mobile phone, flat board Computer, notebook computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable Media Player, PMP), guider, wearable device, Intelligent bracelet, pedometer etc. move Dynamic terminal, and the fixed terminal such as digital TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except special Outside element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, its hardware architecture diagram for a kind of mobile terminal of each embodiment of the realization present invention, the shifting Dynamic terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103rd, A/V (audio/video) input block 104, sensor 105, display unit 106, user input unit 107, interface unit 108th, the part such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not form the restriction to mobile terminal, and mobile terminal can be included than illustrating more or less parts, Either combine some parts or different parts arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station Downlink information receive after, handled to processor 110;In addition, up data are sent to base station.Generally, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrate Frequency unit 101 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, WCDMA), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, FDD Long Term Evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex Long Term Evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal, completely can be according to need To be omitted in the essential scope for do not change invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is receiving or It is sound that the voice data stored in memory 109, which is converted into audio signal and exported,.Moreover, audio output unit 103 The audio output related to the specific function that mobile terminal 100 performs can also be provided (for example, call signal receives sound, disappeared Breath receives sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input blocks 104 are used to receive audio or video signal.A/V input blocks 104 can include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the static images or the view data of video obtained in image capture mode by image capture apparatus (such as camera) are carried out Reason.Picture frame after processing may be displayed on display unit 106.Picture frame after the processing of graphics processor 1041 can be deposited Storage is transmitted in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (voice data), and can be voice data by such acoustic processing.Audio (voice) data after processing can To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model. Microphone 1042 can implement various types of noises and eliminate (or suppression) algorithm to eliminate (or suppression) in reception and send sound Caused noise or interference during frequency signal.
Mobile terminal 100 also includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity transducer can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general For three axles) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Display unit 106 is used for the information for showing the information inputted by user or being supplied to user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal The key signals input that family is set and function control is relevant.Specifically, user input unit 107 may include contact panel 1071 with And other input equipments 1072.Contact panel 1071, also referred to as touch-screen, collect touch operation of the user on or near it (for example user uses any suitable objects or annex such as finger, stylus on contact panel 1071 or in contact panel 1071 Neighbouring operation), and corresponding attachment means are driven according to formula set in advance.Contact panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it Contact coordinate is converted into, then gives processor 110, and the order sent of reception processing device 110 and can be performed.In addition, can To realize contact panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap Include but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc. One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, detect thereon when contact panel 1071 or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, contact panel 1071 and display panel 1061 be the part independent as two to realize the input of mobile terminal and output function, but in certain embodiments, can Input and the output function of mobile terminal are realized so that contact panel 1071 and display panel 1061 is integrated, is not done herein specifically Limit.
Interface unit 108 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 100.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 connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include storing program area And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as Voice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection Individual part, by running or performing the software program and/or module that are stored in memory 109, and call and be stored in storage Data in device 109, the various functions and processing data of mobile terminal are performed, so as to carry out integral monitoring to mobile terminal.Place Reason device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main Handle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) to all parts power supply, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put The function such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also will not be repeated here including bluetooth module etc..
For the ease of understanding the embodiment of the present invention, the communications network system being based on below to the mobile terminal of the present invention enters Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system Unite as the LTE system of universal mobile communications technology, the UE that the LTE system includes communicating connection successively (User Equipment, is used Family equipment) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, evolved UMTS lands Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned terminal 100, and here is omitted.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connected with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide UE201 to EPC203 access.
EPC203 can include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling between EPC203, there is provided carrying and connection management.HSS2032 is all to manage for providing some registers Such as the function of attaching position register (not shown) etc, and preserve some and used about service features, data rate etc. The special information in family.All customer data can be transmitted by SGW2034, and PGW2035 can provide UE 201 IP Address is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources Point, it selects and provided available strategy and charging control decision-making with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And following new network system etc., do not limit herein.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the inventive method is proposed.
First embodiment
Before the present embodiment is introduced, Activity components are explained and illustrated below in conjunction with Fig. 5:
Activity is the interactive interface for being covered with whole window or being suspended on other windows, in an application program Generally it is made up of multiple Activity.
Each Activity includes a PhoneWindow object, and it is application window that PhoneWindow, which sets DecorView, The Root View of mouth, all UI parts are all placed in DecorView, such as:The TitleView that is familiar with and ContentView。
View:Most basic UI components, represent a rectangular area on screen;
DecorView:It is the RootView of View in Window, for setting window attribute.
As shown in figure 3, first embodiment of the invention provides a kind of interface method for implantation of application program, applied to mobile whole In end, methods described includes step:
31st, when starting application window, starting-window is loaded;
By taking mobile terminal as an example, Activity is the element of application program, there is provided visual interface, with Family interacts.
The startup of Activity components needs to realize by ActivityManagerService services, works as Activity When component needs display, startActivityLocked, Ran Houyou are called by ActivityStarter By AIDL, (android Interface Definition Language, Android interface define ActivityRecord Language) call the setAppStartingWindow functions in WindowManagerService window management services to be wanted to inform Create or load a starting-window.Now WindowManagerService can send ADD_STARTING message To PhoneWindowManager.PhoneWindowManager completes DocorView establishment, by way of addView It is created that on interface and carrys out a window.
If the 32, listening to the loading of the starting-window, the startup window is obtained according to the bag name of the application program The interface implantation type of mouth;
In the present embodiment, the interface that the starting-window is obtained according to the bag name of the application program is implanted into type Including:
The bag name of the application program is passed to the starting-window is inquired about and obtained in the implant data storehouse of interface Interface implantation type.
In the present embodiment, the interface implantation type of the starting-window includes advertisement implantation type, application locks class Type or virus detecting type.
In order to further illustrate the step, illustrated below in conjunction with Fig. 4:
Still by taking above-mentioned mobile terminal as an example, WindowManagerService window management services are responsible for monitoring startup interface Loading, if listening to the loading of the starting-window, the bag name of the application program is passed to interface implant data storehouse The middle interface implantation type inquired about and obtain the starting-window.
Interface implantation manager is responsible for being implanted into the display interface of type structure starting-window according to interface, and corresponding to adaptation Functional module.Functional module corresponding with interface implantation type includes advertisement implant module, application locks and virus and detected Module.
Advertisement load-on module is responsible for updating advertising resource to local by network, and externally offer access resource interface;
Application program lock module is responsible for the password that application is set storage is encrypted into local data base, and externally carries Password match function is used in supply.
Viral detecting module is responsible for carrying out disk application file virus scan, and externally provides inquiry Current Scan content With the interface of progress.
The PhoneWindow objects being created that are passed to interface implantation manager, interface by PhoneWindowManager Implantation manager is shown the View constructed as PhoneWindow View.
33rd, type is implanted into according to the interface of the starting-window got, builds the display interface of the starting-window And shown.
In one embodiment, if the interface implantation type of the starting-window got is that advertisement is implanted into type, Then the display interface of the structure starting-window and carry out display and include step:
Obtain advertising resource;
The advertising resource of acquisition is loaded into the display interface of the starting-window and shown.
In this embodiment, by downloading the good advertising resource for needing to update in advance, resource is read on startup and is incited somebody to action It is set in View;When application program launching, ad content can be seen in advance.
In one embodiment, if the interface implantation type of the starting-window got is application locks class Type, then the display interface of the structure starting-window and carry out display and include step:
Application locks are loaded into the display interface of the starting-window and shown.
In this embodiment, application locks can be loaded into DecorView by edit box control, work as starting-window During startup, the View being laid out with edit box can be included on interface.
Further, in this embodiment, methods described also includes step:
Receive the input content that user locks in the application program;
User is matched in the input content that the application program is locked with default application locks content;
If the match is successful, remove the starting-window and show the application window.
Still by taking above-mentioned mobile terminal as an example, when the display of application window goes to the Resume stages, represent current Need to show current Activity at stack top end, it is necessary to notify ActivityStack to cancel current initialization Activity, Namely startup interface.ActivityStack is called in WindowManagerService by AIDL RemoveAppStartingWindow functions will remove current starting-window to inform, WindowManagerService meetings REMOVE_STARTING message is sent to PhoneWindowManager.PhoneWindowManager is performed RemoveStartingWindow removes window.
In another embodiment, if the interface implantation type of the starting-window got is virus detecting class Type, then the display interface of the structure starting-window and carry out display and include step:
Synchronization mechanism is established between the starting-window and the application window, to the file of the application program Virus scan is carried out, and scan progress and scanning result are shown on the display interface of the starting-window.
Further, in this embodiment, methods described also includes step:
The scanning result is obtained, if the scanning result obtained is when having viral, feedback starting-window fails Information;Otherwise remove the starting-window and show the application window.
Still by taking above-mentioned mobile terminal as an example, the foundation of synchronization mechanism may be accomplished by:Application Program Interface by ActivityManagerService completes the tune of Application Program Interface and startup interface by startActivityLocked With.After startup interface calling, resumeFocusedStackTopActivity can be performed, will be ResumeFocusedStackTopActivity is called and is revised as completing, and scanning result is notified in a manner of sending message To ActivityManagerService, ActivityManagerService decides whether to continue executing with according to result ResumeFocusedStackTopActivity shows work to complete application interface.When scanning is present it is viral when, feedback START_CANCEL represents that this startup interface fails to client.
The interface method for implantation of a kind of application program provided in an embodiment of the present invention, by the boundary of the starting-window got Face is implanted into type, builds the display interface of starting-window and is shown;Realize advertisement implantation, application program locks, virus The functions such as detecting;Interface linking can be reached naturally, switching smooth effect, lift user experience.
Second embodiment
Reference picture 6, Fig. 6 provide a kind of mobile terminal for second embodiment of the invention, and the mobile terminal 40 includes:Storage Device 41, processor 42 and the interface plant for being stored in the application program that can be run on the memory 41 and on the processor 42 Enter program, when the interface implant procedure of the application program is performed by the processor 42, for realizing following application program The step of interface method for implantation:
When starting application window, starting-window is loaded;
If listening to the loading of the starting-window, the starting-window is obtained according to the bag name of the application program Interface is implanted into type;
Type is implanted into according to the interface of the starting-window got, the display interface for building the starting-window is gone forward side by side Row display.
When the interface implant procedure of the application program is performed by the processor 42, it is additionally operable to realize following application program Interface method for implantation the step of:
The bag name of the application program is passed to the starting-window is inquired about and obtained in the implant data storehouse of interface Interface implantation type.
When the interface implant procedure of the application program is performed by the processor 42, it is additionally operable to realize following application program Interface method for implantation the step of:
The interface implantation type of the starting-window includes advertisement implantation type, application locks type or virus detecting Type.
When the interface implant procedure of the application program is performed by the processor 42, it is additionally operable to realize following application program Interface method for implantation the step of:
If the interface implantation type of the starting-window got, which is advertisement, is implanted into type, the structure startup The display interface of window and carry out display include step:
Obtain advertising resource;
The advertising resource of acquisition is loaded into the display interface of the starting-window and shown.
When the interface implant procedure of the application program is performed by the processor 42, it is additionally operable to realize following application program Interface method for implantation the step of:
If the interface implantation type of the starting-window got is application locks type, opened described in the structure Moving the display interface of window and carrying out display includes step:
Application locks are loaded into the display interface of the starting-window and shown.
When the interface implant procedure of the application program is performed by the processor 42, it is additionally operable to realize following application program Interface method for implantation the step of:
Receive the input content that user locks in the application program;
User is matched in the input content that the application program is locked with default application locks content;
If the match is successful, remove the starting-window and show the application window.
When the interface implant procedure of the application program is performed by the processor 42, it is additionally operable to realize following application program Interface method for implantation the step of:
If the interface implantation type of the starting-window got is virus detecting type, the structure startup The display interface of window and carry out display include step:
Synchronization mechanism is established between the starting-window and the application window, to the file of the application program Virus scan is carried out, and scan progress and scanning result are shown on the display interface of the starting-window.
When the interface implant procedure of the application program is performed by the processor 42, it is additionally operable to realize following application program Interface method for implantation the step of:
The scanning result is obtained, if the scanning result obtained is when having viral, feedback starting-window fails Information;Otherwise remove the starting-window and show the application window.
In order to preferably illustrate the present embodiment, below in conjunction with the line of interface implantation of the Fig. 7 to the application program of mobile terminal The journey course of work illustrates:
As shown in fig. 7, when application program threads 1 create and initialize, application program passes through The ActivityStarter of ActivityManagerService (abbreviation AMS) services calls startActivityLocked, Then by ActivityRecord, by AIDL, (android Interface Definition Language, Android connect Mouth definitional language) call the setAppStartingWindow functions in the service of WindowManagerService window managements A starting-window will be created or load by informing.Now WindowManagerService can send an ADD_STARTING Message to PhoneWindowManager.
Thread 2 is used to create starting-window, and WindowManagerService window management services, which are responsible for monitoring, starts boundary The loading in face, if listening to the loading of the starting-window, the bag name of the application program is passed to interface implant data Inquired about in storehouse and obtain the interface implantation type of the starting-window.Then planted according to the interface of the starting-window got Enter type, build implantation window.PhoneWindowManager complete DocorView establishment, by way of addView Implantation window is loaded on interface and is shown.
The result of starting-window is fed back to thread 1 by thread 2, and thread 1 shows application window simultaneously according to feedback result Remove starting-window.
Mobile terminal provided in an embodiment of the present invention, type is implanted into by the interface of the starting-window got, structure opens The display interface of dynamic window is simultaneously shown;Realize the functions such as advertisement implantation, application program locking, virus detecting;It can reach It is connected to interface naturally, switch smooth effect, lifts user experience.
3rd embodiment
Third embodiment of the invention provides a kind of computer-readable recording medium, is deposited on the computer-readable recording medium The interface implant procedure of application program is contained, the interface implant procedure of the application program realizes that first is real when being executed by processor The step of applying the interface method for implantation of the application program described in example.
Computer-readable recording medium provided in an embodiment of the present invention, class is implanted into by the interface of the starting-window got Type, build the display interface of starting-window and shown;Realize the work(such as advertisement implantation, application program locking, virus detecting Energy;Interface linking can be reached naturally, switching smooth effect, lift user experience.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements not only include those key elements, and And also include the other element 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 limited by sentence "including a ...", it is not excluded that including this Other identical element also be present 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 to cause a station terminal (can be mobile phone, computer, service Device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific Embodiment, above-mentioned embodiment is only schematical, rather than restricted, one of ordinary skill in the art Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make a lot Form, these are belonged within the protection of the present invention.

Claims (10)

1. a kind of interface method for implantation of application program, methods described includes step:
When starting application window, starting-window is loaded;
If listening to the loading of the starting-window, the interface of the starting-window is obtained according to the bag name of the application program It is implanted into type;
Type is implanted into according to the interface of the starting-window got, the display interface of the starting-window is built and is shown Show.
2. the interface method for implantation of a kind of application program according to claim 1, it is characterised in that should described in the basis The interface implantation type of the starting-window is obtained with the bag name of program includes step:
The bag name of the application program is passed to the boundary of the starting-window is inquired about and obtained in the implant data storehouse of interface Face is implanted into type.
3. the interface method for implantation of a kind of application program according to claim 2, it is characterised in that the starting-window Interface implantation type includes advertisement implantation type, application locks type or virus detecting type.
4. the interface method for implantation of a kind of application program according to claim 3, it is characterised in that if what is got is described The interface implantation type of starting-window is that advertisement is implanted into type, then the display interface of the structure starting-window and is shown Show including step:
Obtain advertising resource;
The advertising resource of acquisition is loaded into the display interface of the starting-window and shown.
5. the interface method for implantation of a kind of application program according to claim 3, it is characterised in that if what is got is described The interface implantation type of starting-window is application locks type, then the display interface of the structure starting-window and progress Display includes step:
Application locks are loaded into the display interface of the starting-window and shown.
6. the interface method for implantation of a kind of application program according to claim 5, it is characterised in that methods described also includes Step:
Receive the input content that user locks in the application program;
User is matched in the input content that the application program is locked with default application locks content;
If the match is successful, remove the starting-window and show the application window.
7. the interface method for implantation of a kind of application program according to claim 3, it is characterised in that if what is got is described The interface implantation type of starting-window is virus detecting type, then the display interface of the structure starting-window and is shown Show including step:
Synchronization mechanism is established between the starting-window and the application window, the file of the application program is carried out Virus scan, and show scan progress and scanning result on the display interface of the starting-window.
8. the interface method for implantation of a kind of application program according to claim 7, it is characterised in that methods described also includes Step:
The scanning result is obtained, if the scanning result obtained is when having viral, the letter of feedback starting-window failure Breath;Otherwise remove the starting-window and show the application window.
9. a kind of mobile terminal, it is characterised in that the mobile terminal includes:Memory, processor and it is stored in the storage On device and the interface implant procedure of application program that can run on the processor, the interface implant procedure of the application program The step for the interface method for implantation that the application program as any one of claim 1 to 8 is realized during the computing device Suddenly.
10. a kind of computer-readable recording medium, it is characterised in that be stored with the computer-readable recording medium using journey The interface implant procedure of sequence, realized when the interface implant procedure of the application program is executed by processor as in claim 1 to 8 The step of interface method for implantation of application program described in any one.
CN201710612230.7A 2017-07-25 2017-07-25 Application program interface implantation method, mobile terminal and storage medium Active CN107357591B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710612230.7A CN107357591B (en) 2017-07-25 2017-07-25 Application program interface implantation method, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710612230.7A CN107357591B (en) 2017-07-25 2017-07-25 Application program interface implantation method, mobile terminal and storage medium

Publications (2)

Publication Number Publication Date
CN107357591A true CN107357591A (en) 2017-11-17
CN107357591B CN107357591B (en) 2022-08-19

Family

ID=60285453

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710612230.7A Active CN107357591B (en) 2017-07-25 2017-07-25 Application program interface implantation method, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN107357591B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109670868A (en) * 2018-12-12 2019-04-23 网宿科技股份有限公司 Advertisement placement method, system, terminal device, advertising platform and storage medium
CN112486588A (en) * 2020-11-25 2021-03-12 北京小米移动软件有限公司 Display control method, display control device, and storage medium
CN112559875A (en) * 2020-12-22 2021-03-26 平安银行股份有限公司 Resource recommendation method, device, equipment and medium based on application starting picture

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102843430A (en) * 2012-08-28 2012-12-26 电子科技大学 Advertisement pushing method based on mobile internet
US8646084B1 (en) * 2012-09-28 2014-02-04 Kaspersky Lab Zao Securing file launch activity utilizing safety ratings
US20140100955A1 (en) * 2012-10-05 2014-04-10 Microsoft Corporation Data and user interaction based on device proximity
CN103745152A (en) * 2013-12-11 2014-04-23 深圳市欧珀通信软件有限公司 Advertisement shielding method and system based on mobile terminal
CN105426761A (en) * 2015-11-18 2016-03-23 广东欧珀移动通信有限公司 Identification method for illegal application and mobile terminal
CN106355060A (en) * 2016-10-31 2017-01-25 Tcl集团股份有限公司 Application-lock implementation method and system based on android system
CN106775817A (en) * 2016-11-23 2017-05-31 深圳铂睿智恒科技有限公司 Intelligent terminal is spread its tail control method, system and the intelligent terminal of advertisement
CN106775805A (en) * 2016-11-18 2017-05-31 三星电子(中国)研发中心 The application process and system of a kind of application program launching blank time
CN106803027A (en) * 2016-12-16 2017-06-06 北京奇虎科技有限公司 Application function entrance starts method, device and mobile terminal
CN106909262A (en) * 2015-12-22 2017-06-30 北京奇虎科技有限公司 A kind of data processing method and device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102843430A (en) * 2012-08-28 2012-12-26 电子科技大学 Advertisement pushing method based on mobile internet
US8646084B1 (en) * 2012-09-28 2014-02-04 Kaspersky Lab Zao Securing file launch activity utilizing safety ratings
US20140100955A1 (en) * 2012-10-05 2014-04-10 Microsoft Corporation Data and user interaction based on device proximity
CN103745152A (en) * 2013-12-11 2014-04-23 深圳市欧珀通信软件有限公司 Advertisement shielding method and system based on mobile terminal
CN105426761A (en) * 2015-11-18 2016-03-23 广东欧珀移动通信有限公司 Identification method for illegal application and mobile terminal
CN106909262A (en) * 2015-12-22 2017-06-30 北京奇虎科技有限公司 A kind of data processing method and device
CN106355060A (en) * 2016-10-31 2017-01-25 Tcl集团股份有限公司 Application-lock implementation method and system based on android system
CN106775805A (en) * 2016-11-18 2017-05-31 三星电子(中国)研发中心 The application process and system of a kind of application program launching blank time
CN106775817A (en) * 2016-11-23 2017-05-31 深圳铂睿智恒科技有限公司 Intelligent terminal is spread its tail control method, system and the intelligent terminal of advertisement
CN106803027A (en) * 2016-12-16 2017-06-06 北京奇虎科技有限公司 Application function entrance starts method, device and mobile terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109670868A (en) * 2018-12-12 2019-04-23 网宿科技股份有限公司 Advertisement placement method, system, terminal device, advertising platform and storage medium
CN112486588A (en) * 2020-11-25 2021-03-12 北京小米移动软件有限公司 Display control method, display control device, and storage medium
CN112559875A (en) * 2020-12-22 2021-03-26 平安银行股份有限公司 Resource recommendation method, device, equipment and medium based on application starting picture

Also Published As

Publication number Publication date
CN107357591B (en) 2022-08-19

Similar Documents

Publication Publication Date Title
CN107390972A (en) A kind of terminal record screen method, apparatus and computer-readable recording medium
CN107222532A (en) A kind of radio firmware upgrade method, device and computer-readable recording medium
CN107770369A (en) Control method, device and the computer-readable recording medium of mobile terminal
CN107797737A (en) The method, apparatus and computer-readable recording medium that picture is edited again
CN107682627A (en) A kind of acquisition parameters method to set up, mobile terminal and computer-readable recording medium
CN107729103A (en) A kind of method for switching theme, mobile terminal and computer-readable storage medium
CN107707450A (en) A kind of method, apparatus and computer-readable recording medium for transmitting file
CN108111392A (en) A kind of information processing method, device and computer readable storage medium
CN106953684A (en) A kind of method for searching star, mobile terminal and computer-readable recording medium
CN107133302A (en) Realize method, system, terminal and the computer-readable recording medium of data consistency
CN107220050A (en) Adaptive display method, terminal and computer-readable recording medium
CN107657583A (en) A kind of screenshot method, terminal and computer-readable recording medium
CN107181865A (en) Processing method, terminal and the computer-readable recording medium of unread short messages
CN107483556A (en) A kind of remote configuring method, equipment and computer-readable recording medium
CN107172605A (en) A kind of Emmergency call method, mobile terminal and computer-readable recording medium
CN107688429A (en) Management method, mobile terminal and the computer-readable recording medium of application controls
CN107483804A (en) A kind of image pickup method, mobile terminal and computer-readable recording medium
CN107276991A (en) Load method, equipment and the computer-readable recording medium of Web page
CN107818022A (en) Application programming interfaces merging method, mobile terminal and computer-readable recording medium
CN107357591A (en) Interface method for implantation, mobile terminal and the storage medium of application program
CN107423065A (en) Method, mobile terminal and the computer-readable recording medium that a kind of application is attended to anything else
CN107613206A (en) A kind of image processing method, mobile terminal and computer-readable recording medium
CN107506468A (en) Application program searching method, terminal, server, computer-readable recording medium
CN107809527A (en) A kind of method and apparatus that prompt operation is presented
CN108037880A (en) A kind of Curved screen control method, terminal and computer-readable recording medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant