CN104507158B - A kind of method, apparatus and mobile terminal for establishing WLAN connection - Google Patents

A kind of method, apparatus and mobile terminal for establishing WLAN connection Download PDF

Info

Publication number
CN104507158B
CN104507158B CN201410844152.XA CN201410844152A CN104507158B CN 104507158 B CN104507158 B CN 104507158B CN 201410844152 A CN201410844152 A CN 201410844152A CN 104507158 B CN104507158 B CN 104507158B
Authority
CN
China
Prior art keywords
application
wlan
component
wlan connection
movement end
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.)
Active
Application number
CN201410844152.XA
Other languages
Chinese (zh)
Other versions
CN104507158A (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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201410844152.XA priority Critical patent/CN104507158B/en
Publication of CN104507158A publication Critical patent/CN104507158A/en
Application granted granted Critical
Publication of CN104507158B publication Critical patent/CN104507158B/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/44505Configuring for program initiating, e.g. using registry, configuration files
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Abstract

The present invention discloses the method, apparatus that WLAN connection is established in a kind of application of mobile terminal and mobile terminal, wherein this method include:The component that class application is connected for the WLAN to be called in the inventory configuration file of first movement end application is registered;WLAN connection status of current mobile device is to disconnect where the application of first movement end detects it, the startup of triggering WLAN connection class application, and connects class application for the WLAN and create a specified process or thread;The running environment of WLAN connection class application is established in the foundation for detecting the specified process or thread in the specified process or thread;In the component for establishing in running environment and loading WLAN connection class and applying, and runs the WLAN connection class application and the mobile device being currently located is connected to available WLAN.

Description

A kind of method, apparatus and mobile terminal for establishing WLAN connection
Technical field
The invention belongs to establish WLAN connection in browser technology field more particularly to a kind of application of mobile terminal Method, apparatus and mobile terminal.
Background technology
Currently, Android operation system is quickly grown, the mobile device based on android system has already taken up movement Larger share in the market, the application numbers in Android application markets are also to advance by leaps and bounds, and Android has become instantly Most popular mobile platform operating system.
The appearance of a large amount of Android application programs and game makes user dazzled, and user will experience different game cartridges The enjoyment come, it is necessary to download the client application of these game.User also needs one by one to use these application programs By these client applications be mounted on mobile phone on.Each application program is stored in as an independent application program On user equipment.
Application program in existing Android platform or game could start use after must being installed after download, operation It is cumbersome;In addition, application program management relies only on the administrative mechanism of mounting platform itself, such as rights management, message informing Management etc., many loopholes of Android platform can bring prodigious safety risks.
Invention content
In view of the above problems, it is proposed that the present invention overcoming the above problem in order to provide one kind or solves at least partly State the method, apparatus and mobile terminal that WLAN connection is established in the mobile terminal application of problem.
One side according to the present invention provides the method that WLAN connection is established in a kind of application of mobile terminal, packet It includes:The component that class application is connected for the WLAN to be called in the inventory configuration file of first movement end application is noted Volume;WLAN connection status of current mobile device is to disconnect where the application of first movement end detects it, and triggering is wireless The startup of LAN connection class application, and connect class application for the WLAN and create a specified process or thread;Detection To the foundation of the specified process or thread, the fortune of WLAN connection class application is established in the specified process or thread Row environment;In the component for establishing in running environment and loading WLAN connection class and applying, and run the wireless local The mobile device being currently located is connected to available WLAN by net connection class application.
Wherein, in the inventory configuration file of first movement end application class application is connected for the WLAN to be called Component below carries out registration operation:Movable Activity components, service Service components, broadcast recipients Broadcast Receiver components, content provider's Content Provider components.
Wherein, further include:It sets the attribute of the notice Notification components of WLAN connection class application to Do not show notice prompt.
Wherein, further include:Before the component of load WLAN connection class application is run, by system answering currently It is changed to WLAN with attribute and connects class application.
Wherein, the step of running environment of WLAN connection class application is established in the specified process or thread, Including:Classloader is constructed, to load the corresponding loading classes in each component;The resource object needed for assembly operating is created, to carry Take or access WLAN connection class application resource;Explorer is constructed, with the resource needed for management operating component.
Wherein, the step of running environment of WLAN connection class application is established in the specified process or thread, Further include:If the component of load is Activity components, Receiver components or service Service components, applying Before the PMS examinations of program management service, component is revised as having installed the correspondence component in application program, and in PMS according to After correspondence component examination in installation application program passes through, the correspondence component amendment installed in application program is returned again described Component starts the component.
Wherein, further include:First movement end is applied before triggering WLAN connection class application, in a mobile device System in obtain the information of the application program with first movement end product identification for supporting to call, to carry out corresponding first shifting The foundation of the location registration process and subsequent running environment of the inventory configuration file of moved end product identification.
Wherein, further include:The information for information and WLAN the connection class application that first movement end is applied uploads To server side, the server is asked to issue the inventory configuration file of corresponding first movement end product identification.
Wherein, the WLAN connection class has using maintenance to the mobile operator WLAN hot spots safeguarded Access.
Wherein, the WLAN connection class has according to current mobile device geographic location using maintenance and is determined Available wireless local area networks hot spot access.
Wherein, WLAN connection status of current mobile device carries out where at first movement end, application detects it When switching, out code, switched over by the component of calling WLAN connection class application, shutoff operation.
Wherein, after the automatic preservation for carrying out WLAN login account, password of the WLAN connection class application Login connection;And from first movement end application side obtain the WLAN freely accessed that it is identified login account, Password.
Another aspect according to the present invention provides the device that WLAN connection is established in a kind of application of mobile terminal, packet It includes:Processor, load operating has registration module, handles module, establishes module, load module in the processor, wherein:Register mould Group, for connected for the WLAN to be called in the inventory configuration file that first movement end is applied the component of class application into Row registration;Module is handled, the WLAN of current mobile device connects shape where detecting it for the application of first movement end State is to disconnect, the startup that triggering WLAN connection class is applied, and connects class application for the WLAN and create a finger Determine process or thread;Module is established, the foundation for detecting the specified process or thread, in the specified process or thread The middle running environment for establishing WLAN connection class application;Module is loaded, for loading nothing in running environment in described establish The component of line LAN connection class application, and run the WLAN connection class application and connect the mobile device being currently located It is connected to available WLAN.
Wherein, the registration module is additionally operable to, and is the nothing to be called in the inventory configuration file of first movement end application The component below of line LAN connection class application carries out registration operation:Movable Activity components, service Service components, Broadcast recipients Broadcast Receiver components, content provider's Content Provider components.
Wherein, the processor also load operating has setting module, is used for the logical of WLAN connection class application Know that the attribute of Notification components is set as not showing notice prompt.
Wherein, the processor also load operating has attribute modification module, is used to connect class in load WLAN Before the component of application is run, the current application attribute of system is changed to WLAN and connects class application.
Wherein, the module of establishing further includes:First structural unit, for constructing Classloader, to load in each component Corresponding loading classes;Second structural unit, for creating the resource object needed for assembly operating, to extract or access wireless local Net connection class application resource;Third structural unit, for constructing explorer, with the resource needed for management operating component.
Wherein, the module of establishing is additionally operable to, if load the component be Activity components, Receiver components or Service components are serviced, then before application program management service PMS examinations, component are revised as having installed in application program Correspondence component, and PMS according to during application program has been installed correspondence component examination pass through after, will install again using journey The component is returned in correspondence component amendment in sequence, starts the component.
Wherein, the processor also load operating has acquisition module, is used for first movement end and applies in the wireless office of triggering What acquisition was supported to call before domain net connects class application, in system in a mobile device carries first movement end product identification The information of application program, to carry out the location registration process of the inventory configuration file of corresponding first movement end product identification and subsequent The foundation of running environment.
Wherein, the processor also load operating ask the visitor in modulus group, the information for being used to apply at first movement end and The information of WLAN connection class application is uploaded onto the server side, and the server is asked to issue corresponding first movement end product The inventory configuration file of mark.
Wherein, the WLAN connection class has using maintenance to the mobile operator WLAN hot spots safeguarded Access.
Wherein, the WLAN connection class has according to current mobile device geographic location using maintenance and is determined Available wireless local area networks hot spot access.
Wherein, the processing module is additionally operable to, the nothing of current mobile device where application detects it at first movement end Line LAN connection state switches over, out code when, cut by the component for calling WLAN to connect class application It changes, shutoff operation.
Wherein, after the automatic preservation for carrying out WLAN login account, password of the WLAN connection class application Login connection;And from first movement end application side obtain the WLAN freely accessed that it is identified login account, Password.
According to the present invention in another aspect, providing a kind of mobile terminal comprising built in the application of above-described mobile terminal The device of vertical WLAN connection.
According to the technique and scheme of the present invention, by being WLAN in the inventory configuration file that first movement end is applied The component of connection class application is registered, in the specified process or line of establishment after the startup of triggering WLAN connection class application The running environment of WLAN connection class application is established in journey, and is loaded WLAN in the running environment and connected class The component of application, and the WLAN connection class is run using available so that the mobile device being currently located to be connected to WLAN, the present invention realize WLAN connection class application exempt from installation and operation, and simplify application program use Operation.
Description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit are common for this field Technical staff will become clear.Attached drawing only for the purpose of illustrating preferred embodiments, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 is the flow for the method that WLAN connection is established in mobile terminal application according to an embodiment of the invention Figure;
Fig. 2 is the structure for the device that WLAN connection is established in mobile terminal application according to an embodiment of the invention Block diagram.
Specific implementation mode
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Completely it is communicated to those skilled in the art.
According to embodiments of the present invention, the method that WLAN connection is established in a kind of application of mobile terminal is provided.It needs Bright, above-mentioned mobile terminal application refers to that the application program that installation provides service to the user on mobile terminals is e.g. mounted on intelligence Application program on energy mobile phone terminal.The executive agent of the method provided in this embodiment can be mounted in Android device Application program, briefly, the method provided in this embodiment are just to provide for a kind of application run block frame, the fortune The connection class application of other WLANs is loaded into inside it and goes to execute by row frame.
Fig. 1 is the flow for the method that WLAN connection is established in mobile terminal application according to an embodiment of the invention Figure.As shown in Figure 1, the method for establishing WLAN connection in the mobile terminal application includes:
Step S102 is answered in the inventory configuration file of first movement end application for the WLAN to be called connection class Component is registered;
Wherein, inventory configuration file (AndroidManifest.xml) is located under the root of application program, obtains first The AndroidManifest.xml files of mobile terminal application, wherein for the WLAN to be called connect class application with Under component carry out registration operation:Movable (Activity) component, service (Service) component, broadcast recipients (Broadcast Receiver) component, content provider (Content Provider) component.And not all application program The component of these four above-mentioned types must all be included, certain applications program may be set up by above-mentioned one or more components.Each Component is required for register and could using, i.e., each component is required for carrying out in AndroidManifest.xml files Configuration.Manifest files contain each component of composition application program, and (activity, service, Content Provider and broadcast connect Receive device) node, and determined between these components using Intent filters and permission and these components and other application How program interacts.Therefore, application program has been listed in the Manifest files of WLAN connection class application to be wrapped The all components contained.It follows that can by reading the AndroidManifest.xml files of the application program installation kit, To obtain all components included in application program installation kit.
In an embodiment of the present invention, the WLAN connection class application can maintain to safeguard mobile operator WLAN hot spot access, for example, mobile operator safeguard WLAN hot spot can be that CMCC is safeguarded Wi-Fi hotspot, the WLAN connection class application can support the plug-in unit of the access to the CMCC Wi-Fi hotspots safeguarded. Alternatively, WLAN connection class application can also be maintained according to current mobile device geographic location and determination The access of available wireless local area networks hot spot, for example, mobile device accesses the Wi-Fi hotspot searched after opening WLAN scanning functions And network, and the hot spot is not the Wi-Fi hotspot that mobile operator is safeguarded.
Step S104, WLAN connection status of current mobile device is where the application of first movement end detects it Disconnect, triggering WLAN connection class application startup, and for the WLAN connect class application create one specify into Journey or thread;
If mobile device where the application of first movement end is currently without WLAN is linked into, i.e. mobile device WLAN connection status be disconnect, then trigger WLAN connection class application startup, correspondingly, create one specify into Journey or thread are to start WLAN connection class application to be prepared work.
Step S106 detects the foundation of the specified process or thread, and nothing is established in the specified process or thread The running environment of line LAN connection class application;
Wherein, the running environment that WLAN connection class application is established in the specified process or thread, is at least wrapped Include following step:
(1) Classloader ClassLoader is constructed, to load the corresponding loading classes in each component;
(2) the resource Resources objects needed for assembly operating are created, are answered with extracting or accessing WLAN connection class Use resource;
(3) explorer Asset Manager are constructed, with the resource needed for management operating component.
Can also include step other than three above-mentioned steps:
(4) if the component of load is Activity components, Receiver components or service Service components, Before application program management services PMS examinations, component is revised as having installed the correspondence component in application program, and in PMS roots After passing through according to the correspondence component examination installed in application program, the correspondence component amendment installed in application program is returned again The component starts the component.
Specifically, before PMS examinations, the first of the component the examination parameter is revised as described application program to be installed Second examination parameter of middle corresponding component;It, will after the correspondence component examination during PMS has installed application program according to passes through Second examination parameter of the modified component changes back the first examination parameter, and starts the component.Therein first Secondary modification is in order to be verified by PMS;Start the component that do not install in application program after changeing back for the second time, realizes opening for component It is dynamic, and then realize the operation of the application program.
Step S108 in the component for establishing in running environment and loading WLAN connection class and applying, and runs institute It states WLAN connection class application and the mobile device being currently located is connected to available WLAN.
Specifically, it is described establish in running environment load WLAN connection class application Activity components, Service components, Broadcast Receiver components, Content Provider components, and run the WLAN Class application is connected, the mobile device being currently located is connected to Wi-Fi hotspot or other non-moving operations of mobile operator maintenances The Wi-Fi hotspot that quotient safeguards, to make mobile device access wlan network.
Also, in an embodiment of the present invention, it is also necessary to by the notice of WLAN connection class application The attribute of Notification components is set as not showing notice prompt, that is to say, that disabling WLAN connection class application The status bar of message informing prompting function, mobile device does not also show icon, sound, the vibrations mould sent out when more not notifying The prompts such as formula, led flash lamps (color of lamp, flash time).In addition, load WLAN connection class application component into Before row operation, it is changed to the system of mobile device is current WLAN using Application attributes and connects class application, with Just operation of wireless lan connects class application in the system of mobile device.
In the section Example of the present invention, first movement end is applied before triggering WLAN connection class application, The letter for the application program (APP) with first movement end product identification for supporting to call is obtained in system in a mobile device Breath, to carry out the location registration process of Manifest files and the building for subsequent running environment of corresponding first movement end product identification It is vertical.That is, being applied before triggering WLAN connection class application at first movement end, mobile device first obtains support The WLAN with first movement end product identification called connects class application, and is the first movement end product to be called The component of the WLAN connection class application of mark carries out registration and subsequent establishes running environment.Also, first is moved The information of moved end application and the information of WLAN connection class application are uploaded onto the server side, and the server is asked to issue The Manifest files of corresponding first movement end product identification, to be the first shifting to be called in the Manifest files The component of the WLAN connection class application of moved end product identification is registered.
Further, the application of first movement end can be mobile terminal browser, and step S102 is specially to be browsed in mobile terminal The component that class application is connected for the WLAN to be called in the Manifest files of device is registered.If mobile terminal browses Device detect the WLAN connection status of current mobile device where it switch over, out code when, pass through and call nothing Line LAN connection class application component switch over, shutoff operation.Also, the application of WLAN connection class automatically into Row WLAN login account, password preservation after login connection, and obtain what it was identified from mobile terminal browser side Login account, the password of the WLAN freely accessed.
According to an embodiment of the invention, the device that WLAN connection is established in a kind of application of mobile terminal is also provided.
It is the device that WLAN connection is established in mobile terminal application according to an embodiment of the invention with reference to figure 2 Structure diagram, as shown in Fig. 2, the mobile terminal application in establish WLAN connection device 200 include a processor, Load operating has registration module 210, processing module 220, establishes module 230, load module 240 in the processor, in detail below The structure and function of each module is described.
Module 210 is registered, for being the WLAN to be called in the inventory configuration file that first movement end is applied The component of connection class application is registered;
Further, the registration module 210 is additionally operable to, and is to adjust in the inventory configuration file of first movement end application The component below of WLAN connection class application carries out registration operation:Movable Activity components, service Service Component, broadcast recipients Broadcast Receiver components, content provider's Content Provider components.
Wherein, the WLAN connection class has using maintenance to the mobile operator WLAN hot spots safeguarded Access;Or WLAN connection class using maintain to have according to current mobile device geographic location and determination can With the access of WLAN hot spot.
Module 220 is handled, the WLAN of current mobile device connects where detecting it for the application of first movement end It is to disconnect to connect state, the startup of triggering WLAN connection class application, and connects class application for the WLAN and create One specified process or thread;
Module 230 is established, the foundation for detecting the specified process or thread, in the specified process or thread Establish the running environment of WLAN connection class application;
Further, the module 230 of establishing further includes having:
First structural unit (not shown), for constructing Classloader, to load the corresponding loading classes in each component;
Second structural unit (not shown), it is wireless to extract or access for creating the resource object needed for assembly operating LAN connection class application resource;
Third structural unit (not shown), for constructing explorer, with the resource needed for management operating component.
In the section Example of the present invention, the module 230 of establishing is additionally operable to, if the component of load is Activity components, Receiver components or service Service components will then before application program management service PMS examinations Component is revised as having installed the correspondence component in application program, and is looked into according to the correspondence component in having installed application program in PMS It tests by rear, the component is returned into the correspondence component amendment installed in application program again, starts the component.
Load module 240, for it is described establish in running environment load WLAN connection class application component, and It runs the WLAN connection class application and the mobile device being currently located is connected to available WLAN.
According to embodiments of the present invention, the processor also load operating has setting module (not shown), attribute modification module (not shown) obtains module (not shown), request module (not shown), wherein:
The setting module is used for the attribute of the notice Notification components of WLAN connection class application It is set as not showing notice prompt.
The attribute modification module is used for before the component of load WLAN connection class application is run, will The current application Application attributes of system are changed to WLAN connection class application.
The acquisition module is used for first movement end and applies before triggering WLAN connection class application, moving The information that the application program App with first movement end product identification for supporting to call is obtained in system in dynamic equipment, with into The foundation of the location registration process and subsequent running environment of the Manifest files of row corresponding first movement end product identification.
The letter of the request module, the information for being used to apply at first movement end and WLAN connection class application Side of uploading onto the server is ceased, the server is asked to issue the Manifest files of corresponding first movement end product identification.
Further, the processing module 220 is additionally operable to, and at first movement end, application detects that currently movement where it is set Standby WLAN connection status switches over, out code when, pass through the component for calling WLAN to connect class application It switches over, shutoff operation.The automatic guarantor for carrying out WLAN login account, password of the WLAN connection class application Login connection after depositing;And the login account for the WLAN freely accessed that it is identified is obtained from first movement end application side Number, password.
Arrangement described above and the processing that the method that WLAN is connect is established in the mobile terminal application described before It is corresponding, accordingly, with respect to more detailed technical detail, may refer to the method described before.
The present invention also provides a kind of mobile terminals comprising establishes WLAN in above-described mobile terminal application The device of connection.
In conclusion above-mentioned technical proposal according to the present invention, passes through the inventory configuration file applied at first movement end In for WLAN connect class application component registered, triggering WLAN connection class application startup after creating Specified process or thread in establish the running environment of WLAN connection class application, and load nothing in the running environment The component of line LAN connection class application, and run the WLAN connection class and apply to set the movement being currently located Standby to be connected to available WLAN, the present invention realizes WLAN and connects the installation and operation of exempting from of class application, and simplifies The operation that application program uses.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein. Various general-purpose systems can also be used together with teaching based on this.As described above, it constructs required by this kind of system Structure be obvious.In addition, the present invention is not also directed to any certain programmed language.It should be understood that can utilize various Programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention Example can be put into practice without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of each inventive aspect, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:It is i.e. required to protect Shield the present invention claims the more features of feature than being expressly recited in each claim.More precisely, as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific implementation mode are expressly incorporated in the specific implementation mode, wherein each claim itself All as a separate embodiment of the present invention.
Those skilled in the art, which are appreciated that, to carry out adaptively the module in the equipment in embodiment Change and they are arranged in the one or more equipment different from the embodiment.It can be the module or list in embodiment Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it may be used any Combination is disclosed to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so to appoint Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power Profit requires, abstract and attached drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments means in of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed One of meaning mode can use in any combination.
The all parts embodiment of the present invention can be with hardware realization, or to run on one or more processors Software module realize, or realized with combination thereof.It will be understood by those of skill in the art that can use in practice Microprocessor either digital signal processor (DSP) come realize in the device provided according to embodiments of the present invention some or it is complete The some or all functions of portion's component.The present invention be also implemented as a part for executing method as described herein or The equipment or program of device (for example, computer program and computer program product) of person's whole.It is such to realize the present invention's Program can may be stored on the computer-readable medium, or can be with the form of one or more signal.Such signal It can download and obtain from internet website, either provide on carrier signal or provide in any other forms.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference mark between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be by the same hardware branch To embody.The use of word first, second, and third does not indicate that any sequence.These words can be explained and be run after fame Claim.
The embodiment of the present invention discloses the method that WLAN connection is established in A1, a kind of application of mobile terminal, including: The component that class application is connected for the WLAN to be called in the inventory configuration file of first movement end application is registered;The WLAN connection status of current mobile device is to disconnect where the application of one mobile terminal detects it, triggers WLAN The startup of class application is connected, and connects class application for the WLAN and creates a specified process or thread;It detects described The operation ring of WLAN connection class application is established in the foundation of specified process or thread in the specified process or thread Border;In the component for establishing in running environment and loading WLAN connection class and applying, and runs the WLAN and connect It connects class application and the mobile device being currently located is connected to available WLAN.A2, the method according to A1, wherein Connected for the WLAN to be called in the inventory configuration file of first movement end application the component below of class application into Row registration operation:Movable Activity components, service Service components, broadcast recipients Broadcast Receiver components, Content provider's Content Provider components.A3, the method according to A1, wherein further include:WLAN is connected The attribute for connecing the notice Notification components of class application is set as not showing notice prompt.A4, the method according to A1, Wherein, further include:Before the component of load WLAN connection class application is run, the current application attribute of system is changed Class application is connected for WLAN.A5, the method according to A1, wherein establish nothing in the specified process or thread The step of running environment of line LAN connection class application, including:Classloader is constructed, to load the corresponding load in each component Class;The resource object needed for assembly operating is created, class application resource is connected to extract or access WLAN;Construct resource pipe Device is managed, with the resource needed for management operating component.A6, the method according to A5, wherein in the specified process or thread The step of WLAN connects the running environment of class application is established, further includes:If the component of load is Activity groups Component is revised as by part, Receiver components or service Service components then before application program management service PMS examinations Correspondence component in application program is installed, and after PMS passes through according to the correspondence component examination in having installed application program, then It is secondary that the component is returned into the correspondence component amendment installed in application program, start the component.A7, the side according to A1 Method, wherein further include:First movement end apply triggering WLAN connection class application before, in a mobile device be The information that the application program with first movement end product identification for supporting to call is obtained in system, to carry out corresponding first movement end The foundation of the location registration process and subsequent running environment of the inventory configuration file of product identification.A8, the method according to A7, Wherein, further include:The information for information and WLAN the connection class application that first movement end is applied is uploaded onto the server Side asks the server to issue the inventory configuration file of corresponding first movement end product identification.A9, the side according to A1 Method, wherein the WLAN connection class is using the access for maintaining to have to the mobile operator WLAN hot spots safeguarded. A10, the method according to A1, wherein the WLAN connection class has using maintenance according to where current mobile device Geographical location and the access of the available wireless local area networks hot spot of determination.A11, the method according to A1, wherein in first movement End application detect the WLAN connection status of current mobile device where it switch over, out code when, pass through tune It is switched over the component of WLAN connection class application, shutoff operation.A12, the method according to A1, wherein described WLAN connects the login connection after the automatic preservation for carrying out WLAN login account, password of class application;And from One mobile terminal application side obtains login account, the password for the WLAN freely accessed that it is identified.
The embodiment of the present invention discloses the device that WLAN connection is established in B13, a kind of application of mobile terminal, including: Processor, load operating has registration module, handles module, establishes module, load module in the processor, wherein:Module is registered, The component that class application is connected for the WLAN to be called in the inventory configuration file that first movement end is applied carries out Registration;Module is handled, the WLAN connection status of current mobile device where detecting it for the application of first movement end To disconnect, triggering WLAN connects the startup that class is applied, and connects class application establishment one for the WLAN and specify Process or thread;Module is established, the foundation for detecting the specified process or thread, in the specified process or thread Establish the running environment of WLAN connection class application;Module is loaded, for being loaded wirelessly in described establish in running environment The component of LAN connection class application, and run the WLAN connection class application and connect the mobile device being currently located To available WLAN.B14, the device according to B13, wherein the registration module is additionally operable to, at first movement end The component below for connecting class application in the inventory configuration file of application for the WLAN to be called carries out registration operation:It is living Dynamic Activity components, service Service components, broadcast recipients Broadcast Receiver components, content provider Content Provider components.B15, the device according to B13, wherein the processor also load operating has setting mould Group is used to be set as the attribute of the notice Notification components of WLAN connection class application not show that notice carries Show.B16, the device according to B13, wherein the processor also load operating has attribute modification module, is used to load Before the component of WLAN connection class application is run, the current application attribute of system is changed to WLAN and connects class Using.B17, the device according to B13, wherein the module of establishing further includes:First structural unit adds for constructing class Device is carried, to load the corresponding loading classes in each component;Second structural unit, for creating the resource object needed for assembly operating, Class application resource is connected to extract or access WLAN;Third structural unit, for constructing explorer, to manage fortune Resource needed for row component.B18, the device according to B17, wherein the module of establishing is additionally operable to, if described group of load Part is Activity components, Receiver components or service Service components, then checks it in application program management service PMS Before, component is revised as having installed the correspondence component in application program, and in PMS according to the correspondence group in having installed application program After part examination passes through, the component is returned into the correspondence component amendment installed in application program again, starts the component.B19, Device according to B13, wherein the processor also load operating has acquisition module, is used for first movement end and applies Before triggering WLAN connection class application, what acquisition was supported to call in system in a mobile device carries first movement end The information of the application program of product identification, to carry out the location registration process of the inventory configuration file of corresponding first movement end product identification And the foundation of subsequent running environment.B20, the device according to B18, wherein ask the visitor in for the processor also load operating Modulus group is used to upload onto the server the information for information and WLAN the connection class application that first movement end is applied Side asks the server to issue the inventory configuration file of corresponding first movement end product identification.B21, the dress according to B13 It sets, wherein the WLAN connection class is using the access for maintaining to have to the mobile operator WLAN hot spots safeguarded. B22, the device according to B13, wherein the WLAN connection class has using maintenance according to where current mobile device Geographical location and the access of the available wireless local area networks hot spot of determination.B23, the device according to B13, wherein the processing Module is additionally operable to, and WLAN connection status of current mobile device is cut where at first movement end, application detects it Change, out code when, by call WLAN connect class application component switch over, shutoff operation.B24, according to B13 The device, wherein the automatic preservation for carrying out WLAN login account, password of the WLAN connection class application Login connection afterwards;And the login account for the WLAN freely accessed that it is identified is obtained from first movement end application side Number, password.
The embodiment of the present invention discloses C25, a kind of mobile end equipment comprising the movement described in any one of B13 to B24 The device of WLAN connection is established in the application of end.

Claims (25)

1. a kind of method that WLAN connection is established in mobile terminal application, including:
The component for connecting class application for the WLAN to be called in the inventory configuration file of first movement end application carries out Registration, wherein it is the application program based on Android operation system that the first movement end, which is applied,;
WLAN connection status of current mobile device is to disconnect where the application of first movement end detects it, and triggering is wireless The startup of LAN connection class application, and connect class application for the WLAN and create a specified process or thread;
WLAN connection class is established in the foundation for detecting the specified process or thread in the specified process or thread The running environment of application;
In the component for establishing in running environment and loading WLAN connection class and applying, and runs the WLAN and connect It connects class application and the mobile device being currently located is connected to available WLAN.
2. according to the method described in claim 1, wherein, to be called in the inventory configuration file of first movement end application The component below of WLAN connection class application carries out registration operation:
Movable Activity components, service Service components, broadcast recipients Broadcast Receiver components, content carry Donor Content Provider components.
3. according to the method described in claim 1, wherein, further including:
It is set as the attribute of the notice Notification components of WLAN connection class application not show notice prompt.
4. according to the method described in claim 1, wherein, further including:
Before the component of load WLAN connection class application is run, the current application attribute of system is changed to wireless office Domain net connection class application.
5. according to the method described in claim 1, wherein, WLAN connection class is established in the specified process or thread The step of running environment of application, including:
Classloader is constructed, to load the corresponding loading classes in each component;
The resource object needed for assembly operating is created, class application resource is connected to extract or access WLAN;
Explorer is constructed, with the resource needed for management operating component.
6. according to the method described in claim 5, wherein, WLAN connection class is established in the specified process or thread The step of running environment of application, further include:
If the component of load is Activity components, Receiver components or service Service components, in application program Before management service PMS examination, component is revised as having installed the correspondence component in application program, and in PMS according to having installed After correspondence component examination in application program passes through, the correspondence component amendment installed in application program is returned described group again Part starts the component.
7. according to the method described in claim 1, wherein, further including:
First movement end is applied before triggering WLAN connection class application, is obtained and is supported in system in a mobile device The information for the application program with first movement end product identification called, to carry out the clear of corresponding first movement end product identification The foundation of the location registration process of single configuration file and subsequent running environment.
8. according to the method described in claim 7, wherein, further including:
The information of information and WLAN that first movement end is applied connection class application is uploaded onto the server side, institute is asked State the inventory configuration file that server issues corresponding first movement end product identification.
9. according to the method described in claim 1, wherein, the WLAN connection class has using maintenance to mobile operator The access of the WLAN hot spot of maintenance.
10. according to the method described in claim 1, wherein, the WLAN connection class has using maintenance according to when Forward Move the access of equipment geographic location and the available wireless local area networks hot spot of determination.
11. according to the method described in claim 1, wherein, current mobile device where application detects it at first movement end WLAN connection status switch over, out code when, by call WLAN connect class application component into Row switching, shutoff operation.
12. according to the method described in claim 1, wherein, the WLAN connection class application is automatic to carry out wireless local Net login account, password preservation after login connection;And obtain its free access identified from first movement end application side WLAN login account, password.
13. the device of WLAN connection is established in a kind of mobile terminal application, including:
Processor, load operating has registration module, handles module, establishes module, load module in the processor, wherein:
Module is registered, connecting class for the WLAN to be called in the inventory configuration file that first movement end is applied answers Component is registered, wherein it is the application program based on Android operation system that the first movement end, which is applied,;
Module is handled, the WLAN connection status of current mobile device is where detecting it for the application of first movement end Disconnect, triggering WLAN connection class application startup, and for the WLAN connect class application create one specify into Journey or thread;
Module is established, the foundation for detecting the specified process or thread establishes nothing in the specified process or thread The running environment of line LAN connection class application;
Module is loaded, for establishing in running environment the component for loading WLAN connection class and applying described, and runs institute It states WLAN connection class application and the mobile device being currently located is connected to available WLAN.
14. device according to claim 13, wherein the registration module is additionally operable to, and at first movement end, application is clear The component below for connecting class application in single configuration file for the WLAN to be called carries out registration operation:
Movable Activity components, service Service components, broadcast recipients Broadcast Receiver components, content carry Donor Content Provider components.
15. device according to claim 13, wherein the processor also load operating has setting module, be used for by The attribute of the notice Notification components of WLAN connection class application is set as not showing notice prompt.
16. device according to claim 13, wherein the processor also load operating has attribute modification module, uses Before being run in the component of load WLAN connection class application, the current application attribute of system is changed to wireless local Net connection class application.
17. device according to claim 13, wherein the module of establishing further includes:
First structural unit, for constructing Classloader, to load the corresponding loading classes in each component;
Second structural unit connects class for creating the resource object needed for assembly operating to extract or access WLAN Application resource;
Third structural unit, for constructing explorer, with the resource needed for management operating component.
18. device according to claim 17, wherein the module of establishing is additionally operable to, if the component of load is Activity components, Receiver components or service Service components will then before application program management service PMS examinations Component is revised as having installed the correspondence component in application program, and is looked into according to the correspondence component in having installed application program in PMS It tests by rear, the component is returned into the correspondence component amendment installed in application program again, starts the component.
19. device according to claim 13, wherein the processor also load operating has acquisition module, is used for One mobile terminal is applied before triggering WLAN connection class application, obtains what support was called in system in a mobile device The information of application program with first movement end product identification, the inventory to carry out corresponding first movement end product identification configure The foundation of the location registration process of file and subsequent running environment.
20. device according to claim 18, wherein the processor also load operating ask the visitor in modulus group, be used for by The information of first movement end application and the information of WLAN connection class application are uploaded onto the server side, and the service is asked Device issues the inventory configuration file of corresponding first movement end product identification.
21. device according to claim 13, wherein the WLAN connection class has using maintenance runs mobile The access for the WLAN hot spot that quotient safeguards.
22. device according to claim 13, wherein the WLAN connection class has using maintenance according to when Forward Move the access of equipment geographic location and the available wireless local area networks hot spot of determination.
23. device according to claim 13, wherein the processing module is additionally operable to, and at first movement end, application detects To current mobile device where it WLAN connection status switch over, out code when, pass through and call wireless local Net connection class application component switch over, shutoff operation.
24. device according to claim 13, wherein the WLAN connection class application is automatic to carry out wireless local Net login account, password preservation after login connection;And obtain its free access identified from first movement end application side WLAN login account, password.
25. a kind of mobile end equipment comprising established in the mobile terminal application described in any one of claim 13 to 24 wireless The device of LAN connection.
CN201410844152.XA 2014-12-30 2014-12-30 A kind of method, apparatus and mobile terminal for establishing WLAN connection Active CN104507158B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410844152.XA CN104507158B (en) 2014-12-30 2014-12-30 A kind of method, apparatus and mobile terminal for establishing WLAN connection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410844152.XA CN104507158B (en) 2014-12-30 2014-12-30 A kind of method, apparatus and mobile terminal for establishing WLAN connection

Publications (2)

Publication Number Publication Date
CN104507158A CN104507158A (en) 2015-04-08
CN104507158B true CN104507158B (en) 2018-10-23

Family

ID=52948857

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410844152.XA Active CN104507158B (en) 2014-12-30 2014-12-30 A kind of method, apparatus and mobile terminal for establishing WLAN connection

Country Status (1)

Country Link
CN (1) CN104507158B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108173909B (en) * 2017-12-15 2021-11-16 臻迪科技股份有限公司 Data synchronization method, mobile terminal and computer readable storage medium
CN108811036B (en) * 2018-05-24 2020-07-31 上海连尚网络科技有限公司 Method and apparatus for displaying wireless access point information
CN108471635B (en) * 2018-05-30 2020-10-02 连尚(新昌)网络科技有限公司 Method and apparatus for connecting wireless access points
CN112333062A (en) * 2020-11-03 2021-02-05 深圳Tcl新技术有限公司 Control method and control device for household equipment and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0961203A2 (en) * 1998-05-29 1999-12-01 Hewlett-Packard Company A generic configuration file processing library and executable
CN101673204A (en) * 2009-08-13 2010-03-17 上海酷吧信息技术有限公司 Dynamic loading method of application program of mobile phone based on arm
CN103399788A (en) * 2013-08-07 2013-11-20 广东欧珀移动通信有限公司 Cross-application control method and system for intelligent terminal
CN103530156A (en) * 2013-10-17 2014-01-22 北京奇虎科技有限公司 Method and device for dynamically loading and calling program
CN104050035A (en) * 2014-05-14 2014-09-17 小米科技有限责任公司 Processing method and device for application program
CN104077165A (en) * 2014-07-09 2014-10-01 上海卓盟信息科技有限公司 Application starting, running and managing method and system based on android platform

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0961203A2 (en) * 1998-05-29 1999-12-01 Hewlett-Packard Company A generic configuration file processing library and executable
CN101673204A (en) * 2009-08-13 2010-03-17 上海酷吧信息技术有限公司 Dynamic loading method of application program of mobile phone based on arm
CN103399788A (en) * 2013-08-07 2013-11-20 广东欧珀移动通信有限公司 Cross-application control method and system for intelligent terminal
CN103530156A (en) * 2013-10-17 2014-01-22 北京奇虎科技有限公司 Method and device for dynamically loading and calling program
CN104050035A (en) * 2014-05-14 2014-09-17 小米科技有限责任公司 Processing method and device for application program
CN104077165A (en) * 2014-07-09 2014-10-01 上海卓盟信息科技有限公司 Application starting, running and managing method and system based on android platform

Also Published As

Publication number Publication date
CN104507158A (en) 2015-04-08

Similar Documents

Publication Publication Date Title
US20230269326A1 (en) Automatically collected device problem information to route and guide users’ requests
CN105704066B (en) Networking control method and device, system, security gateway, mobile terminal
US10219130B2 (en) Remote device modification
CN104507158B (en) A kind of method, apparatus and mobile terminal for establishing WLAN connection
CN105306676B (en) Access the method, apparatus and system of smart machine
CN106471465B (en) Service enabler function
US20080045201A1 (en) Remote feature control of a mobile device
CN103747028B (en) A kind of method for authorizing user's temporary root authority
JP2015130679A5 (en)
KR100979004B1 (en) Apparatus and methods for service programming of a wireless device on a wireless communications network
CN103797771A (en) Method and apparatus for m2m device subscription
US9451444B2 (en) Systems and methods for providing modem behavior-based setup for user devices
CN103634935B (en) WPS (Wi-Fi protected setup) or QSS (quick secure setup)-based network accessing method and device
CN104461583B (en) A kind of method, apparatus and mobile terminal for calling resources-type application
CN104461663A (en) Method and device for loading other mobile terminal applications and mobile terminal
CN101557584A (en) Method for realizing application authority control of mobile terminal and device
CN104965778A (en) Method and device for game test
CN105472593A (en) Method and system for realizing borrowing of Internet surfing traffic of mobile terminal
CN104375831B (en) Realize the methods, devices and systems of the webpage and inter-application communication on terminal device
US8365250B2 (en) Apparatus, methods, and computer program products for providing portable communication identity services
CN108124258A (en) A kind of control method and network monitoring apparatus of terminal communication service
EP2911428B1 (en) Management of virtual subscriptions
CN106488435A (en) A kind of client identification module approaches to IM and mobile terminal
RU2618943C2 (en) Method, device and system for distribution of applications
CN108737371A (en) Hive data access control methods, server and computer storage media

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220728

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right