CN104657122B - A kind of method and apparatus for being directed to multiple prompted dialog frame series displays in android system - Google Patents
A kind of method and apparatus for being directed to multiple prompted dialog frame series displays in android system Download PDFInfo
- Publication number
- CN104657122B CN104657122B CN201310594803.XA CN201310594803A CN104657122B CN 104657122 B CN104657122 B CN 104657122B CN 201310594803 A CN201310594803 A CN 201310594803A CN 104657122 B CN104657122 B CN 104657122B
- Authority
- CN
- China
- Prior art keywords
- code block
- dialog frame
- prompted dialog
- information
- service code
- 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
Abstract
The present invention discloses a kind of method and apparatus for being directed to multiple prompted dialog frame series displays in android system, and wherein method includes:Message queue is created, the beacon information of the service code block with prompted dialog frame is put into message queue, wherein beacon information is used to indicate the information whether corresponding service code block needs to perform;When the thread of message queue brings into operation, each beacon information in scanning information queue, if the service code block with prompted dialog frame needs to run corresponding to scanning to some beacon information, the service code block for calling this to carry prompted dialog frame;When the service code block with prompted dialog frame has handled business, prompted dialog frame corresponding to calling will confirm that button shows user to user's execution information;If user click on confirm if the beacon information of the service code block with prompted dialog frame deleted and scanning information queue again from message queue, the thread of obstruction message queue if user does not click on confirmation.
Description
Technical field
The present invention relates to operating system field, and multiple prompted dialogs in android system are directed in particular to one kind
The method and apparatus of frame series display.
Background technology
In Android(Android)In application and development, locate due to being frequently run onto in processing business data in a thread
Multiple business are managed, and each business needs to be prompted to multiple hardware device shapes under user's confirmation, such as detection android system
State, each hardware state detection, which finishes, to be needed to confirm to user, thus uses AlertDialog(Prompted dialog frame)Come to
Family prompt message.And multiple AlertDialog occur if multiple service informings in a thread now, it is previous
After AlertDialog promptings, thread does not block, but continues to run with, and thus causes thread operation and ejects to the end
Multiple AlertDialog, so as to cause disagreeableness display.
The content of the invention
The present invention provides a kind of method and apparatus for being directed to multiple prompted dialog frame series displays in android system, uses
Go to handle next business again after user confirms a prompt message with realization and eject confirmation, so as to allow user to being
System function becomes apparent from understanding..
To reach above-mentioned purpose, it is directed to multiple prompted dialog frames in android system the invention provides one kind and serially shows
The method shown, comprises the following steps:
Message queue is created, the beacon information of the service code block with prompted dialog frame is put into message queue, wherein
Beacon information is used to indicate the information whether corresponding service code block needs to perform;
When the thread of message queue brings into operation, each beacon information in scanning information queue, if scanning is marked to some
Show that the service code block with prompted dialog frame needs to run corresponding to information, then the business generation for calling this to carry prompted dialog frame
Code block;
When this has handled business with service code block of prompted dialog frame, prompted dialog frame corresponding to calling is to user
Execution information, and will confirm that button shows user;
If user click on confirm if by the beacon information of the service code block with prompted dialog frame from message queue
Middle deletion and scanning information queue again, the thread of message queue is blocked if user does not click on confirmation.
Optionally, if scanning arrives message queue as sky, the thread of ending message queue.
To reach above-mentioned purpose, it is serial to be directed to multiple prompted dialog frames in android system present invention also offers one kind
The device of display, including:
Message queue module, for creating message queue, by the beacon information of the service code block with prompted dialog frame
Message queue is put into, wherein beacon information is used to indicate the information whether corresponding service code block needs to perform;
Thread scans module, for when the thread of message queue brings into operation, each beacon information in scanning information queue,
If the service code block with prompted dialog frame needs to run corresponding to scanning to some beacon information, calling should be carried and carried
Show the service code block of dialog box;
Nformation alert module, for when the service code block with prompted dialog frame has handled business, calling corresponding
Prompted dialog frame to user's execution information, and will confirm that button shows user;
Series display processing module, for confirming the service code block with prompted dialog frame then when user clicks on
Beacon information is deleted from message queue and scanning information queue again, blocks message queue if user does not click on confirmation
Thread.
Optionally, thread scans module is additionally operable to when scanning to message queue is space-time, the thread of ending message queue.
The solution of the above embodiment of the present invention realizes goes to handle next industry again after user confirms an information
It is engaged in and ejects confirmation, prompting is more friendly, so as to allow user to become apparent from understanding to function.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the method for being directed to multiple prompted dialog frame series displays in android system of one embodiment of the invention
Flow chart;
Fig. 2 is a preferred embodiment of the invention for multiple prompted dialog frame series displays in android system
Method flow diagram.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not paid
Embodiment, belong to the scope of protection of the invention.
First the term used in the present invention is explained below:
AlertDialog:It is the component for being used for prompt message in android system, for example prompts to login successfully.
Message queue:For indicating whether service code block needs to perform, and in need in this code block carried for user
The AlertDialog shown.
Beacon information:The information performed for indicating service code block whether to need.
Fig. 1 is the method for being directed to multiple prompted dialog frame series displays in android system of one embodiment of the invention
Flow chart;As illustrated, the method that should be directed to multiple prompted dialog frame series displays in android system comprises the following steps:
S110, message queue is created, the beacon information of the service code block with prompted dialog frame is put into message queue,
Wherein beacon information is used to indicate the information whether corresponding service code block needs to perform;
S120, when the thread of message queue brings into operation, each beacon information in scanning information queue, if scanning arrives certain
The service code block with prompted dialog frame needs to run corresponding to individual beacon information, then the industry for calling this to carry prompted dialog frame
Business code block;
S130, when the service code block with prompted dialog frame has handled business, prompted dialog frame corresponding to calling
To user's execution information, and it will confirm that button shows user;
S140, if user click on confirm if by the beacon information of the service code block with prompted dialog frame from information
Deletion and scanning information queue again in queue, the thread of message queue is blocked if user does not click on confirmation.
Wherein, when the thread to message queue is scanned, if scanning is empty, ending message team to message queue
The thread of row.
Fig. 2 is a preferred embodiment of the invention for multiple prompted dialog frame series displays in android system
Method flow diagram.As illustrated, should be directed to the method for multiple prompted dialog frame series displays in android system includes following step
Suddenly:
(1)Message queue is created first:The message queue of a newly-built thread-safe.Information in message queue is mainly
Whether code block of the sign with AlertDialog promptings is performed.If some carries the code block of AlertDialog promptings
Need to perform, just put its corresponding beacon information into message queue.
(2)Message queue is scanned:When thread brings into operation, scanning information queue:If scan some mark
When showing that service code block corresponding to information needs operation, the service code block for calling this to carry AlertDialog promptings is just removed, when
The service code block, which has handled business, can call AlertDialog to be prompted to user profile;If it find that message queue is sky,
Just terminate thread.
(3)AlertDialog prompt messages confirm:After the prompting of AlertDialog confirmations, at this moment user is needed to go
ACK button is clicked on to represent to have known service processing result, after confirmation is clicked on, message queue can be deleted and treated
The beacon information of service code block, and scanning information queue is proceeded by again.
(4)Scanning information queue is that space-time thread terminates:When according to step(2)、(3)Circulation carries out operation until information team
Space-time is classified as, thread terminates, and it is that thread will block, so as to reach after not clicking on ACK button that such user is uncertain every time
The effect that AlertDialog is serially prompted.And this process most critical is exactly message queue, by it come pair
AlertDialog is tracked.
The solution of the embodiment of the present invention carries in one key of processing detection hardware state and each hardware state to user
The on probation of reality has been obtained in showing.Solve multiple AlertDialog well by this solution to carry one by one
Show, rather than tip out together, make software prompt more friendly.
It is adapted with above method embodiment, is directed to multiple prompted dialogs in android system below for one of the invention
The device embodiment of frame series display, the device include:
Message queue module, for creating message queue, by the beacon information of the service code block with prompted dialog frame
Message queue is put into, wherein beacon information is used to indicate the information whether corresponding service code block needs to perform;
Thread scans module, for when the thread of message queue brings into operation, each beacon information in scanning information queue,
If the service code block with prompted dialog frame needs to run corresponding to scanning to some beacon information, calling should be carried and carried
Show the service code block of dialog box;
Nformation alert module, for when the service code block with prompted dialog frame has handled business, calling corresponding
Prompted dialog frame to user's execution information, and will confirm that button shows user;
Series display processing module, for confirming the service code block with prompted dialog frame then when user clicks on
Beacon information is deleted from message queue and scanning information queue again, blocks message queue if user does not click on confirmation
Thread.
Optionally, thread scans module is additionally operable to when scanning to message queue is space-time, the thread of ending message queue.
The solution of the above embodiment of the present invention realizes goes to handle next industry again after user confirms an information
It is engaged in and ejects confirmation, prompting is more friendly, so as to allow user to become apparent from understanding to function.
One of ordinary skill in the art will appreciate that:Accompanying drawing is the schematic diagram of one embodiment, module in accompanying drawing or
Flow is not necessarily implemented necessary to the present invention.
One of ordinary skill in the art will appreciate that:The module in device in embodiment can describe to divide according to embodiment
It is distributed in the device of embodiment, respective change can also be carried out and be disposed other than in one or more devices of the present embodiment.On
The module for stating embodiment can be merged into a module, can also be further split into multiple submodule.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although
The present invention is described in detail with reference to the foregoing embodiments, it will be understood by those within the art that:It still may be used
To be modified to the technical scheme described in previous embodiment, or equivalent substitution is carried out to which part technical characteristic;And
These modifications are replaced, and the essence of appropriate technical solution is departed from the spirit and model of technical scheme of the embodiment of the present invention
Enclose.
Claims (4)
- A kind of 1. method for being directed to multiple prompted dialog frame series displays in android system, it is characterised in that including following step Suddenly:Message queue is created, the beacon information of the service code block with prompted dialog frame is put into described information queue, wherein The beacon information is used to indicate the information whether corresponding service code block needs to perform;When the thread of described information queue brings into operation, each beacon information in described information queue is scanned, if scanning arrives certain The service code block with prompted dialog frame needs to run corresponding to individual beacon information, then the industry for calling this to carry prompted dialog frame Business code block;When the service code block with prompted dialog frame has handled business, prompted dialog frame corresponding to calling performs to user Information, and will confirm that button shows user;If user click on confirm if by the beacon information of the service code block with prompted dialog frame from described information queue It is middle to delete and rescan described information queue, the thread of described information queue is blocked if user does not click on confirmation.
- 2. the method according to claim 1 for being directed to multiple prompted dialog frame series displays in android system, its feature It is, if scanning is sky to described information queue, terminates the thread of described information queue.
- A kind of 3. device for being directed to multiple prompted dialog frame series displays in android system, it is characterised in that including:Message queue module, for creating message queue, the beacon information of the service code block with prompted dialog frame is put into Described information queue, wherein the beacon information is used to indicate the information whether corresponding service code block needs to perform;Thread scans module, for when the thread of described information queue brings into operation, scanning and respectively being indicated in described information queue Information, if the service code block with prompted dialog frame needs to run corresponding to scanning to some beacon information, calling should Service code block with prompted dialog frame;Nformation alert module, for when the service code block with prompted dialog frame has handled business, being carried corresponding to calling Show dialog box to user's execution information, and will confirm that button shows user;Series display processing module, for confirming the sign of the service code block with prompted dialog frame then when user clicks on Information is deleted from described information queue and rescans described information queue, if user does not click on confirmation described in obstruction The thread of message queue.
- 4. the device according to claim 3 for being directed to multiple prompted dialog frame series displays in android system, its feature It is, it is space-time that the thread scans module, which is additionally operable to when scanning to described information queue, terminates the thread of described information queue.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310594803.XA CN104657122B (en) | 2013-11-21 | 2013-11-21 | A kind of method and apparatus for being directed to multiple prompted dialog frame series displays in android system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310594803.XA CN104657122B (en) | 2013-11-21 | 2013-11-21 | A kind of method and apparatus for being directed to multiple prompted dialog frame series displays in android system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104657122A CN104657122A (en) | 2015-05-27 |
CN104657122B true CN104657122B (en) | 2018-04-10 |
Family
ID=53248311
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310594803.XA Active CN104657122B (en) | 2013-11-21 | 2013-11-21 | A kind of method and apparatus for being directed to multiple prompted dialog frame series displays in android system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104657122B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1232563A (en) * | 1996-10-04 | 1999-10-20 | 霍尼韦尔公司 | Process and system for forming multiple preemptive modeless dialog boxes |
US6954933B2 (en) * | 2000-10-30 | 2005-10-11 | Microsoft Corporation | Method and apparatus for providing and integrating high-performance message queues in a user interface environment |
CN102200912A (en) * | 2011-06-17 | 2011-09-28 | 飞天诚信科技股份有限公司 | Method and system for improving user operation usability |
CN102833120A (en) * | 2011-06-14 | 2012-12-19 | 中兴通讯股份有限公司 | Method and system for handling exception of network management server in quick test professional (QTP) |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030033234A1 (en) * | 2001-02-23 | 2003-02-13 | Rudusky Daryl | System, method and article of manufacture for a hardware configuration service |
-
2013
- 2013-11-21 CN CN201310594803.XA patent/CN104657122B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1232563A (en) * | 1996-10-04 | 1999-10-20 | 霍尼韦尔公司 | Process and system for forming multiple preemptive modeless dialog boxes |
US6954933B2 (en) * | 2000-10-30 | 2005-10-11 | Microsoft Corporation | Method and apparatus for providing and integrating high-performance message queues in a user interface environment |
CN102833120A (en) * | 2011-06-14 | 2012-12-19 | 中兴通讯股份有限公司 | Method and system for handling exception of network management server in quick test professional (QTP) |
CN102200912A (en) * | 2011-06-17 | 2011-09-28 | 飞天诚信科技股份有限公司 | Method and system for improving user operation usability |
Also Published As
Publication number | Publication date |
---|---|
CN104657122A (en) | 2015-05-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106201170A (en) | The footmark processing method of a kind of application icon and terminal | |
CN107172685A (en) | The method and apparatus that the information of WAP is shown in mobile terminal | |
CN106371901A (en) | Application switching method and apparatus | |
CN103873455A (en) | Method and device for information check | |
US20150120374A1 (en) | Automation of customer relationship management (crm) tasks responsive to electronic communications | |
CN106603540A (en) | Method and device for monitoring instant communication information | |
CN104199667B (en) | Method and system for newly building MTK project and submitting codes | |
CN105930226A (en) | Data processing method and apparatus | |
CN104360861A (en) | Software code compiling system | |
CN109165372B (en) | Webpage loading method, device, equipment and storage medium | |
US10762207B2 (en) | Method and device for scanning virus | |
CN104657122B (en) | A kind of method and apparatus for being directed to multiple prompted dialog frame series displays in android system | |
CN104639973B (en) | Information pushing method and device | |
US20160188127A1 (en) | Communication device and method for processing message of the communication device | |
US20140031087A1 (en) | Method and device for processing mobile phone data | |
CN105183298A (en) | Content selection method and device | |
CN104537546A (en) | Product quality monitoring method and device as well as product quality verification method and device | |
CN105119801B (en) | A kind of social message management method, system, user terminal and server | |
CN111176982B (en) | Test interface generation method and device | |
CN103617299A (en) | Method and system for setting table attribute | |
CN109738908B (en) | Alarm method, device and system based on laser radar | |
CN105357552B (en) | Multiple terminals multi-user's order operation method and the end TV login method | |
CN113220562A (en) | Terminal testing method and device, computer storage medium and electronic equipment | |
CN111258479A (en) | Method, system, equipment and storage medium for displaying multiple chat windows on chat interface | |
CN114356179B (en) | Operation method, equipment and storage medium for cleaning interface |
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 |