CN104507158A - Wireless local area network connection building method, device and mobile terminal - Google Patents
Wireless local area network connection building method, device and mobile terminal Download PDFInfo
- Publication number
- CN104507158A CN104507158A CN201410844152.XA CN201410844152A CN104507158A CN 104507158 A CN104507158 A CN 104507158A CN 201410844152 A CN201410844152 A CN 201410844152A CN 104507158 A CN104507158 A CN 104507158A
- Authority
- CN
- China
- Prior art keywords
- local area
- area network
- wireless local
- wlan
- assembly
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a wireless local area network connection building method, device and mobile terminal in mobile terminal application. The method includes: the component of a to-be-called wireless local area network connection application is registered in the list configuration file of a first mobile terminal application; the first mobile terminal application detects that the wireless local area network connection state of current mobile equipment where the first mobile terminal application is located is disconnected, triggers the starting of the wireless local area network connection application, and builds an appointed progress or thread for the wireless local area network connection application; when the building of the appointed process or thread is detected, the operation environment of the wireless local area network connection application is built in the appointed process or thread; the component of the wireless local area network application is loaded in the operation environment, and the wireless local area network connection application is operated to connect the mobile equipment to an available wireless local area network.
Description
Technical field
The invention belongs to browser technology field, particularly relate in the application of a kind of mobile terminal method, device and the mobile terminal setting up WLAN (wireless local area network) and connect.
Background technology
At present, Android operation system development rapidly, mobile device based on android system has occupied share larger on Mobile Market, and the application numbers in Android application market is also advanced by leaps and bounds, and Android has become instantly the most popular mobile platform operating system.
A large amount of Android application programs and the appearance of game make user dazzled, and user will experience the different enjoyment brought of playing, and just needs the client application downloading these game.User wants to use these application programs, also needs being arranged on mobile phone by these client applications one by one.Independently application storage is on a user device as one for each application program.
Application program in existing Android platform or game, could start use after must installing, complex operation after download; In addition, application program management can only depend on the administrative mechanism of mounting platform itself, and such as rights management, message informing management etc., many leaks of Android platform can bring very large safety risks.
Summary of the invention
In view of the above problems, propose the present invention in case provide a kind of overcome in the problems referred to above or the mobile terminal application that solves the problem at least in part set up WLAN (wireless local area network) and connect method, device and mobile terminal.
According to one aspect of the present invention, set up the method that WLAN (wireless local area network) connects in providing a kind of mobile terminal to apply, comprising: the assembly that the WLAN (wireless local area network) for calling in the inventory configuration file that the first mobile terminal is applied connects class application is registered; First mobile terminal application detects that the WLAN (wireless local area network) connection status of its place current mobile device is off, and triggers the startup that WLAN (wireless local area network) connects class application, and specifies process or thread for described WLAN (wireless local area network) connects class application establishment one; The foundation of described appointment process or thread detected, in described appointment process or thread, set up the running environment that WLAN (wireless local area network) connects class application; Described set up in running environment load WLAN (wireless local area network) connect class application assembly, and run described WLAN (wireless local area network) connect class application the mobile device at current place is connected to available WLAN (wireless local area network).
Wherein, the following assembly applied for the WLAN (wireless local area network) connection class that will call in the inventory configuration file of the first mobile terminal application carries out registration operation: movable Activity assembly, service Service assembly, broadcast recipients Broadcast Receiver assembly, content provider Content Provider assembly.
Wherein, also comprise: WLAN (wireless local area network) is connected the setup of attribute of the notice Notification assembly of class application for not showing notice prompting.
Wherein, also comprise: before the assembly loading the application of WLAN (wireless local area network) connection class runs, apply property current for system is changed into WLAN (wireless local area network) and connect class application.
Wherein, in described appointment process or thread, set up the step that WLAN (wireless local area network) connects the running environment of class application, comprising: structure Classloader, to load the corresponding loading classes in each assembly; Create the resource object needed for assembly operating, connect class application resource to extract or to access WLAN (wireless local area network); Structure explorer, with the resource needed for management operating assembly.
Wherein, the step that WLAN (wireless local area network) connects the running environment of class application is set up in described appointment process or thread, also comprise: if the described assembly loaded is Activity assembly, Receiver assembly or service Service assembly, then before application program management service PMS examination, assembly is revised as the corresponding assembly in set up applications, and at PMS according to the corresponding assembly examination in set up applications by rear, again described assembly is returned in the corresponding assembly correction in set up applications, start described assembly.
Wherein, also comprise: before the first mobile terminal is applied in and triggers the application of WLAN (wireless local area network) connection class, the information supporting the application program with the first mobile terminal product identification called is obtained, to carry out the location registration process of inventory configuration file and the foundation of follow-up running environment of corresponding first mobile terminal product identification in system in a mobile device.
Wherein, also comprise: side that the information that the information of the first mobile terminal application and WLAN (wireless local area network) connection class are applied is uploaded onto the server, ask described server to issue the inventory configuration file of corresponding first mobile terminal product identification.
Wherein, described WLAN (wireless local area network) connects the access that class application maintains the WLAN (wireless local area network) focus had mobile operator maintenance.
Wherein, described WLAN (wireless local area network) connects the access that class application maintenance has the available wireless local area networks focus determined according to current mobile device geographic location.
Wherein, detect that the WLAN (wireless local area network) connection status of its place current mobile device carries out switching in the first mobile terminal application, out code time, the assembly connecting class application by calling WLAN (wireless local area network) carries out switching, shutoff operation.
Wherein, the login after the preservation of WLAN (wireless local area network) login account, password is carried out in the application of described WLAN (wireless local area network) connection class automatically connects; And login account, the password of the WLAN (wireless local area network) of the free access that it identifies is obtained from the first mobile terminal application side.
According to another aspect of the present invention, the device that WLAN (wireless local area network) connects is set up in providing a kind of mobile terminal to apply, comprise: processor, in this processor, load operating has registration module, processes module, sets up module, loads module, wherein: registration module, the assembly for applying for the WLAN (wireless local area network) connection class that will call in the inventory configuration file of the first mobile terminal application is registered; For the first mobile terminal application, process module, detects that the WLAN (wireless local area network) connection status of its place current mobile device is off, triggers the startup that WLAN (wireless local area network) connects class application, and specify process or thread for described WLAN (wireless local area network) connects class application establishment one; Setting up module, for the foundation of described appointment process or thread being detected, in described appointment process or thread, setting up the running environment that WLAN (wireless local area network) connects class application; Load module, for described set up in running environment load WLAN (wireless local area network) connect class application assembly, and run described WLAN (wireless local area network) connect class application the mobile device at current place is connected to available WLAN (wireless local area network).
Wherein, described registration module also for, the following assembly connecting class application for the WLAN (wireless local area network) that will call in the inventory configuration file of the first mobile terminal application carries out registration operation: movable Activity assembly, service Service assembly, broadcast recipients Broadcast Receiver assembly, content provider Content Provider assembly.
Wherein, described processor also load operating arranges module, and it is for connecting the setup of attribute of the notice Notification assembly of class application for not showing notice prompting by WLAN (wireless local area network).
Wherein, described processor also load operating has attribute modification module, and apply property current for system is changed into WLAN (wireless local area network) and connects class application before running for the assembly connecting class application in loading WLAN (wireless local area network) by it.
Wherein, described module of setting up also comprises: the first structural unit, for constructing Classloader, to load the corresponding loading classes in each assembly; Second structural unit, for creating the resource object needed for assembly operating, connects class application resource to extract or to access WLAN (wireless local area network); 3rd structural unit, for constructing explorer, with the resource needed for management operating assembly.
Wherein, described set up module also for, if the described assembly loaded is Activity assembly, Receiver assembly or service Service assembly, then before application program management service PMS examination, assembly is revised as the corresponding assembly in set up applications, and at PMS according to the corresponding assembly examination in set up applications by rear, again described assembly is returned in the corresponding assembly correction in set up applications, starts described assembly.
Wherein, described processor also load operating has acquisition module, before it is applied in the application of triggering WLAN (wireless local area network) connection class for the first mobile terminal, the information supporting the application program with the first mobile terminal product identification called is obtained, to carry out the location registration process of inventory configuration file and the foundation of follow-up running environment of corresponding first mobile terminal product identification in system in a mobile device.
Wherein, described processor also load operating has request module, it, for side of the information of the information of the first mobile terminal application and the application of WLAN (wireless local area network) connection class being uploaded onto the server, asks described server to issue the inventory configuration file of corresponding first mobile terminal product identification.
Wherein, described WLAN (wireless local area network) connects the access that class application maintains the WLAN (wireless local area network) focus had mobile operator maintenance.
Wherein, described WLAN (wireless local area network) connects the access that class application maintenance has the available wireless local area networks focus determined according to current mobile device geographic location.
Wherein, described process module also for, detect that the WLAN (wireless local area network) connection status of its place current mobile device carries out switching in the first mobile terminal application, out code time, the assembly connecting class application by calling WLAN (wireless local area network) carries out switching, shutoff operation.
Wherein, the login after the preservation of WLAN (wireless local area network) login account, password is carried out in the application of described WLAN (wireless local area network) connection class automatically connects; And login account, the password of the WLAN (wireless local area network) of the free access that it identifies is obtained from the first mobile terminal application side.
According to another aspect of the invention, provide a kind of mobile terminal, it comprises in the application of above-described mobile terminal the device set up WLAN (wireless local area network) and connect.
According to technical scheme of the present invention, registered by the assembly applied for WLAN (wireless local area network) connection class in the inventory configuration file of the first mobile terminal application, trigger the running environment setting up the application of WLAN (wireless local area network) connection class after WLAN (wireless local area network) connects the startup of class application in the appointment process created or thread, and in described running environment, load the assembly of WLAN (wireless local area network) connection class application, and run the application of described WLAN (wireless local area network) connection class the mobile device at current place is connected to available WLAN (wireless local area network), what present invention achieves the application of WLAN (wireless local area network) connection class exempts from installation and operation, and simplify the operation of application program use.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit will become cheer and bright for those of ordinary skill in the art.Accompanying drawing only for illustrating the object of preferred implementation, and does not think limitation of the present invention.And in whole accompanying drawing, represent identical parts by identical reference symbol.In the accompanying drawings:
Fig. 1 is the flow chart setting up the method that WLAN (wireless local area network) connects in mobile terminal application according to an embodiment of the invention;
Fig. 2 is the structured flowchart setting up the device that WLAN (wireless local area network) connects in mobile terminal application according to an embodiment of the invention.
Embodiment
Below with reference to accompanying drawings exemplary embodiment of the present disclosure is described in more detail.Although show exemplary embodiment of the present disclosure in accompanying drawing, however should be appreciated that can realize the disclosure in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to more thoroughly the disclosure can be understood, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
According to the embodiment of the present invention, in providing a kind of mobile terminal to apply, set up the method that WLAN (wireless local area network) connects.It should be noted that, the application of above-mentioned mobile terminal refers to installation on mobile terminals for user provides the application program of service, e.g., is arranged on the application program on intelligent mobile phone terminal.The executive agent of the described method that the present embodiment provides can be mounted in application program in Android device, briefly, the described method that the present embodiment provides is exactly to provide a kind of application run block frame, and the application of other WLAN (wireless local area network) connection class is loaded into its inside and goes to perform by this operation frame.
Fig. 1 is the flow chart setting up the method that WLAN (wireless local area network) connects in mobile terminal application according to an embodiment of the invention.As shown in Figure 1, the method setting up WLAN (wireless local area network) connection in the application of described mobile terminal comprises:
Step S102, for the assembly of the WLAN (wireless local area network) connection class application that will call is registered in the inventory configuration file of the first mobile terminal application;
Wherein, under inventory configuration file (AndroidManifest.xml) is positioned at the root of application program, obtain the AndroidManifest.xml file of the first mobile terminal application, the following assembly that the WLAN (wireless local area network) wherein for calling connects class application carries out registration operation: movable (Activity) assembly, service (Service) assembly, broadcast recipients (Broadcast Receiver) assembly, content provider (ContentProvider) assembly.And the application program of not all must comprise the assembly of this Four types above-mentioned, certain applications program may be set up by one or more assemblies above-mentioned.Each assembly needs to carry out registration and could use, and namely each assembly needs to be configured in AndroidManifest.xml file.Manifest file contains the node of each assembly (movable, service, Content Provider and radio receiver) of composition application program, and uses Intent filter and authority to determine between these assemblies and how these assemblies and other application programs carry out alternately.Therefore, WLAN (wireless local area network) connects in the Manifest file of class application all component listed application program and comprise.It can thus be appreciated that, by reading the AndroidManifest.xml file of described application program installation kit, obtain all component comprised in application program installation kit.
In an embodiment of the present invention, described WLAN (wireless local area network) connects the access that class application can maintain the WLAN (wireless local area network) focus to mobile operator maintenance, such as, the WLAN (wireless local area network) focus that mobile operator safeguards can be the Wi-Fi hotspot that CMCC safeguards, described WLAN (wireless local area network) connects the plug-in unit that class application can be the access supported the Wi-Fi hotspot that CMCC safeguards.Or, described WLAN (wireless local area network) connects the access that class application can also maintain the available wireless local area networks focus determined according to current mobile device geographic location, such as, mobile device accesses the Wi-Fi hotspot and network that search after opening WLAN scan function, and this focus is not the Wi-Fi hotspot that mobile operator safeguards.
Step S104, the first mobile terminal application detects that the WLAN (wireless local area network) connection status of its place current mobile device is off, and triggers the startup that WLAN (wireless local area network) connects class application, and specifies process or thread for described WLAN (wireless local area network) connects class application establishment one;
If the mobile device of the first application place, mobile terminal is current be not linked into WLAN (wireless local area network), namely the WLAN (wireless local area network) connection status of mobile device is off, then trigger the startup that WLAN (wireless local area network) connects class application, correspondingly, create an appointment process or thread to connect class application carry out preparation for starting this WLAN (wireless local area network).
Step S106, detects the foundation of described appointment process or thread, sets up the running environment that WLAN (wireless local area network) connects class application in described appointment process or thread;
Wherein, in described appointment process or thread, set up the running environment that WLAN (wireless local area network) connects class application, at least comprise the following steps:
(1) Classloader ClassLoader is constructed, to load the corresponding loading classes in each assembly;
(2) create the resource Resources object needed for assembly operating, connect class application resource to extract or to access WLAN (wireless local area network);
(3) explorer Asset Manager is constructed, with the resource needed for management operating assembly.
Except above-mentioned three steps, can also step be comprised:
(4) if the described assembly loaded is Activity assembly, Receiver assembly or service Service assembly, then before application program management service PMS examination, assembly is revised as the corresponding assembly in set up applications, and at PMS according to the corresponding assembly examination in set up applications by rear, again described assembly is returned in the corresponding assembly correction in set up applications, start described assembly.
Particularly, before PMS examination, by first of described assembly the examination parameter modification for described in the second examination parameter of corresponding assembly in set up applications; Check by rear according to the corresponding assembly in described set up applications at PMS, change back described first examination parameter by second of amended described assembly the examination parameter, and start described assembly.First revision is wherein to verify by PMS; Second time changes back the assembly in the non-set up applications of rear startup, realizes the startup of assembly, and then realizes the operation of described application program.
Step S108, described set up in running environment load WLAN (wireless local area network) connect class application assembly, and run described WLAN (wireless local area network) connect class application the mobile device at current place is connected to available WLAN (wireless local area network).
Particularly, the Activity assembly, Service assembly, Broadcast Receiver assembly, the Content Provider assembly that load WLAN (wireless local area network) and connect class application is set up in running environment described, and run the application of described WLAN (wireless local area network) connection class, the mobile device at current place is connected to the Wi-Fi hotspot of mobile operator maintenance or the Wi-Fi hotspot of other non-moving operator maintenances, thus makes mobile device access wlan network.
And, in an embodiment of the present invention, also need the setup of attribute of notice Notification assembly WLAN (wireless local area network) being connected class application for not showing notice prompting, that is the message informing prompting function that WLAN (wireless local area network) connects class application is forbidden, the status bar of mobile device also not display icon, the promptings such as the sound sent when more not notifying, vibrating mode, led photoflash lamp (color of lamp, flash time).In addition, before the assembly loading the application of WLAN (wireless local area network) connection class runs, application Application attribute current for the system of mobile device is changed into WLAN (wireless local area network) and connect class application, so that operation of wireless lan connects class application in the system of mobile device.
In section Example of the present invention, before first mobile terminal is applied in and triggers the application of WLAN (wireless local area network) connection class, the information supporting the application program (APP) with the first mobile terminal product identification called is obtained, to carry out the location registration process of Manifest file and the foundation of follow-up running environment of corresponding first mobile terminal product identification in system in a mobile device.That is, before the first mobile terminal is applied in the application of triggering WLAN (wireless local area network) connection class, mobile device first obtains supports that the WLAN (wireless local area network) with the first mobile terminal product identification called connects class application, and the assembly connecting class application for the WLAN (wireless local area network) of the first mobile terminal product identification that will call carries out registering and follow-up sets up running environment.And, the information that the information of the first mobile terminal application and WLAN (wireless local area network) connect class application is uploaded onto the server side, ask described server to issue the Manifest file of corresponding first mobile terminal product identification, thus be that the assembly applied for the WLAN (wireless local area network) connection class of the first mobile terminal product identification that will call in this Manifest file is registered.
Further, the first mobile terminal application can be mobile terminal browser, and step S102 is specially in the Manifest file of mobile terminal browser as the assembly of the WLAN (wireless local area network) connection class application that will call is registered.If mobile terminal browser detects that the WLAN (wireless local area network) connection status of its place current mobile device carries out switching, out code time, the assembly connecting class application by calling WLAN (wireless local area network) carries out switching, shutoff operation.Further, described WLAN (wireless local area network) connects class and applies the connection of the login after automatically carrying out the preservation of WLAN (wireless local area network) login account, password, and obtains login account, the password of the WLAN (wireless local area network) of the free access that it identifies from browser side, mobile terminal.
According to embodiments of the invention, in also providing a kind of mobile terminal to apply, set up the device that WLAN (wireless local area network) connects.
With reference to figure 2, it is the structured flowchart setting up the device that WLAN (wireless local area network) connects in mobile terminal application according to an embodiment of the invention, as shown in Figure 2, the device 200 setting up WLAN (wireless local area network) connection in the application of described mobile terminal comprises a processor, in this processor, load operating has registration module 210, process module 220, sets up module 230, loads module 240, is described below in detail the 26S Proteasome Structure and Function of each module.
Registration module 210, registers for the assembly applied for the WLAN (wireless local area network) connection class that will call in the inventory configuration file of the first mobile terminal application;
Further, described registration module 210 also for, the following assembly connecting class application for the WLAN (wireless local area network) that will call in the inventory configuration file of the first mobile terminal application carries out registration operation: movable Activity assembly, service Service assembly, broadcast recipients Broadcast Receiver assembly, content provider Content Provider assembly.
Wherein, described WLAN (wireless local area network) connects the access that class application maintains the WLAN (wireless local area network) focus had mobile operator maintenance; Or described WLAN (wireless local area network) connects class application and maintains the access having the available wireless local area networks focus determined according to current mobile device geographic location.
Process module 220, detect that the WLAN (wireless local area network) connection status of its place current mobile device is off for the first mobile terminal application, trigger the startup that WLAN (wireless local area network) connects class application, and specify process or thread for described WLAN (wireless local area network) connects class application establishment one;
Setting up module 230, for the foundation of described appointment process or thread being detected, in described appointment process or thread, setting up the running environment that WLAN (wireless local area network) connects class application;
Further, described module 230 of setting up also includes:
First structural unit (not shown), for constructing Classloader, to load the corresponding loading classes in each assembly;
Second structural unit (not shown), for creating the resource object needed for assembly operating, connects class application resource to extract or to access WLAN (wireless local area network);
3rd structural unit (not shown), for constructing explorer, with the resource needed for management operating assembly.
In section Example of the present invention, described set up module 230 also for, if the described assembly loaded is Activity assembly, Receiver assembly or service Service assembly, then before application program management service PMS examination, assembly is revised as the corresponding assembly in set up applications, and at PMS according to the corresponding assembly examination in set up applications by rear, again described assembly is returned in the corresponding assembly correction in set up applications, starts described assembly.
Load module 240, for described set up in running environment load WLAN (wireless local area network) connect class application assembly, and run described WLAN (wireless local area network) connect class application the mobile device at current place is connected to available WLAN (wireless local area network).
According to the embodiment of the present invention, described processor also load operating arranges module (not shown), attribute modification module (not shown), obtains module (not shown), asks module (not shown), wherein:
Describedly arrange module, it is for connecting the setup of attribute of the notice Notification assembly of class application for not showing notice prompting by WLAN (wireless local area network).
Described attribute modification module, application Application attribute current for system is changed into WLAN (wireless local area network) and connects class application before running for the assembly connecting class application in loading WLAN (wireless local area network) by it.
Described acquisition module, before it is applied in the application of triggering WLAN (wireless local area network) connection class for the first mobile terminal, the information supporting the application A pp with the first mobile terminal product identification called is obtained, to carry out the location registration process of Manifest file and the foundation of follow-up running environment of corresponding first mobile terminal product identification in system in a mobile device.
Described request module, it, for side of the information of the information of the first mobile terminal application and the application of WLAN (wireless local area network) connection class being uploaded onto the server, asks described server to issue the Manifest file of corresponding first mobile terminal product identification.
Further, described process module 220 also for, detect that the WLAN (wireless local area network) connection status of its place current mobile device carries out switching in the first mobile terminal application, out code time, the assembly connecting class application by calling WLAN (wireless local area network) carries out switching, shutoff operation.Described WLAN (wireless local area network) connects class and applies the connection of the login after automatically carrying out the preservation of WLAN (wireless local area network) login account, password; And login account, the password of the WLAN (wireless local area network) of the free access that it identifies is obtained from the first mobile terminal application side.
Device described above sets up the method that WLAN (wireless local area network) connects process in applying with the mobile terminal described before is corresponding, therefore, about more detailed ins and outs, and can see the method described before.
Present invention also offers a kind of mobile terminal, it comprises in the application of above-described mobile terminal the device set up WLAN (wireless local area network) and connect.
In sum, according to technique scheme of the present invention, registered by the assembly applied for WLAN (wireless local area network) connection class in the inventory configuration file of the first mobile terminal application, trigger the running environment setting up the application of WLAN (wireless local area network) connection class after WLAN (wireless local area network) connects the startup of class application in the appointment process created or thread, and in described running environment, load the assembly of WLAN (wireless local area network) connection class application, and run the application of described WLAN (wireless local area network) connection class the mobile device at current place is connected to available WLAN (wireless local area network), what present invention achieves the application of WLAN (wireless local area network) connection class exempts from installation and operation, and simplify the operation of application program use.
Intrinsic not relevant to any certain computer, virtual system or miscellaneous equipment with display at this algorithm provided.Various general-purpose system also can with use based on together with this teaching.According to description above, the structure constructed required by this type systematic is apparent.In addition, the present invention is not also for any certain programmed language.It should be understood that and various programming language can be utilized to realize content of the present invention described here, and the description done language-specific is above to disclose preferred forms of the present invention.
In specification provided herein, describe a large amount of detail.But can understand, embodiments of the invention can be put into practice when not having these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand in each inventive aspect one or more, in the description above to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes.But, the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires feature more more than the feature clearly recorded in each claim.Or rather, as claims below reflect, all features of disclosed single embodiment before inventive aspect is to be less than.Therefore, the claims following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and adaptively can change the module in the equipment in embodiment and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit be mutually repel except, any combination can be adopted to combine all processes of all features disclosed in this specification (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment or unit.Unless expressly stated otherwise, each feature disclosed in this specification (comprising adjoint claim, summary and accompanying drawing) can by providing identical, alternative features that is equivalent or similar object replaces.
In addition, those skilled in the art can understand, although embodiments more described herein to comprise in other embodiment some included feature instead of further feature, the combination of the feature of different embodiment means and to be within scope of the present invention and to form different embodiments.Such as, in the following claims, the one of any of embodiment required for protection can use with arbitrary compound mode.
All parts embodiment of the present invention with hardware implementing, or can realize with the software module run on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that the some or all functions that microprocessor or digital signal processor (DSP) can be used in practice to realize the some or all parts in the device provided according to the embodiment of the present invention.The present invention can also be embodied as part or all equipment for performing method as described herein or device program (such as, computer program and computer program).Realizing program of the present invention and can store on a computer-readable medium like this, or the form of one or more signal can be had.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described instead of limit the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment when not departing from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and does not arrange element in the claims or step.Word "a" or "an" before being positioned at element is not got rid of and be there is multiple such element.The present invention can by means of including the hardware of some different elements and realizing by means of the computer of suitably programming.In the unit claim listing some devices, several in these devices can be carry out imbody by same hardware branch.Word first, second and third-class use do not represent any order.Can be title by these word explanations.
The embodiment of the present invention discloses in A1, the application of a kind of mobile terminal the method set up WLAN (wireless local area network) and connect, and comprising: for the assembly of the WLAN (wireless local area network) connection class application that will call is registered in the inventory configuration file of the first mobile terminal application; First mobile terminal application detects that the WLAN (wireless local area network) connection status of its place current mobile device is off, and triggers the startup that WLAN (wireless local area network) connects class application, and specifies process or thread for described WLAN (wireless local area network) connects class application establishment one; The foundation of described appointment process or thread detected, in described appointment process or thread, set up the running environment that WLAN (wireless local area network) connects class application; Described set up in running environment load WLAN (wireless local area network) connect class application assembly, and run described WLAN (wireless local area network) connect class application the mobile device at current place is connected to available WLAN (wireless local area network).A2, method according to A1, wherein, the following assembly applied for the WLAN (wireless local area network) connection class that will call in the inventory configuration file of the first mobile terminal application carries out registration operation: movable Activity assembly, service Service assembly, broadcast recipients Broadcast Receiver assembly, content provider ContentProvider assembly.A3, method according to A1, wherein, also comprise: WLAN (wireless local area network) is connected the setup of attribute of the notice Notification assembly of class application for not showing notice prompting.A4, method according to A1, wherein, also comprise: before the assembly loading WLAN (wireless local area network) and connect class application runs, apply property current for system is changed into WLAN (wireless local area network) and connect class application.A5, method according to A1, wherein, set up the step that WLAN (wireless local area network) connects the running environment of class application, comprising: structure Classloader, to load the corresponding loading classes in each assembly in described appointment process or thread; Create the resource object needed for assembly operating, connect class application resource to extract or to access WLAN (wireless local area network); Structure explorer, with the resource needed for management operating assembly.A6, method according to A5, wherein, the step that WLAN (wireless local area network) connects the running environment of class application is set up in described appointment process or thread, also comprise: if the described assembly loaded is Activity assembly, Receiver assembly or service Service assembly, then before application program management service PMS examination, assembly is revised as the corresponding assembly in set up applications, and at PMS according to the corresponding assembly examination in set up applications by rear, again described assembly is returned in the corresponding assembly correction in set up applications, start described assembly.A7, method according to A1, wherein, also comprise: before the first mobile terminal is applied in and triggers the application of WLAN (wireless local area network) connection class, the information supporting the application program with the first mobile terminal product identification called is obtained, to carry out the location registration process of inventory configuration file and the foundation of follow-up running environment of corresponding first mobile terminal product identification in system in a mobile device.A8, method according to A7, wherein, also comprise: the information information of the first mobile terminal application and WLAN (wireless local area network) being connected class application is uploaded onto the server side, asks described server to issue the inventory configuration file of corresponding first mobile terminal product identification.A9, method according to A1, wherein, described WLAN (wireless local area network) connects class application and maintains the access had the WLAN (wireless local area network) focus that mobile operator safeguards.A10, method according to A1, wherein, described WLAN (wireless local area network) connects class application and maintains the access having the available wireless local area networks focus determined according to current mobile device geographic location.A11, method according to A1, wherein, detect that the WLAN (wireless local area network) connection status of its place current mobile device carries out switching in the first mobile terminal application, out code time, the assembly connecting class application by calling WLAN (wireless local area network) carries out switching, shutoff operation.A12, method according to A1, wherein, described WLAN (wireless local area network) connect class application automatically carry out the preservation of WLAN (wireless local area network) login account, password after login connect; And login account, the password of the WLAN (wireless local area network) of the free access that it identifies is obtained from the first mobile terminal application side.
The embodiment of the present invention discloses in B13, the application of a kind of mobile terminal the device set up WLAN (wireless local area network) and connect, comprise: processor, in this processor, load operating has registration module, processes module, sets up module, loads module, wherein: registration module, the assembly for applying for the WLAN (wireless local area network) connection class that will call in the inventory configuration file of the first mobile terminal application is registered; For the first mobile terminal application, process module, detects that the WLAN (wireless local area network) connection status of its place current mobile device is off, triggers the startup that WLAN (wireless local area network) connects class application, and specify process or thread for described WLAN (wireless local area network) connects class application establishment one; Setting up module, for the foundation of described appointment process or thread being detected, in described appointment process or thread, setting up the running environment that WLAN (wireless local area network) connects class application; Load module, for described set up in running environment load WLAN (wireless local area network) connect class application assembly, and run described WLAN (wireless local area network) connect class application the mobile device at current place is connected to available WLAN (wireless local area network).B14, device according to B13, wherein, described registration module also for, the following assembly connecting class application for the WLAN (wireless local area network) that will call in the inventory configuration file of the first mobile terminal application carries out registration operation: movable Activity assembly, service Service assembly, broadcast recipients Broadcast Receiver assembly, content provider Content Provider assembly.B15, device according to B13, wherein, described processor also load operating arranges module, and it is for connecting the setup of attribute of the notice Notification assembly of class application for not showing notice prompting by WLAN (wireless local area network).B16, device according to B13, wherein, described processor also load operating has attribute modification module, and apply property current for system, for before running at the assembly loading WLAN (wireless local area network) and connect class application, is changed into WLAN (wireless local area network) and connects class application by it.B17, device according to B13, wherein, described module of setting up also comprises: the first structural unit, for constructing Classloader, to load the corresponding loading classes in each assembly; Second structural unit, for creating the resource object needed for assembly operating, connects class application resource to extract or to access WLAN (wireless local area network); 3rd structural unit, for constructing explorer, with the resource needed for management operating assembly.B18, device according to B17, wherein, described set up module also for, if the described assembly loaded is Activity assembly, Receiver assembly or service Service assembly, then before application program management service PMS examination, assembly is revised as the corresponding assembly in set up applications, and checks by rear according to the corresponding assembly in set up applications at PMS, again described assembly is returned in the corresponding assembly correction in set up applications, start described assembly.B19, device according to B13, wherein, described processor also load operating has acquisition module, before it is applied in the application of triggering WLAN (wireless local area network) connection class for the first mobile terminal, the information supporting the application program with the first mobile terminal product identification called is obtained, to carry out the location registration process of inventory configuration file and the foundation of follow-up running environment of corresponding first mobile terminal product identification in system in a mobile device.B20, device according to B18, wherein, described processor also load operating has request module, it, for side of the information of the information of the first mobile terminal application and the application of WLAN (wireless local area network) connection class being uploaded onto the server, asks described server to issue the inventory configuration file of corresponding first mobile terminal product identification.B21, device according to B13, wherein, described WLAN (wireless local area network) connects class application and maintains the access had the WLAN (wireless local area network) focus that mobile operator safeguards.B22, device according to B13, wherein, described WLAN (wireless local area network) connects class application and maintains the access having the available wireless local area networks focus determined according to current mobile device geographic location.B23, device according to B13, wherein, described process module also for, detect that the WLAN (wireless local area network) connection status of its place current mobile device carries out switching in the first mobile terminal application, out code time, the assembly connecting class application by calling WLAN (wireless local area network) carries out switching, shutoff operation.B24, device according to B13, wherein, described WLAN (wireless local area network) connect class application automatically carry out the preservation of WLAN (wireless local area network) login account, password after login connect; And login account, the password of the WLAN (wireless local area network) of the free access that it identifies is obtained from the first mobile terminal application side.
The embodiment of the present invention discloses C25, a kind of mobile terminal equipment, and it comprises in the mobile terminal application according to any one of B13 to B24 the device set up WLAN (wireless local area network) and connect.
Claims (10)
1. set up the method that WLAN (wireless local area network) connects in the application of mobile terminal, comprising:
For the assembly of the WLAN (wireless local area network) connection class application that will call is registered in the inventory configuration file of the first mobile terminal application;
First mobile terminal application detects that the WLAN (wireless local area network) connection status of its place current mobile device is off, and triggers the startup that WLAN (wireless local area network) connects class application, and specifies process or thread for described WLAN (wireless local area network) connects class application establishment one;
The foundation of described appointment process or thread detected, in described appointment process or thread, set up the running environment that WLAN (wireless local area network) connects class application;
Described set up in running environment load WLAN (wireless local area network) connect class application assembly, and run described WLAN (wireless local area network) connect class application the mobile device at current place is connected to available WLAN (wireless local area network).
2. method according to claim 1, wherein, for the following assembly of the WLAN (wireless local area network) connection class application that will call carries out registration operation in the inventory configuration file of the first mobile terminal application:
Movable Activity assembly, service Service assembly, broadcast recipients Broadcast Receiver assembly, content provider Content Provider assembly.
3. method according to claim 1, wherein, also comprises:
WLAN (wireless local area network) is connected the setup of attribute of the notice Notification assembly of class application for not showing notice prompting.
4. method according to claim 1, wherein, also comprises:
Before the assembly loading the application of WLAN (wireless local area network) connection class runs, apply property current for system is changed into WLAN (wireless local area network) and connect class application.
5. method according to claim 1, wherein, in described appointment process or thread, set up the step that WLAN (wireless local area network) connects the running environment of class application, comprising:
Structure Classloader, to load the corresponding loading classes in each assembly;
Create the resource object needed for assembly operating, connect class application resource to extract or to access WLAN (wireless local area network);
Structure explorer, with the resource needed for management operating assembly.
6. method according to claim 5, wherein, in described appointment process or thread, set up the step that WLAN (wireless local area network) connects the running environment of class application, also comprise:
If the described assembly loaded is Activity assembly, Receiver assembly or service Service assembly, then before application program management service PMS examination, assembly is revised as the corresponding assembly in set up applications, and at PMS according to the corresponding assembly examination in set up applications by rear, again described assembly is returned in the corresponding assembly correction in set up applications, start described assembly.
7. method according to claim 1, wherein, also comprises:
Before first mobile terminal is applied in and triggers the application of WLAN (wireless local area network) connection class, the information supporting the application program with the first mobile terminal product identification called is obtained, to carry out the location registration process of inventory configuration file and the foundation of follow-up running environment of corresponding first mobile terminal product identification in system in a mobile device.
8. method according to claim 7, wherein, also comprises:
The information that the information of the first mobile terminal application and WLAN (wireless local area network) connect class application is uploaded onto the server side, asks described server to issue the inventory configuration file of corresponding first mobile terminal product identification.
9. set up the device that WLAN (wireless local area network) connects in the application of mobile terminal, comprising:
Processor, in this processor, load operating has registration module, processes module, sets up module, loads module, wherein:
Registration module, registers for the assembly applied for the WLAN (wireless local area network) connection class that will call in the inventory configuration file of the first mobile terminal application;
For the first mobile terminal application, process module, detects that the WLAN (wireless local area network) connection status of its place current mobile device is off, triggers the startup that WLAN (wireless local area network) connects class application, and specify process or thread for described WLAN (wireless local area network) connects class application establishment one;
Setting up module, for the foundation of described appointment process or thread being detected, in described appointment process or thread, setting up the running environment that WLAN (wireless local area network) connects class application;
Load module, for described set up in running environment load WLAN (wireless local area network) connect class application assembly, and run described WLAN (wireless local area network) connect class application the mobile device at current place is connected to available WLAN (wireless local area network).
10. a mobile terminal equipment, it comprises in the application of mobile terminal according to claim 9 the device set up WLAN (wireless local area network) and connect.
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 true CN104507158A (en) | 2015-04-08 |
CN104507158B 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) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108173909A (en) * | 2017-12-15 | 2018-06-15 | 北京臻迪科技股份有限公司 | Method of data synchronization, mobile terminal and computer readable storage medium |
CN108471635A (en) * | 2018-05-30 | 2018-08-31 | 连尚(新昌)网络科技有限公司 | Method and apparatus for connecting wireless access point |
CN108811036A (en) * | 2018-05-24 | 2018-11-13 | 上海连尚网络科技有限公司 | Method and apparatus for showing wireless access point information |
CN112333062A (en) * | 2020-11-03 | 2021-02-05 | 深圳Tcl新技术有限公司 | Control method and control device for household equipment and computer readable storage medium |
Citations (6)
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 |
-
2014
- 2014-12-30 CN CN201410844152.XA patent/CN104507158B/en active Active
Patent Citations (6)
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 |
Non-Patent Citations (3)
Title |
---|
JLINS: "Android 判断网络连接状态", 《HTTP://BLOG.CSDN.NET/DYLLOVE98/ARTICLE/DETAILS/9304453》 * |
RUNNINGDAY: "Android wifi搜索/连接/断开连接", 《HTTP://BLOG.CSDN.NET/U010963658/ARTICLE/DETAILS/42109073》 * |
脚本之家: "Android检测网络连接状态示例讲解", 《HTTP://WWW.JB51.NET/ARTICLE/47440.HTM》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108173909A (en) * | 2017-12-15 | 2018-06-15 | 北京臻迪科技股份有限公司 | Method of data synchronization, mobile terminal and computer readable storage medium |
CN108811036A (en) * | 2018-05-24 | 2018-11-13 | 上海连尚网络科技有限公司 | Method and apparatus for showing wireless access point information |
CN108471635A (en) * | 2018-05-30 | 2018-08-31 | 连尚(新昌)网络科技有限公司 | Method and apparatus for connecting wireless access point |
CN112333062A (en) * | 2020-11-03 | 2021-02-05 | 深圳Tcl新技术有限公司 | Control method and control device for household equipment and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN104507158B (en) | 2018-10-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10219130B2 (en) | Remote device modification | |
US9204300B2 (en) | Method for providing SIM profile in eUICC environment and devices therefor | |
US9208513B1 (en) | Automated branding of generic applications | |
CA2588772C (en) | A method of automatically building a customised software application for a specific type of wireless computing device | |
CN104461663A (en) | Method and device for loading other mobile terminal applications and mobile terminal | |
JP6342014B2 (en) | Service enabler function | |
CN102355500B (en) | Service push method and device | |
US20150201022A1 (en) | Method for providing internet of things service | |
CN106331135B (en) | A kind of part interface update method, system, client and server-side | |
CN102945182B (en) | Application program update method and apparatus | |
CN102981880B (en) | A kind of method and apparatus realizing the renewal of application program | |
US9351105B2 (en) | Location based applications | |
CN106230977B (en) | A kind of client functionality loading method, system, client and server-side | |
US20160117184A1 (en) | Flexible device templates for connected consumer devices | |
CN104507158A (en) | Wireless local area network connection building method, device and mobile terminal | |
CN104461583A (en) | Method and device for calling resource type application and mobile terminal | |
CN109683949A (en) | Pre-installed applications management method, device and storage medium | |
CN105450772A (en) | Traffic-free downloading method and device | |
WO2014056750A1 (en) | Solution for distributed application life-cycle management | |
CN107526584B (en) | Data access method and device | |
CN105099756A (en) | Method and system for prompting upgrading of router | |
CN104243568A (en) | Data traffic sharing method and device | |
KR101672868B1 (en) | Method and system for provisioning software in internet of thing(IOT) device | |
CN105657551A (en) | Method and apparatus used by smart television to respond to analog key | |
CN101193010A (en) | Simulated board firmware upgrade method for home intelligent network system |
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 | ||
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. |