Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
It is a kind of flow diagram of the login method of application program provided in an embodiment of the present invention referring to Fig. 1, Fig. 1, answers
For mobile terminal, as shown in Figure 1, comprising the following steps:
Step 101, when the mobile terminal start the first application program when, obtained from the logon process for operate in backstage
Take the user information with first application matches.
In the embodiment of the present invention, when mobile terminal detects that user triggers the first application program, i.e., in mobile terminal starting
When the first application program, it can be obtained from the logon process for operate in backstage and the user information of the first application matches.
Wherein, the first application program can be any application program that can run on mobile terminal, such as: it can be for the first time in movement
The application program run in terminal;Or can also be the failed application program of user information etc..
The user information of above-mentioned acquisition and the first application matches is it is to be understood that when in the logon process of running background
When record has user information run and with the associated application program of logon process, the user information of poll record, to obtain
Take the user information with the first application matches;Or when in the logon process of running background record have it is having run and with step on
Record the log-on message of the application program of process context, and when the log-on message includes user information, searched in log-on message with
The application program of first application matches.
It is answered with the first application program there are associated in addition, the above-mentioned user information with the first application matches can be
The first application program can be logged in the user information of the user information of program, and the associated application program.Such as: first answers
With program and there are associated application programs to belong to same account system;Or associated the first application program of application program authorization
Its user information can be used to log in.
Step 102 uses the user information, login first application program.
In the embodiment of the present invention, when getting the user information with the first application matches in above-mentioned steps 101, after
Matched user information can be sent to the first application program by the logon process of platform operation, and the first application program is matched using this
User information is logged in.
In the embodiment of the present invention, above-mentioned mobile terminal can be any mobile terminal for capableing of login application program, such as:
Mobile phone, tablet computer (Tablet Personal Computer), laptop computer (Laptop Computer), individual digital
Assistant (personal digital assistant, abbreviation PDA), mobile Internet access device (Mobile Internet Device,
) or wearable device (Wearable Device) etc. MID.
It, can be from operating in very too when mobile terminal starts the first application program in this way, in the embodiment of the present invention
The user information with the first application matches is obtained in logon process, and is logged in first using matched user information and applied journey
Sequence.In this way, the user information of application program is frequently entered without user in user's login application program, by obtaining backstage
Logon process in user information can be realized login, operate convenient, time saving.
Referring to fig. 2, Fig. 2 is the flow diagram of the login method of another application program provided in an embodiment of the present invention,
Applied to mobile terminal, as shown in Figure 2, comprising the following steps:
Step 201, when mobile terminal logs in the second application program, start logon process, and remember in logon process
Record the log-on message of the second application program.
Wherein, the second application program is that the application program of same system of account is used with the first application program.
Step 202, when mobile terminal start the first application program when, from the logon process of running background obtain log in
Information searches the user information with the first application matches in log-on message.
In the embodiment of the present invention, the logon process of above-mentioned running background is in running of mobile terminal application program, Ke Yiji
Log-on message just running and with the associated application program of the logon process is recorded, and the log-on message includes answering for logging in this
With the user information of program.Above-mentioned steps 201 detect that user triggers the first application program it is to be understood that working as mobile terminal,
I.e. when mobile terminal starts the first application program, log-on message can be obtained from the logon process of running background, logged in
The user information with the first application matches is searched in information.
In addition, optional, above-mentioned user information is user's unique identification;Above-mentioned log-on message includes user's unique identification,
Further include in the following contents at least one of: user name, login time, log in place, login application program packet name and institute
State the international mobile equipment identification number of mobile terminal.In this way, mobile terminal can log in the first application by user's unique identification
Program.
Step 203 uses user information, the first application program of login.
In the embodiment of the present invention, when getting the user information with the first application matches in above-mentioned steps 201, after
Matched user information can be sent to the first application program by the logon process of platform operation, and the first application program is matched using this
User information is logged in.
Step 204, the log-on message that the first application program is recorded in logon process.
In this way, can be used that logon process records and apply journey with first when mobile terminal starts the first application program
Sequence is logged in using the log-on message of the second application program of same system of account.
Such as: when application program A and application program B belong to the application program of same manufacturer's exploitation, then application program A with answer
It is same system of account with program B, if A application program is associated with the logon process of running background and transports in the terminal
Row, the logon process of running background will record log-on message when application program A is logged in.When mobile terminal starts for the first time using journey
When sequence B, the log-on message of the available application program A of the logon process of running background will be in the log-on message of application program A
User information as with the matched user information of application program A, and stepped on using the user information in the log-on message of application program A
Record application program B.
Wherein, when application program associated with logon process in order to avoid mobile terminal long-time not running, logon process
Resource that is in operating status and occupying mobile terminal optionally after the above-mentioned starting logon process, can also include:
When the interval of nearest login time and current time with the associated application program of the logon process is greater than preset duration, move back
The logon process out, wherein finally logged in the associated application program of the nearest login time logon process
The login time of application program.
In this way, in the embodiment of the present invention, it, can stepping on from running background when mobile terminal starts the first application program
Log-on message is obtained in record process, the user information with the first application matches is searched in log-on message, and use matching
User information log in the first application program.In this way, frequently entering application program without user in user's login application program
User information, the user information in logon process by obtaining backstage can be realized logins, and operation is convenient, time saving.
It is a kind of structural schematic diagram of mobile terminal provided in an embodiment of the present invention referring to Fig. 3, Fig. 3, as shown in figure 3, institute
Stating mobile terminal 300 includes User profile acquisition module 301 and login module 302:
User profile acquisition module 301 is used for when the mobile terminal starts the first application program, after operating in
The user information with first application matches is obtained in the logon process of platform;
Login module 302 logs in first application program for using the user information.
Optionally, the User profile acquisition module 301, specifically for obtaining log-on message from the logon process,
The user information with first application matches is searched in the log-on message.
Optionally, as shown in figure 4, mobile terminal 300 can also include:
Logon process starting module 303, for being stepped on described in starting when the mobile terminal logs in the second application program
Record process, and record in the logon process log-on message of second application program, second application program be with
First application program uses the application program of same system of account;
Log-on message logging modle 304, the login for recording first application program in the logon process are believed
Breath.
Optionally, as shown in figure 5, the mobile terminal 300 can also include:
Logon process exits module 305, for when the nearest login time with the associated application program of the logon process
When being greater than preset duration with the interval of current time, the logon process is exited, wherein the nearest login time is described steps on
Record the login time of the application program finally logged in the application program of process context.
Optionally, user information is user's unique identification;The log-on message includes user's unique identification, further includes following
At least one of in content:
User name, login time, login place, the packet name of application program of login and the world of the mobile terminal are moved
EIC equipment identification code.
The mobile terminal 300 of the embodiment of the present invention can be from fortune when mobile terminal 300 starts the first application program
Row obtains the user information with the first application matches in the logon process on backstage, and is logged in using matched user information
First application program.In this way, frequently entering the user information of application program without user in user's login application program, lead to
Login can be realized in the user information crossed in the logon process for obtaining backstage, operates convenient, time saving.
It is the structural schematic diagram of another mobile terminal provided in an embodiment of the present invention referring to Fig. 6, Fig. 6, as shown in fig. 6,
Mobile terminal 600 includes: at least one processor 601, memory 602, at least one network interface 604 and user interface 603.
Various components in mobile terminal 600 are coupled by bus system 605.It is understood that bus system 605 is for realizing this
Connection communication between a little components.Bus system 605 except include data/address bus in addition to, further include power bus, control bus and
Status signal bus in addition.But for the sake of clear explanation, various buses are all designated as bus system 605 in Fig. 6.
Wherein, user interface 603 may include display, keyboard or pointing device (for example, mouse, trace ball
(trackball), touch-sensitive plate or touch screen etc..
It is appreciated that the memory 602 in the embodiment of the present invention can be volatile memory or nonvolatile memory,
It or may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory (Read-
Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable
Device (Erasable PROM, EPROM), electrically erasable programmable read-only memory (Electrically EPROM, EEPROM) or
Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), be used as external high
Speed caching.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static random access memory
(Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory
(Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate
SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links
Dynamic random access memory (Synch Link DRAM, SLDRAM) and direct rambus random access memory (Direct
Rambus RAM, DRRAM).The memory 602 of system and method described herein is intended to include but is not limited to these and arbitrarily its
It is suitble to the memory of type.
In some embodiments, memory 602 stores following element, executable modules or data structures, or
Their subset of person or their superset: operating system 6021 and application program 6022.
Wherein, operating system 6021 include various system programs, such as ccf layer, core library layer, driving layer etc., are used for
Realize various basic businesses and the hardware based task of processing.Application program 6022 includes various application programs, such as media
Player (Media Player), browser (Browser) etc., for realizing various applied business.Realize the embodiment of the present invention
The program of method may be embodied in application program 6022.
In embodiments of the present invention, by the program or instruction of calling memory 602 to store, specifically, can be application
The program or instruction stored in program 6022, processor 601 are used for: when the mobile terminal starts the first application program,
The user information with first application matches is obtained from the logon process for operate in backstage;Believed using the user
Breath logs in first application program.
The method that the embodiments of the present invention disclose can be applied in processor 601, or be realized by processor 601.
Processor 601 may be a kind of IC chip, the processing capacity with signal.During realization, the above method it is each
Step can be completed by the integrated logic circuit of the hardware in processor 601 or the instruction of software form.Above-mentioned processing
Device 601 can be general processor, digital signal processor (Digital Signal Processor, DSP), dedicated integrated electricity
Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.It is general
Processor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with institute of the embodiment of the present invention
The step of disclosed method, can be embodied directly in hardware decoding processor and execute completion, or with the hardware in decoding processor
And software module combination executes completion.Software module can be located at random access memory, and flash memory, read-only memory may be programmed read-only
In the storage medium of this fields such as memory or electrically erasable programmable memory, register maturation.The storage medium is located at
The step of memory 602, processor 601 reads the parameter in memory 602, completes the above method in conjunction with its hardware.
It is understood that embodiments described herein can with hardware, software, firmware, middleware, microcode or its
Combination is to realize.For hardware realization, processing unit be may be implemented in one or more specific integrated circuit (Application
Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing,
DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic
Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general processor,
In controller, microcontroller, microprocessor, other electronic units for executing herein described function or combinations thereof.
For software implementations, it can be realized herein by executing the module (such as process, function etc.) of function described herein
The technology.Software code is storable in memory and is executed by processor.Memory can in the processor or
It is realized outside processor.
Optionally, processor 601 executes described obtained from the logon process for operate in backstage with described first using journey
The matched user information of sequence, comprising:
Log-on message is obtained from the logon process, is searched and first application program in the log-on message
The user information matched.
Optionally, processor 601 executes described obtained from the logon process for operate in backstage with described first using journey
Before the matched user information of sequence, further includes:
When the mobile terminal logs in the second application program, start the logon process, and in the logon process
The middle log-on message for recording second application program, second application program are same to use with first application program
The application program of system of account;
It is described to use the user information, after logging in first application program, further includes:
The log-on message of first application program is recorded in the logon process.
Optionally, after processor 601 executes the starting logon process, further includes:
It is preset when the interval of nearest login time and current time with the associated application program of the logon process is greater than
When duration, exit the logon process, wherein the nearest login time be the associated application program of the logon process in most
The login time of the application program logged in afterwards.
Mobile terminal 600 can be realized each process that mobile terminal is realized in previous embodiment, to avoid repeating, here
It repeats no more.
The mobile terminal 600 of the embodiment of the present invention can be from fortune when mobile terminal 600 starts the first application program
Row obtains the user information with the first application matches in the logon process on backstage, and is logged in using matched user information
First application program.In this way, frequently entering the user information of application program without user in user's login application program, lead to
Login can be realized in the user information crossed in the logon process for obtaining backstage, operates convenient, time saving.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
The scope of the present invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In embodiment provided herein, it should be understood that disclosed device and method can pass through others
Mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only
A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of device or unit
It connects, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.Some or all of unit therein can be selected to realize the embodiment of the present invention according to the actual needs
Purpose.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product
It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, ROM, RAM, magnetic or disk etc. are various can store program code
Medium.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.