CN105407134B - A kind of list submits equipment, method and mobile terminal - Google Patents
A kind of list submits equipment, method and mobile terminal Download PDFInfo
- Publication number
- CN105407134B CN105407134B CN201510684280.7A CN201510684280A CN105407134B CN 105407134 B CN105407134 B CN 105407134B CN 201510684280 A CN201510684280 A CN 201510684280A CN 105407134 B CN105407134 B CN 105407134B
- Authority
- CN
- China
- Prior art keywords
- form data
- submitted
- background thread
- list
- mobile terminal
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 81
- 230000006855 networking Effects 0.000 claims abstract description 23
- 239000000725 suspension Substances 0.000 claims abstract description 20
- 238000012544 monitoring process Methods 0.000 claims abstract description 12
- 230000004044 response Effects 0.000 claims abstract description 3
- 230000008859 change Effects 0.000 claims description 5
- 238000013500 data storage Methods 0.000 claims description 4
- 230000015654 memory Effects 0.000 description 11
- 230000006870 function Effects 0.000 description 10
- 238000004891 communication Methods 0.000 description 7
- 238000012545 processing Methods 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 5
- 230000002093 peripheral effect Effects 0.000 description 5
- 230000008569 process Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 230000001360 synchronised effect Effects 0.000 description 3
- 210000003811 finger Anatomy 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 241001269238 Data Species 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 238000005314 correlation function Methods 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- PCHJSUWPFVWCPO-UHFFFAOYSA-N gold Chemical compound [Au] PCHJSUWPFVWCPO-UHFFFAOYSA-N 0.000 description 1
- 239000010931 gold Substances 0.000 description 1
- 229910052737 gold Inorganic materials 0.000 description 1
- 238000005286 illumination Methods 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 210000003813 thumb Anatomy 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/565—Conversion or adaptation of application format or content
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
- H04L67/62—Establishing a time schedule for servicing the requests
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Economics (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Strategic Management (AREA)
- Theoretical Computer Science (AREA)
- Marketing (AREA)
- Development Economics (AREA)
- Information Transfer Between Computers (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a kind of lists to submit equipment, is suitable for being resident in the terminal, which includes:List acquiring unit is suitable for obtaining form data;List storage unit is suitable for storage form data;Network state monitoring unit is adapted for listening for the network state variation of mobile terminal;List submits unit, create background thread, form data is read by background thread, form data is submitted to server, judge whether form data is successfully submitted to server, if submitted successfully, then delete form data, if not submitting success, then terminate background thread, and when in response to becoming networking state from suspension state Yi Dan the network state for listening to mobile terminal, repeating to create background thread, read form data, be submitted to server, judge whether the operation successfully submitted, until form data is successfully submitted to server.Method is submitted the invention also discloses corresponding list and the mobile terminal of equipment is submitted including the list.
Description
Technical field
The present invention relates to Internet technical fields, and in particular to a kind of list submits equipment, method and mobile terminal.
Background technology
With the fast development of Internet technology, shopping online has become one of the shopping way of current mainstream.In movement
When terminal connection is such as WiFi, GPRS, user passes through the finger provided in shopping website server by Internal retrieval Item Information
Show the page input electronic order information of information, to send out purchase request, the electronics that server is inputted and submitted according to user is ordered
Single information generates electronic order.Realize that the requirement of the above process is that mobile terminal connects network always, if during network occurs
Disconnected, then order submits failure, at this time, it may be necessary to when mobile terminal is again coupled to network, user clicks submission again.
Invention content
For this purpose, the present invention, which provides a kind of new list, submits equipment, method and mobile terminal, to try hard to solve or at least
Alleviate above there are the problem of.
According to an aspect of the present invention, a kind of list submission equipment is provided, is suitable for being resident in the terminal, the equipment
Including:List acquiring unit is suitable for obtaining form data input by user;List storage unit is suitable for storage list and obtains list
The form data that member obtains;Network state monitoring unit is adapted for listening for the network state variation of mobile terminal;List is submitted single
Member is suitable for after list acquiring unit is by the form data storage to list storage unit of acquisition, background thread is created, by rear
Platform thread reads form data from list storage unit, and the form data of reading is submitted to server, judges form data
Whether it is successfully submitted to server, if submitting the form data successfully deleted in list storage unit, terminates backstage line
Journey terminates background thread, and once listen to mobile terminal in response to network state monitoring unit if not submitting success
Network state when becoming networking state from suspension state, repeat to create background thread, read form data, be submitted to service
Device judges whether the operation successfully submitted, until form data is successfully submitted to server.
Optionally, equipment, the submission method that background thread passes through calling form object are submitted in list according to the present invention
To be submitted to form data.
Optionally, equipment, background thread is submitted to be further adapted in list according to the present invention:Judge whether submission method has
Synchrolock identifies;If with synchrolock mark, background thread waits for synchrolock mark to release;And if without synchrolock
Mark executes submission method, when submitting successfully, releases the synchronization of submission method then to submit method to add synchrolock mark
Lock mark.
Optionally, equipment, network state monitoring unit is submitted to be further adapted in list according to the present invention:Obtain movement
The network state variation broadcast of terminal publication;And is changed according to network state and whether broadcast the network state for determining mobile terminal
Networking state is become from suspension state.
Optionally, submit equipment, list that unit is submitted to be further adapted for table through background thread in list according to the present invention
Forms data is assembled into Json formats, and server is disposably submitted in a manner of post.
According to another aspect of the present invention, a kind of list submission method is provided, is executed in the terminal, this method packet
It includes:Obtain form data input by user;Store the form data obtained;Create background thread;It is deposited by background thread reading
The form data of storage;The form data of reading is submitted to server;Judge whether form data is successfully submitted to server;Such as
Fruit is submitted successfully, then deletes the form data of storage, terminates background thread;If not submitting success, terminate background thread;Prison
The network state of mobile terminal is listened to change;Once listen to the network state of mobile terminal becomes networking state from suspension state,
The step of repeating above-mentioned establishment background thread, reading form data, be submitted to server, judge whether successfully to submit, Zhi Daobiao
Until forms data is successfully submitted to server.
Optionally, the step of list according to the present invention submits method, the form data of reading is submitted to server
Include calling the submission method of form object come submission form data by background thread.
Optionally, method is submitted in list according to the present invention, the submission method of form object is called by background thread
The step of carrying out submission form data include:Judge whether submission method has synchrolock mark;If with synchrolock mark,
Background thread waits for synchrolock mark to release;And if identified without synchrolock, to submit method to add synchrolock mark,
Submission method is executed, when submitting successfully, releases the synchrolock mark of submission method.
Optionally, the step of submitting method in list according to the present invention, monitoring the network state variation of mobile terminal is also
Including:Obtain the network state variation broadcast of mobile terminal publication;And broadcast is changed according to network state and determines mobile terminal
Network state whether networking state become from suspension state.
Optionally, the step of list according to the present invention submits method, the form data of reading is submitted to server
Including:Form data is assembled into Json formats;And server is disposably submitted in a manner of post.
According to an aspect of the present invention, a kind of mobile terminal is provided, including list as above submits equipment.
According to the technique and scheme of the present invention, it realizes that list receives in arbitrary network state, and is successfully submitted in networking state
Form data reduces the user caused by network reason and waits for, improves user experience.
Description of the drawings
To the accomplishment of the foregoing and related purposes, certain illustrative sides are described herein in conjunction with following description and drawings
Face, these aspects indicate the various modes that can put into practice principles disclosed herein, and all aspects and its equivalent aspect
It is intended to fall in the range of theme claimed.Read following detailed description in conjunction with the accompanying drawings, the disclosure it is above-mentioned
And other purposes, feature and advantage will be apparent.Throughout the disclosure, identical reference numeral generally refers to identical
Component or element.
Fig. 1 shows the structure diagram of a mobile terminal 100;
Fig. 2 shows the structure charts that list according to an embodiment of the invention submits equipment 200;And
Fig. 3 shows that list according to an embodiment of the invention submits the flow chart of method 300.
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.
Fig. 1 is the structure diagram of mobile terminal 100.As shown in Figure 1, mobile terminal 100 may include memory interface
102, one or more data processors, image processor and/or central processing unit 104 and peripheral interface 106.
Memory interface 102, one or more processors 104 and/or peripheral interface 106 either discrete component,
It can be integrated in one or more integrated circuits.In the mobile terminal 100, various elements can pass through one or more communication
Bus or signal wire couple.Sensor, equipment and subsystem may be coupled to peripheral interface 106, a variety of to help to realize
Function.For example, motion sensor 110, optical sensor 112 and range sensor 114 may be coupled to peripheral interface 106, with side
Just the functions such as orientation, illumination and ranging.Other sensors 116 can equally be connected with peripheral interface 106, such as positioning system
(such as GPS receiver), temperature sensor, biometric sensor or other sensor devices, it is possible thereby to help to implement correlation
Function.
Camera sub-system 120 and optical sensor 122 can be used for the camera of convenient such as recording photograph and video clipping
The realization of function, wherein the camera sub-system and optical sensor for example can be charge coupling device (CCD) or complementary gold
Belong to oxide semiconductor (CMOS) optical sensor.
It can help to realize communication function, wherein wireless communication by one or more radio communication subsystems 124
System may include radio-frequency transmitter and transmitter and/or light (such as infrared) Receiver And Transmitter.Radio communication subsystem
124 particular design and embodiment can depend on one or more communication networks that mobile terminal 100 is supported.For example,
Mobile terminal 100 may include be designed to support GSM network, GPRS network, EDGE network, Wi-Fi or WiMax network and
BlueboothTMThe communication subsystem 124 of network.
Audio subsystem 126 can be coupled with loud speaker 128 and microphone 130, to help to implement to enable voice
Function, such as speech recognition, speech reproduction, digital record and telephony feature.
I/O subsystems 140 may include touch screen controller 142 and/or other one or more input controllers 144.
Touch screen controller 142 may be coupled to touch screen 146.For example, the touch screen 146 and touch screen controller
142 can detect the contact carried out therewith and movement or pause using any one of a variety of touch-sensing technologies,
Middle detection technology includes but is not limited to capacitive character, resistive, infrared and surface acoustic wave technique.
Other one or more input controllers 144 may be coupled to other input/control devicess 148, for example, one or
The pointer device of multiple buttons, rocker switch, thumb wheel, infrared port, USB port, and/or stylus etc.One or
Multiple buttons (not shown) may include the up/down button for 130 volume of controlling loudspeaker 128 and/or microphone.
Memory interface 102 can be coupled with memory 150.The memory 150 may include that high random access is deposited
Reservoir and/or nonvolatile memory, such as one or more disk storage equipments, one or more optical storage apparatus, and/
Or flash memories (such as NAND, NOR).
Memory 150 can store an operating system 152, for example, Android, IOS or Windows Phone etc behaviour
Make system.The operating system 152 may include for handling basic system services and executing the finger of the task dependent on hardware
It enables.Memory 150, which can also store, various applies 154.When mobile device is run, can load operation be from memory 150
System 152, and executed by processor 104.At runtime using 154, it can also be loaded from memory 150, and by processor 104
It executes.It is operated on operating system using 154, the interface provided using operating system and bottom hardware realizes various users
Desired function, such as instant messaging, web page browsing, pictures management.Using operating system offer can be independently of, also may be used
To be that operating system is included.
In various applications 154, one such application is that list submits equipment 200, the application to facilitate user arbitrary
List is inputted under network state, when network state is networking state, submission form to server reduces user because of suspension state
The stand-by period of submission form increases the success rate that list is submitted.
Fig. 2 is the schematic diagram that list according to an embodiment of the invention submits equipment 200.It is carried out below in conjunction with Fig. 2
Explanation.
User browses such as shopping website generally under mobile terminal networking state, by the browser of mobile terminal, and
The essential information of oneself is filled at submission form interface, submits above-mentioned list.In order to meet user under arbitrary network state at
Work(adds the requirement of above-mentioned list, and the present invention discloses a kind of list submission equipment.It is specific as follows:
Data acquisition function is mainly responsible in list (form) webpage, there are three elements for a list:
Form tags:Here the URL of cgi script and data used in processing form data are contained and are submitted to server
Method.
Form fields:Contain text box, password box, Hidden field, multiline text frame, check box, radio box, drop-down choice box
Frame etc. is uploaded with file.
List button:Including submitting button, reset button and general button;For transferring data on server
CGI scripting cancels input, can also control the processing work that other define processing script with list button.
As shown in Fig. 2, list submission equipment 200 includes:List acquiring unit 210, list storage unit 220, list carry
Presentate member 230 and network state monitoring unit 240.
When user inputs form data by the browser of mobile terminal, list acquiring unit 210 can obtain user's input
Form data, by acquisition will form data storage in list storage unit 220.Wherein, form data generally comprises table
Single number, the contact method of user, user contact address etc..
List storage unit 220 generally carries out the storage of form data, the following institute of storage example using SQLite databases
Show:
Id | 0 | 0 |
userName | XX | XX |
userPhone | 13911395274 | 13911395274 |
buyTime | 0 | 0 |
cityId | 110100 | 110100 |
dealerId | 60106 | 60106 |
eId | 3|1420033|349|0|200003|300000 | 3|1420033|349|0|200003|300000 |
ishjkdealer | FALSE | FALSE |
lat | null | null |
lon | null | null |
memberId | 0 | 0 |
seriesId | 2785 | 358 |
siteId | 30 | 30 |
sourceId | 0 | 0 |
time | 0 | 0 |
pecId | 17725 | 15164 |
After list acquiring unit 210 is by the form data storage to list storage unit 220 of acquisition, list submits unit
230 can create background thread.Background thread is that the thread of service is provided for other threads, it is by common language runtime (CLR)
It is considered the approach that can be made sacrifices during program executes, i.e., may be ignored at any time.For example, a program starts
One thread for carrying out a large amount of operations, but as long as program once terminates, that thread loses the meaning to exist, this
A thread is exactly background thread.
Background thread can obtain list when the network state of mobile terminal either networks state or suspension state
The form data that unit 210 obtains is submitted to server, and judges whether form data is successfully submitted to server.
If in platform thread submission form data procedures, the network state of mobile terminal is always networking state, backstage line
After Cheng Chenggong submission form data to server, the above-mentioned form data stored in list storage unit 220 is deleted.
If when platform thread submission form data, the network state of mobile terminal is in suspension state, then form data meeting
Failure, the background thread is submitted to terminate.
Network state monitoring unit 240 is used to monitor the variation of the network state of mobile terminal, when the network of mobile terminal
When state changes, mobile terminal can the broadcast of delivery network state change.Network state monitoring unit 240 gets network-like
State variation broadcast, and changed according to the network state of acquisition and broadcasted, judge the network state of mobile terminal whether by suspension state
Become networking state.
Broadcast in mobile terminal is widely used in a kind of means communicated between application, it is similar to event processor
The processing of system, broadcast is the other event handler procedure of operating system grade (the common event processing is control levels).In this process
In be still too busy to get away Intent objects, flexibly with broadcast treatment mechanism, tend to realize special effect in place of key,
For the classical example of a comparison, for example, blacklist function produces an incoming call broadcast, then when throwing a phone into
The BroadcastReceiver for receiving this incoming call broadcast will be compared by this incoming number with number in blacklist,
If matching, does respective handling to this incoming call, such as hangs up or mute.
When the network state for determining mobile terminal becomes networking state from suspension state, list submits unit 230 that can create
Build background thread.The background thread reads form data from list storage unit 220, and the form data of reading is submitted
To server, judge whether form data is successfully submitted to server.If background thread is submitted successfully, list storage is deleted
Form data in unit 220 terminates background thread.If background thread submits failure, background thread also to terminate.Practical feelings
Under condition, often due to network state variation it is more frequent, cannot once submit success, then can repeat above-mentioned establishment background thread,
It reads form data, submission form data, judge whether the operation successfully submitted, until form data is successfully submitted to server
Until.Wherein, all form datas that background thread can be read from list storage unit 210 are assembled into Json formats, and one
Secondary property is submitted to server in a manner of post.
Background thread is when submission form data are to server, by calling the submission method of form object come to list number
According to being submitted.Background thread judges whether the submission method has synchrolock before the submission method for calling form object
Mark.Because when background thread is run, there can be several background threads to access a form object simultaneously, it is grasped
Make or modification, this may cause very undesirable consequence, and (such as object is analysed when other thread has not used also
Structure etc.), so must these form objects be added with synchrolock mark.Synchrolock mark is usually addition in the submission side
A keyword (synchronized) in method, synchronized are equivalent to a lock, synchronized in addition
Submission method only allows a background thread to access it within the same time.
According to a kind of embodiment, background thread is when networking state submission form data, since network signal is bad, table
When forms data submits a part, network state becomes suspension state, at this point, there is no tie for the background thread of submission form data
Beam, then, network state are transformed to networking state again.List submits unit that can create a background thread, the backstage line
Synchrolock mark is had in the submission method for the list that journey obtains, the newly-built background thread, which then waits for, the synchrolock mark
Know and release, i.e., the described form data with synchrolock mark, which is submitted, to be completed, and the remaining form data of acquisition is disposably carried
It is sent to server.
According to another embodiment, if there is no synchrolock mark in the submission method for the list that background thread obtains,
It is then that the submission method adds synchrolock mark, and executes the submission method of the list, when submitting successfully, described in releasing
The synchrolock of submission method identifies.
According to the technique and scheme of the present invention, it realizes that list receives in arbitrary network state, and is successfully submitted in networking state
Form data reduces the user caused by network reason and waits for, improves user experience.
Fig. 3 shows that a kind of list according to an exemplary embodiment of the present invention submits the flow chart of method 300.This method exists
It is executed in mobile terminal, this method starts from step S310.
In step S310, form data input by user is obtained.
Then, in step s 320, the form data obtained in storing step S310.
Then, in step S330, background thread is created.
Then, in step S340, background thread reads the form data stored in step S320 kinds.In step S350
In, submit the back-end data read in step S340.
According to a kind of embodiment, the form data of reading is called to the submission side of form object by the background thread
Method carrys out submission form data.The submission method of form object is called to be wrapped come the step of submission form data by the background thread
It includes:Judge whether the submission method has synchrolock mark;If with synchrolock mark, the background thread waits for institute
Synchrolock mark is stated to release;And if identified without synchrolock, synchrolock mark is added for the submission method, executes institute
Submission method is stated, when submitting successfully, releases the synchrolock mark of the submission method.
According to a kind of embodiment, when form data being submitted to server, form data is assembled into Json formats, one
Secondary property is submitted to server in a manner of post.
Then, in step S360, judge whether form data is successfully submitted to server.
If the success of background thread submission form data, deletes the form data of storage, backstage line in step S3100
Journey terminates.
If background thread submits failure, background thread terminates in step S370.
Then, in step S380, the variation of the network state of mobile terminal is monitored.
Then, in step S390, determine whether the network state of mobile terminal from suspension state becomes networking state.Root
According to a kind of embodiment, the network state variation broadcast of mobile terminal publication is obtained, is determined and is moved according to network state variation broadcast
Whether the network state of dynamic terminal from suspension state becomes networking state.
Once it is determined that the network state of mobile terminal becomes networking state from suspension state, then repeatedly step S330, S340,
S350, S360 are until form data is successfully submitted to server.
According to the technique and scheme of the present invention, it realizes that list receives in arbitrary network state, and is successfully submitted in networking state
The form data reduces the user caused by network reason and waits for, improves user experience.
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, knot is not been shown in detail
Structure and technology, so as not to obscure the understanding of this description.
A10:Method as described in any one of A6-9, wherein the step that the form data of reading is submitted to server
Suddenly include:Form data is assembled into Json formats;And server is disposably submitted in a manner of post.
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 feature more features than being expressly recited in each claim.More precisely, as following
As claims reflect, inventive aspect is all features less than single embodiment disclosed above.Therefore, it abides by
Thus the claims for following specific implementation mode are expressly incorporated in the specific implementation mode, wherein each claim itself
As a separate embodiment of the present invention.
Those skilled in the art should understand that the module of the equipment in example disclosed herein or unit or groups
Part can be arranged in equipment as depicted in this embodiment, or alternatively can be positioned at and the equipment in the example
In different one or more equipment.Module in aforementioned exemplary can be combined into a module or be segmented into addition multiple
Submodule.
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.
In addition, be described as herein can be by the processor of computer system or by executing for some in the embodiment
The combination of method or method element that other devices of the function are implemented.Therefore, have for implementing the method or method
The processor of the necessary instruction of element forms the device for implementing this method or method element.In addition, device embodiment
Element described in this is the example of following device:The device is used to implement performed by the element by the purpose in order to implement the invention
Function.
As used in this, unless specifically stated, come using ordinal number " first ", " second ", " third " etc.
Description plain objects are merely representative of the different instances for being related to similar object, and are not intended to imply that the object being described in this way must
Must have the time it is upper, spatially, in terms of sequence or given sequence in any other manner.
Although the embodiment according to limited quantity describes the present invention, above description, the art are benefited from
It is interior it is clear for the skilled person that in the scope of the present invention thus described, it can be envisaged that other embodiments.Additionally, it should be noted that
The language that is used in this specification primarily to readable and introduction purpose and select, rather than in order to explain or limit
Determine subject of the present invention and selects.Therefore, without departing from the scope and spirit of the appended claims, for this
Many modifications and changes will be apparent from for the those of ordinary skill of technical field.For the scope of the present invention, to this
The done disclosure of invention is illustrative and not restrictive, and it is intended that the scope of the present invention be defined by the claims appended hereto.
Claims (11)
1. a kind of list submits equipment, it is suitable for being resident in the terminal, the equipment includes:
List acquiring unit is suitable for obtaining form data input by user;
List storage unit is suitable for storing the form data that list acquiring unit obtains;
Network state monitoring unit is adapted for listening for the network state variation of mobile terminal;
List submits unit, is suitable for after list acquiring unit is by the form data storage to list storage unit of acquisition, creates
Background thread reads form data by the background thread from list storage unit, mobile terminal network state without
When by being networking state or suspension state, the form data of reading being submitted to server, judges whether form data succeeds
It is submitted to server, if submitting the form data successfully deleted in list storage unit, terminates the background thread,
If not submitting success, terminate the background thread, and shifting is once listened in response to network state monitoring unit
When the network state of dynamic terminal becomes networking state from suspension state, repeats to create background thread, read form data, be submitted to
Server judges whether the operation successfully submitted, until form data is successfully submitted to server.
2. equipment as described in claim 1, wherein the background thread is by calling the submission method of form object come to table
Forms data is submitted.
3. equipment as claimed in claim 2, wherein the background thread is further adapted for:
Judge whether the submission method has synchrolock mark;
If with synchrolock mark, the background thread waits for the synchrolock mark to release;And
If identified without synchrolock,
Synchrolock mark is added for the submission method,
The submission method is executed,
When submitting successfully, the synchrolock mark of the submission method is released.
4. equipment as described in claim 1, wherein the network state monitoring unit is further adapted for:
Obtain the network state variation broadcast of mobile terminal publication;And
Change broadcast according to network state and determines whether the network state of mobile terminal from suspension state becomes networking state.
5. the equipment as described in any one of claim 1-4, wherein the list submits unit to be further adapted for passing through background thread
Form data is assembled into Json formats, server is disposably submitted in a manner of post.
6. a kind of list submits method, execute in the terminal, the method includes:
Obtain form data input by user;
Store the form data obtained;
Create background thread;
The form data of storage is read by the background thread;
When the network state of mobile terminal either networks state or suspension state, the form data of reading is submitted to clothes
Business device;
Judge whether form data is successfully submitted to server;
If submitting the form data for successfully deleting storage, terminate the background thread;
If not submitting success,
Terminate the background thread;
Monitor the network state variation of mobile terminal;
Once listen to the network state of mobile terminal becomes networking state from suspension state, repeat above-mentioned establishment background thread,
The step of reading form data, being submitted to server, judge whether successfully to submit, until form data is successfully submitted to server
Until.
7. method as claimed in claim 6, wherein the step of form data of reading is submitted to server includes passing through institute
Stating background thread calls the submission method of form object to carry out submission form data.
8. the method for claim 7, wherein it is described by the background thread call the submission method of form object come
The step of submission form data includes:
Judge whether the submission method has synchrolock mark;
If with synchrolock mark, the background thread waits for the synchrolock mark to release;And
If identified without synchrolock,
Synchrolock mark is added for the submission method,
The submission method is executed,
When submitting successfully, the synchrolock mark of the submission method is released.
9. method as claimed in claim 6, wherein the network state for monitoring mobile terminal further includes the step of variation:
Obtain the network state variation broadcast of mobile terminal publication;And
Change broadcast according to network state and determines whether the network state of mobile terminal from suspension state becomes networking state.
10. the method as described in any one of claim 6-9, wherein described be submitted to server by the form data of reading
Step includes:Form data is assembled into Json formats;And server is disposably submitted in a manner of post.
11. a kind of mobile terminal includes the list submission equipment as described in any one of claim 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510684280.7A CN105407134B (en) | 2015-10-20 | 2015-10-20 | A kind of list submits equipment, method and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510684280.7A CN105407134B (en) | 2015-10-20 | 2015-10-20 | A kind of list submits equipment, method and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105407134A CN105407134A (en) | 2016-03-16 |
CN105407134B true CN105407134B (en) | 2018-09-14 |
Family
ID=55472380
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510684280.7A Active CN105407134B (en) | 2015-10-20 | 2015-10-20 | A kind of list submits equipment, method and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105407134B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108459924B (en) * | 2017-02-22 | 2021-12-14 | 北京奥威科软信息技术有限公司 | Method, device, server and system for protecting data in Web form |
CN109656510B (en) * | 2017-10-11 | 2021-12-07 | 腾讯科技(深圳)有限公司 | Method and terminal for voice input in webpage |
CN109688179B (en) * | 2017-10-19 | 2021-06-22 | 华为技术有限公司 | Communication method and communication device |
CN111382130A (en) * | 2018-12-20 | 2020-07-07 | 鸿合科技股份有限公司 | Content submission method and device and electronic equipment |
CN109828977A (en) * | 2018-12-27 | 2019-05-31 | 东软集团股份有限公司 | The method, apparatus and storage medium and client, server-side of synchronous form data |
CN110865823B (en) * | 2019-11-13 | 2023-09-26 | 北京小米移动软件有限公司 | Pre-installation application control method, pre-installation application control device and storage medium |
CN111654453B (en) * | 2020-04-23 | 2023-04-18 | 平安国际智慧城市科技股份有限公司 | Form data offline caching method and device, terminal and storage medium |
CN111694745A (en) * | 2020-06-15 | 2020-09-22 | 北京首汽智行科技有限公司 | Vehicle cost simulation calculation method |
CN113098977A (en) * | 2021-04-20 | 2021-07-09 | 深圳华南城网科技有限公司 | Method and device for preventing form from being repeatedly submitted |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2010118412A1 (en) * | 2009-04-10 | 2010-10-14 | Casepick Systems, Llc | Storage and retrieval system |
CN103051692A (en) * | 2012-12-11 | 2013-04-17 | 中国能源建设集团广东省电力设计研究院 | Mobile operation system working platform supporting extreme network environment |
CN103823708A (en) * | 2014-02-27 | 2014-05-28 | 深圳市深信服电子科技有限公司 | Virtual machine read-write request processing method and device |
-
2015
- 2015-10-20 CN CN201510684280.7A patent/CN105407134B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2010118412A1 (en) * | 2009-04-10 | 2010-10-14 | Casepick Systems, Llc | Storage and retrieval system |
CN103051692A (en) * | 2012-12-11 | 2013-04-17 | 中国能源建设集团广东省电力设计研究院 | Mobile operation system working platform supporting extreme network environment |
CN103823708A (en) * | 2014-02-27 | 2014-05-28 | 深圳市深信服电子科技有限公司 | Virtual machine read-write request processing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN105407134A (en) | 2016-03-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105407134B (en) | A kind of list submits equipment, method and mobile terminal | |
CN104301443B (en) | A kind of method and system that end ability interface is called on web page | |
CN104378435B (en) | The browser of computing device and the file of mobile terminal transmit | |
CN104965848B (en) | A kind of front end resource loading method and device | |
CN104978267B (en) | webpage test method, terminal and server | |
US11204681B2 (en) | Program orchestration method and electronic device | |
CN104902479B (en) | A kind of network security management equipment, method and mobile terminal | |
CN104394208B (en) | Document transmission method and server | |
CN105898181A (en) | Video conversation system and method and related equipment | |
CN103036597A (en) | Method and device of sharing resources among devices in close range | |
CN110069919B (en) | Information acquisition method and device | |
US20200236150A1 (en) | Method and apparatus for transferring information between electronic devices | |
CN104580019A (en) | Network service supplying method and device | |
US20170237816A1 (en) | Method and electronic device for identifying device | |
CN105512033A (en) | Automated testing method and device of mobile terminal and mobile terminal | |
CN106844689A (en) | A kind of paged data synchronous method, apparatus and system | |
CN109660859A (en) | A kind of animated show method and mobile terminal | |
CN104318185A (en) | Application control method, application control equipment and mobile terminal | |
CN105491129A (en) | Page loading progress display method and device and mobile terminal | |
JP6620232B2 (en) | Technology for attaching media captured by a mobile computing device to an electronic document | |
CN105872767A (en) | Method and apparatus for guiding sharing based on user behaviors | |
CN110278273A (en) | Multimedia file method for uploading, device, terminal, server and storage medium | |
US10931610B2 (en) | Method, device, user terminal and electronic device for sharing online image | |
CN107534860A (en) | Wi-Fi hotspot portal authentication method and device | |
US20100315331A1 (en) | Display device and display control method thereof |
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 |